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

changeset 1025
9dfc1a5a52dc
parent 1022
d509e282ae10
child 1078
aa4c1aa529a5
equal deleted inserted replaced
1024:edacbb66fc8f 1025:9dfc1a5a52dc
5 5
6 command! SyntaxCompleteOn setl omnifunc=syntaxcomplete#Complete 6 command! SyntaxCompleteOn setl omnifunc=syntaxcomplete#Complete
7 7
8 command! Mksession execute "mksession! " . v:this_session 8 command! Mksession execute "mksession! " . v:this_session
9 command! PruneSession call vimrc#PruneSession() 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 10
15 " Preview markdown mail -- I edit with headers so I box them in a code block. 11 " 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 12 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 13 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
18 14

mercurial