.vimrc

changeset 604
0d7437c668d0
parent 603
ae87c045d04b
child 610
5f49012f8242
equal deleted inserted replaced
603:ae87c045d04b 604:0d7437c668d0
55 catch 55 catch
56 endtry 56 endtry
57 57
58 call vundle#end() 58 call vundle#end()
59 " }}} 59 " }}}
60
61 60
62 " Key maps {{{ 61 " Key maps {{{
63 nmap <silent> <F1> :Unite buffer<CR> 62 nmap <silent> <F1> :Unite buffer<CR>
64 nmap <silent> <C-F1> :Unite -quick-match -short-source-names window tab:no-current<CR> 63 nmap <silent> <C-F1> :Unite -quick-match -short-source-names window tab:no-current<CR>
65 nmap <silent> <A-F1> :Unite session<CR> 64 nmap <silent> <A-F1> :Unite session<CR>
121 120
122 cabbr Q q 121 cabbr Q q
123 cabbr W w 122 cabbr W w
124 "}}} 123 "}}}
125 124
126
127 " General settings {{{ 125 " General settings {{{
128 syntax on 126 syntax on
129 filetype plugin indent on 127 filetype plugin indent on
130 128
131 set encoding=utf-8 129 set encoding=utf-8
221 endif 219 endif
222 220
223 set guioptions-=T "no toolbar, menu, tearoffs 221 set guioptions-=T "no toolbar, menu, tearoffs
224 set guioptions-=m 222 set guioptions-=m
225 set guioptions-=t 223 set guioptions-=t
226
227 " }}} 224 " }}}
228
229 225
230 " Autocmds {{{ 226 " Autocmds {{{
231 augroup vimrc 227 augroup vimrc
232 autocmd! 228 autocmd!
233 229
253 \ silent exe ':%s/\^\\V\s*\|\\\$|.*//g' | 249 \ silent exe ':%s/\^\\V\s*\|\\\$|.*//g' |
254 \ setl nomodifiable | 250 \ setl nomodifiable |
255 \ endif 251 \ endif
256 252
257 autocmd BufReadPost quickfix nmap <buffer> q <C-w>c 253 autocmd BufReadPost quickfix nmap <buffer> q <C-w>c
258
259 augroup END 254 augroup END
260 255
261 " Make paths when writing, as necessary 256 " Make paths when writing, as necessary
262 augroup AutoMkdir 257 augroup AutoMkdir
263 autocmd! 258 autocmd!
272 autocmd BufWritePre *.gpg :%!GPG_TTY=/dev/tty gpg2 -se -a --default-recipient-self 267 autocmd BufWritePre *.gpg :%!GPG_TTY=/dev/tty gpg2 -se -a --default-recipient-self
273 autocmd BufWritePost *.gpg u 268 autocmd BufWritePost *.gpg u
274 augroup END 269 augroup END
275 "}}} 270 "}}}
276 271
277
278 " Perl type-specific settings {{{ 272 " Perl type-specific settings {{{
279 let perl_include_pod = 1 273 let perl_include_pod = 1
280 let perl_sub_signatures = 1 274 let perl_sub_signatures = 1
281 let perl_sync_dist = 200 275 let perl_sync_dist = 200
282 " }}} 276 " }}}
283 277
284
285 " Plugin settings {{{ 278 " Plugin settings {{{
286
287 ">> Vimwiki 279 ">> Vimwiki
288 let g:vimwiki_list = [ 280 let g:vimwiki_list = [
289 \ { 281 \ {
290 \ 'path': '~/vimwiki/', 282 \ 'path': '~/vimwiki/',
291 \ 'auto_tags': 1, 'auto_toc': 1, 'automatic_nested_syntaxes': 1 283 \ 'auto_tags': 1, 'auto_toc': 1, 'automatic_nested_syntaxes': 1
406 398
407 ">> interestingwords 399 ">> interestingwords
408 " These are jellybeans colors and some complements 400 " These are jellybeans colors and some complements
409 let g:interestingWordsGUIColors = ['#C4A258', '#D8AD4C', '#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C'] 401 let g:interestingWordsGUIColors = ['#C4A258', '#D8AD4C', '#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C']
410 let g:interestingWordsRandomiseColors = 1 402 let g:interestingWordsRandomiseColors = 1
411
412 " }}} 403 " }}}
413
414 404
415 " {{{ Commands 405 " {{{ Commands
416 " Preview markdown mail -- I edit with headers so I box them in a code block. 406 " Preview markdown mail -- I edit with headers so I box them in a code block.
417 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 407 command! MailPreview enew | set bt=nofile | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0
418 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0 408 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm 0O```<Esc>}O```' | silent exe '%!mutt-md2html' | 0
462 452
463 if &t_Co == 256 453 if &t_Co == 256
464 colorscheme jellybeans 454 colorscheme jellybeans
465 endif 455 endif
466 endif 456 endif
467

mercurial