Sun, 19 Feb 2023 03:46:56 -0600
update lock
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 | command! -nargs=* -complete=file Tig call tig#Tig(<f-args>) | |
12 | command! TigBlame call tig#TigBlame() | |
13 | command! TigLog call tig#Tig('log', '-p', '--', expand('%')) | |
14 | ||
15 | " Preview markdown mail -- I edit with headers so I box them in a code block. | |
16 | command! MailPreview enew | set bt=nofile | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 | |
17 | command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 | |
18 | ||
19 | command! -nargs=* -complete=file Grep call vimrc#Grep(<f-args>) | |
20 | CAlias Ag Grep | |
21 | CAlias grep Grep | |
22 | ||
23 | CAlias Q q | |
24 | CAlias Qa qa | |
25 | CAlias W w | |
26 | ||
27 | CAlias gcd Gcd | |
28 | CAlias hgcd Hgcd | |
29 | ||
30 | " make these default to one window/buffer too | |
31 | CAlias doc ViewDoc! | |
32 | CAlias help ViewDocHelp! | |
33 | CAlias man ViewDocMan! | |
34 | CAlias perldoc ViewDocPerl! | |
35 |