Dariusz on Software

Methods and Tools

About This Site

Software development stuff

Archive

Entries tagged "vim".

Fri, 24 Jul 2009 07:28:06 +0000

Sometimes you have to edit files in different chatacters encodings using the same terminal (that is configured, let's say, for UTF-8). It's very easy by using the following Vim configuration:

set fileencodings=utf-8,iso-8859-2

This setting allows Vim to automatically detect encoding from list and select first that match. If your terminal is in different encoding file will be converted on-the-fly.

Happy Vim-ing!

Tags: vim.
Thu, 17 Mar 2011 12:50:26 +0000

In order to use VIM internal spellchecker just declare language used:

setlocal spell spelllang=en_us

And voila! All mispelled words will be highlighted by red background!

In order to add some words to dictionary, place cursor over such word and use "zg" command. Word will be marked as "correct" one. Looking at suggestions: "z=".

Pretty easy!

Tags: vim.

RSS feed

Tags

Created by Chronicle v3.5