HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

Vim /

spell check

#############################

Question

How to use spell checking in Vim?

Answer

:setlocal spell spelllang=en_us    (switch spell on)
:setlocal nospell    (switch spell off)
]s    (next misspelled word)
[s    (previous misspelled word)
zg    (the word is correct; add to word-list)
z=    (suggestion for the current word)
:spellr    (repeat the previous replacement everywhere)

Simple way: add the following lines to your .vimrc file:

"switch spell check on/off (grammar check)
setlocal spell spelllang=en_us      "let's use English by default
set nospell                         "by default, spell is off
map <F2> :set spell!<CR>

Then with <F2> you can switch on/off the spell check. Use gvim instead of vim, it'll underline the misspelled words in red. Right click on a word to get a list of possible corrections.

Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2008 June 01, 09:11