-
Notifications
You must be signed in to change notification settings - Fork 0
/
abbrev.vim
32 lines (31 loc) · 632 Bytes
/
abbrev.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
" skip trailing space, copeid from :h abbreviations
" usage: ia <silent> foo bar<Left><C-R>=Eatchar("\s")<CR>
func! Eatchar(pat)
let c = nr2char(getchar(0))
return (c =~ a:pat) ? '' : c
endfunc
" Abbreviations to fix some common spelling mistakes.
" NOTE: using 'ab' instead of 'ia' corrects these while typing commands as well,
" which might not be desirable.
ia ot to
ia si is
ia ti it
ia ni in
"ia no on
ia fo of
ia th the
ia Th The
ia hte the
ia teh the
ia nad and
ia adn and
ia tihs this
ia thsi this
ia wiht with
ia taht that
ia vawe wave
ia wiev view
ia woudl would
ia lenght length
ia lentgh length
ia shoudl should