.config/nvim/plugin/vimrc/commands.vim

changeset 1078
aa4c1aa529a5
parent 1025
9dfc1a5a52dc
child 1079
b59861305252
equal deleted inserted replaced
1077:5439ee582f9b 1078:aa4c1aa529a5
1 command! -nargs=+ CAlias call vimrc#CommandAlias(<f-args>)
2
3 command! Gcd call vimrc#Gcd()
4 command! Hgcd call vimrc#Hgcd()
5
6 command! SyntaxCompleteOn setl omnifunc=syntaxcomplete#Complete 1 command! SyntaxCompleteOn setl omnifunc=syntaxcomplete#Complete
7 2
8 command! Mksession execute "mksession! " . v:this_session 3 command! Mksession execute "mksession! " . v:this_session
9 command! PruneSession call vimrc#PruneSession() 4 command! PruneSession call vimrc#PruneSession()
10 5
11 " Preview markdown mail -- I edit with headers so I box them in a code block. 6 " Preview markdown mail -- I edit with headers so I box them in a code block.
12 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 7 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0
13 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 8 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
14 9
15 command! -nargs=* -complete=file Grep call vimrc#Grep(<f-args>) 10 command! -nargs=* -complete=file Grep call vimrc#Grep(<f-args>)
16 CAlias Ag Grep
17 CAlias grep Grep
18
19 CAlias Q q
20 CAlias Qa qa
21 CAlias W w
22
23 CAlias gcd Gcd
24 CAlias hgcd Hgcd
25
26 " make these default to one window/buffer too
27 CAlias doc ViewDoc!
28 CAlias help ViewDocHelp!
29 CAlias man ViewDocMan!
30 CAlias perldoc ViewDocPerl!
31

mercurial