Archive for the ‘vim’ Category

wrapping text in vim

Sunday, December 3rd, 2006

For long time, I wanted the following functionality in vim: I select text and say “wrap the text by a tag”. Now I’m formatting texts for HTML, and this functionality is so much required that I’ve got it.

(more…)

fast docbook editing in vim

Tuesday, June 21st, 2005

I’m going to write quite a big text in DocBook format. At work I use FrameMaker, but at home I don’t have FM, so I’ll use the universal text editor vim. DocBook is very verbose format, and it is very unefficient to edit DocBook texts without assistance from a editor. I’ve looked for how vim can help me and found a life changing solution.

(more…)

indenting XML in vim

Wednesday, June 15th, 2005

Sometimes I need to look inside XML files which consist of one big line. It’s very impossible, and reformatting takes a time. Fortunately, I’ve found a good solution for vim.

(more…)

character code under cursor and other vim tips

Wednesday, June 15th, 2005

I often need to know the code of a symbol, and I always forget how to reveal the code in vim. In order to remember, I’m saving it in the blog: “ga”. Meanwhile, a useful list of vim command is found: “Tip #305: Best of VIM Tips (VIM’s best Features)“.

vim and linebreak at the end of file

Monday, April 11th, 2005

Sometimes it’s very unhelpful when vim automatically adds a linebreak at the end of file. Finally, I’ve became so irritated to switch to joe each time to correct the file, that I’ve found a solution.

(more…)