.vimrc

changeset 465
a771fe75a85c
parent 464
452034aff788
child 466
d76f82e65929
equal deleted inserted replaced
464:452034aff788 465:a771fe75a85c
349 " preload templates into new buffers by file extension 349 " preload templates into new buffers by file extension
350 "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template 350 "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template
351 351
352 " double-click to edit 352 " double-click to edit
353 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file) 353 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file)
354
355 " Set file marks by "category" on switch-away
356 autocmd BufLeave *.css,*,less,*.scss normal! mC
357 autocmd BufLeave *.html,*.ep,*.tt normal! mH
358 autocmd BufLeave *.js normal! mJ
359 autocmd BufLeave *.pl,*.pm normal! mP
360 354
361 " Jump to last known pos 355 " Jump to last known pos
362 autocmd BufReadPost * 356 autocmd BufReadPost *
363 \ if &filetype != 'mail' && line("'\"") >= 1 && line("'\"") <= line("$") | 357 \ if &filetype != 'mail' && line("'\"") >= 1 && line("'\"") <= line("$") |
364 \ exe "normal! g`\"" | 358 \ exe "normal! g`\"" |

mercurial