Archive for the ‘vim’ Category

german-russian, german-arabic vim keymaps

Friday, December 16th, 2011

vim includes many keyboard layouts, defined as mappings for symbols of the english layout. Unfortunately, these maps are not useful when the base layout is german. QWERTZ vs QWERTY is not the only difference. Now, deutsch-russisch und deutsch-arabisch vim keymaps sind da.

(more…)

vim unicode setup for windows 2000

Wednesday, December 29th, 2010

To display unicode (utf8) files in vim in windows, the following commands should be added to %PROGRAMS%\Vim\_vimrc:

(more…)

entering special characters in vim

Wednesday, March 10th, 2010

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“.

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…)