For vim users who use markdown or maruku and need a little help surrounding words.
This function goes into your vimrc.
I’ve mapped it to “,m” in visual mode.
Select a word or line or block, press ,m
You are prompted for a char or chars. These chars are placed on both sides of the visually
marked block.
I use HTML.vim, [...]
Archive for the 'vim' Category
Vim function for markdown maruku users
October 12, 2009Vim and Textile
August 31, 2008Tim the Enchanter, has some great things to say about the vim editor, my childhood friend. He talks of Textile for Vim. Sounds great. However, I wanted to leave a note telling him about HTML.vim but Tim doesn’t take comments.
I used to like Textile but much prefer Maruku now.
—
Neverblock: asynch IO for ruby.
Neverblock mysql.
Using HTML/XHTML Editing in Vim
March 2, 2007This is just SOOOOO mind-blowing. How could anyone edit HTML in anything other than VIM once they get their hands around this … HTML.vim.
One quick glance at the above document will convince you that Vim IS the text-editor to use for HTML’ing.
while (<>) {
// OOOOH ! see how they convert characters like \ to their [...]
testing vim macros with blogger
March 2, 2007gentlemen. Now is the time to rise, er raise your mineral water glasses. We can finally breathe !!!
We can finally edit our blogs in Vim, and publish them from within Vim at a keystroke. What is more we can write scripts in other languages and easily interface them with Vim. What is more, content written [...]
Pretty Print Code script (hack)
March 1, 2007The hack presented below has been developed on a MAC OS X. It uses the TOhtml function of the Vim Editor (i use Version 7.0). It runs in HTML Mode only.
f=$1vim -f +”syn on” +”run! syntax/2html.vim” +”wq” +”q” $f
sed -n ‘/<pre>/,/<\\/pre>/p’ $f.html | sed ’s~<pre>~<pre style=”margin: 1.5em 0px; padding: 10px 10px 10px 10px; [...]
Vim and Ruby
February 28, 2007Have been doing some work of late using my favorite editor VIM. A life-changing article or series of tips is this page. Using Vim with and a programming language like Ruby, makes a very powerful combination.
So I do part of my work in Vim itself, using its powerful regular expressions and other features. Once [...]
Recent Comments