.vimrc

changeset 639
383628663fd5
parent 638
a011c7252d25
child 640
f8985ae54969
equal deleted inserted replaced
638:a011c7252d25 639:383628663fd5
143 "}}} 143 "}}}
144 144
145 " General settings {{{ 145 " General settings {{{
146 syntax on 146 syntax on
147 filetype plugin indent on 147 filetype plugin indent on
148
149 set encoding=utf-8
150 148
151 set incsearch 149 set incsearch
152 set hlsearch 150 set hlsearch
153 set ignorecase 151 set ignorecase
154 set smartcase 152 set smartcase
441 let g:interestingWordsRandomiseColors = 1 439 let g:interestingWordsRandomiseColors = 1
442 " }}} 440 " }}}
443 441
444 " {{{ Commands 442 " {{{ Commands
445 " Preview markdown mail -- I edit with headers so I box them in a code block. 443 " Preview markdown mail -- I edit with headers so I box them in a code block.
446 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 444 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0
447 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 445 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
448 446
449 " Diff unsaved buffer 447 " Diff unsaved buffer
450 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis 448 command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
451 \ | wincmd p | diffthis 449 \ | wincmd p | diffthis
452 " }}} 450 " }}}

mercurial