pedrorijo91
pedrorijo91

Reputation: 7845

Understanding :%!markdown VIM command

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

Answers (1)

:%!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

Related Questions