Reputation: 7845
Here you can found the following Vim command:
:%!markdown
I know there's a 'similar' command to find/replace
:%s/OLD/NEW
But I suspect that they have nothing to do
Can someone explain the first command?
Upvotes: 1
Views: 799
Reputation: 6421
:%!markdown
%
: is another form of 1,$
it is the range of all lines of the file
!
: this exclamation point is for executing an external command
markdown
: this command is for changing the text to html form
So that command is nothing than a filter that transform your text to html form. You can use a vim command that generate that by typing :%TOhtml
For more see :help filter
, :help :!
, :help range
, :help TOhtml
Upvotes: 4