Wikia

Vim Tips Wiki

Changes: Auto spelling correction using abbreviations

Edit

Back to page

m (Reverted edits by Emprego.curitiba (talk | block) to last version by JohnBot)
 
Line 42: Line 42:
   
 
----
 
----
 
[http://www.vipsexshop.com.br Sex Shop]
 
[http://www.requintesexshop.com.br Sex Shop]
 
[http://www.sexshop.com.vc Sex Shop]
 
[http://www.belasexshop.com.br Sex Shop]
 
[http://www.belasexshop.com Sex Shop]
 
[http://blog.vipsexshop.com.br Dicas de Sexo]
 
[http://www.viplingerie.com.br Lingerie]
 
[http://www.vipcalcinhas.com.br Calcinhas]
 
[http://www.uniformesbr.com Uniformes Profissionais]
 
[http://www.uniformesbr.com Uniformes]
 

Latest revision as of 14:50, November 8, 2011

Tip 1382 Printable Monobook Previous Next

created 2006 · complexity basic · author Peter Hodge · version 6.0


Vim's abbreviation feature also doubles as an on-the-fly spell checker. Simply create abbreviations for words you misspell often and Vim will fix them for you:

iabbrev mispell misspell
iabbrev funciton function
iabbrev functiton function
iabbrev fucntion function
iabbrev funtion function
iabbrev erturn return
iabbrev retunr return
iabbrev reutrn return
iabbrev reutn return
iabbrev queyr query
iabbrev htis this
iabbrev foreahc foreach
iabbrev forech foreach

For a list of English spelling corrections you can use immediately, check out autocorrect.vim.

CommentsEdit

Alternately:

set dict=/usr/dict/words
set spell

and turn completion on.


Around Wikia's network

Random Wiki