diff options
author | shmibs <shmibs@gmail.com> | 2015-06-15 14:55:33 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2015-06-15 14:55:33 -0700 |
commit | 04ea964440221a09d9a66af52749287ddbf49315 (patch) | |
tree | c48de9d8dea5f0a1229427e8f93167fba9d64b11 /.vimrc | |
parent | cff2bcd79c676b35a8850d792304a26ef68b78f9 (diff) | |
download | dotfiles-04ea964440221a09d9a66af52749287ddbf49315.tar.gz |
incremental update
changes i've let back up over time
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -78,7 +78,7 @@ noremap gr gq "insert lines below nnoremap ++ == -nnoremap = Oa<C-u><Esc>j +nnoremap = O<Esc>j "folds! nnoremap fo zO @@ -118,17 +118,19 @@ end " FILETYPE SETTINGS " """"""""""""""""""""""" -"always use rust instead of hercules -au BufNewFile,BufRead *.rs set filetype=rust - -"always use LaTeX -au BufNewFile,BufRead *.tex set filetype=tex - "annoying syntax-related values that need to be set before files are "opened let g:c_no_comment_fold = 1 let g:c_no_if0_fold = 1 +if has("autocmd") + +"always use rust instead of hercules +autocmd BufNewFile,BufRead *.rs set filetype=rust + +"always use LaTeX +autocmd BufNewFile,BufRead *.tex set filetype=tex + "other filetype-specific settings. i can't figure out how to stick all "the FileTypes in one dict (mostly because i have no idea what i'm "doing with viml), so separate lines it is. @@ -252,3 +254,5 @@ function! Settings_vim() "mappings nnoremap <buffer> -- O" endfunction + +endif "autocmd |