Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Vi markdown trick
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sarah George  
View profile  
 More options Apr 2 2005, 8:13 am
From: Sarah George <sarah.geo...@gmail.com>
Date: Sat, 2 Apr 2005 23:13:52 +1000
Local: Sat, Apr 2 2005 8:13 am
Subject: Vi markdown trick
I don't know if others are using "vi" as well but I recently added a
command to vim to run Markdown on chosen bits of text for me.

I edited ~/.vimrc and added this line:

:com -range=% -nargs=* FilterText <line1>,<line2>!SmartyPants.pl | Markdown.pl

It filters the chosen text through both SmartyPants and Markdown and
all I have to do is ":F" (after a visual select) or for the whole
document ":1,$F", etc (like any other "vi" command).

Hope this is useful to some and not "in the way" for others :)

-- Sarah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »