entering special characters in vim
Wednesday, March 10th, 2010Time to time, I forget it. Found again in some wiki: “Entering special characters“. In short: ^Vnnn or ^Vxnn. Note also: “how to input diacritic characters“.
Time to time, I forget it. Found again in some wiki: “Entering special characters“. In short: ^Vnnn or ^Vxnn. Note also: “how to input diacritic characters“.
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)“.
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.