# HG changeset patch # User Meredith Howard # Date 1453357625 18000 # Node ID 67b9c904e88059e05a68e430ea21f129ca6d729b # Parent eac6889051922662e5388f277bf9000e1a9b2c84 add file marks for 'last file by category' diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -293,9 +293,11 @@ augroup vimrc " preload templates into new buffers by file extension "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template - " simple strip trailing whitespace on save - "autocmd BufWritePre *.pl,*.rb,*.js,*.css,*.md :%s/\s+$//e - + " Set file marks by "category" on switch-away + autocmd BufLeave *.css,*,less,*.scss normal! mC + autocmd BufLeave *.html,*.ep,*.tt normal! mH + autocmd BufLeave *.js normal! mJ + autocmd BufLeave *.pl,*.pm normal! mP augroup END "}}}