From 76f47223da8af66661158439d72a5c99be145cbd Mon Sep 17 00:00:00 2001 From: shmibs Date: Sat, 4 Jul 2015 03:04:00 -0700 Subject: add some filtypes to .vimrc --- .vimrc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 9fd3225..b00114c 100644 --- a/.vimrc +++ b/.vimrc @@ -77,8 +77,7 @@ let g:UltiSnipsJumpBackwardTrigger="" noremap gr gq "insert lines below -nnoremap ++ == -nnoremap = Oj +nnoremap = :set pastem`O``:set nopaste "folds! nnoremap fo zO @@ -136,14 +135,17 @@ autocmd BufNewFile,BufRead *.tex set filetype=tex "doing with viml), so separate lines it is. autocmd FileType asm call Settings_asm() autocmd FileType c call Settings_c() +autocmd FileType coffee call Settings_coffee() autocmd FileType cpp call Settings_c() autocmd FileType css call Settings_c() +autocmd FileType d call Settings_c() autocmd FileType tex call Settings_tex() autocmd FileType haskell call Settings_haskell() autocmd FileType html call Settings_html() autocmd FileType xhtml call Settings_html() autocmd FileType make call Settings_script() autocmd FileType matlab call Settings_matlab() +autocmd FileType mkd call Settings_text() autocmd FileType nim call Settings_nim() autocmd FileType perl call Settings_script() autocmd FileType python call Settings_script() @@ -171,6 +173,16 @@ function! Settings_c() nnoremap -- O*/hhi/* endfunction +function! Settings_coffee() + "settings + setlocal foldmethod=syntax + setlocal shiftwidth=2 + setlocal tabstop=2 + setlocal softtabstop=2 + "mappings + nnoremap -- O# +endfunction + function! Settings_haskell() "settings "mappings -- cgit v1.2.3