Archive for the ‘vim’ Category
To display unicode (utf8) files in vim in windows, the following commands should be added to %PROGRAMS%\Vim\_vimrc:
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.
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.
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.
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)“.