Sun, 05 Mar 2023 23:19:03 -0500
detect presence of nvim
1022 | 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 | |
7 | ||
8 | command! Mksession execute "mksession! " . v:this_session | |
9 | command! PruneSession call vimrc#PruneSession() | |
10 | ||
11 | " 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 | |
13 | command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 | |
14 | ||
15 | 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 |