m (On-the-fly spellcorrecting using abbreviations moved to Auto spelling correction using abbreviations: Page moved by JohnBot to improve title) |
m (Reverted edits by 202.62.16.98 (talk | block) to last version by Chrisbra) |
||
(10 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=1382 |
|id=1382 |
||
+ | |previous=1381 |
||
− | |title=On-the-fly spellcorrecting using abbreviations |
||
+ | |next=1384 |
||
− | |created= |
+ | |created=2006 |
|complexity=basic |
|complexity=basic |
||
|author=Peter Hodge |
|author=Peter Hodge |
||
− | |version= |
+ | |version=6.0 |
|rating=-1/14 |
|rating=-1/14 |
||
+ | |category1=Abbreviations |
||
− | |text= |
||
+ | |category2=Spell Checking |
||
− | Vim's abbreviations feature also doubles as an on-the-fly spell checker -- simply |
||
⚫ | |||
⚫ | |||
+ | <pre> |
||
⚫ | |||
+ | iabbrev mispell misspell |
||
− | |||
+ | iabbrev funciton function |
||
− | |||
+ | iabbrev functiton function |
||
− | |||
− | + | iabbrev fucntion function |
|
+ | iabbrev funtion function |
||
− | |||
− | + | iabbrev erturn return |
|
⚫ | |||
− | |||
− | + | iabbrev reutrn return |
|
⚫ | |||
− | |||
− | + | iabbrev queyr query |
|
⚫ | |||
− | |||
− | + | iabbrev foreahc foreach |
|
⚫ | |||
− | |||
+ | </pre> |
||
− | iabbrev erturn return |
||
− | |||
⚫ | |||
− | |||
− | iabbrev reutrn return |
||
− | |||
⚫ | |||
− | |||
− | iabbrev queyr query |
||
− | |||
⚫ | |||
− | |||
− | iabbrev foreahc foreach |
||
− | |||
⚫ | |||
− | |||
− | |||
⚫ | |||
+ | For a list of English spelling corrections you can use immediately, check out {{script|id=2429|text=autocorrect.vim}}. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | <pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | </pre> |
||
⚫ | |||
− | I would be more interested in a plugin that could correct all spellings, |
||
− | using dict or web lookups for all known words minus spam. |
||
− | m |
||
− | , November 13, 2006 9:04 |
||
---- |
---- |
||
− | <!-- parsed by vimtips.py in 0.745832 seconds--> |
Latest revision as of 14:44, 22 April 2015
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.
Comments[]
Alternately:
set dict=/usr/dict/words set spell
and turn completion on.