-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathset_abbreviations.vim
47 lines (37 loc) · 1.25 KB
/
set_abbreviations.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
" set_abbreviations.vim
"
" Insert-mode abbreviations
"
" Common typos
"
iabbrev teh the
iabbrev tihs this
iabbrev jsut just
iabbrev exmaple example
" E-mail addresses and signature
"
iabbrev _ett [email protected]
iabbrev _egm [email protected]
iabbrev _sig Thanks,<CR>Bill
" Lorem ipsum
"
iabbrev <expr> _lipsum ''
\ . 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. '
\ . 'Praesent hendrerit tempus adipiscing. Nullam vitae nibh ut '
\ . 'arcu volutpat porta. Ut tristique molestie mollis. In at erat '
\ . 'a ante molestie molestie. Suspendisse varius arcu nec augue '
\ . 'condimentum semper. Vestibulum malesuada pulvinar mi, '
\ . 'fermentum elementum eros adipiscing dignissim. Vestibulum at '
\ . 'odio risus. Ut ipsum erat, volutpat sed cursus nec, blandit '
\ . 'ac diam. Integer tincidunt sollicitudin eros, sit amet '
\ . 'vulputate justo sollicitudin malesuada. Nulla dapibus dictum '
\ . 'dolor id semper. Phasellus pretium dapibus massa quis auctor. '
"
" Command-line abbreviations
"
" Replace :Set typo with :set
"
" See http://vim.wikia.com/wiki/VimTip1285 for details.
"
cabbrev Set <C-R>=(getcmdtype()==':' && getcmdpos()==1 ? 'set' : 'Set')<CR>
" end set_abbreviations.vim