aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2015-07-04 03:04:00 -0700
committershmibs <shmibs@gmail.com>2015-07-04 03:04:00 -0700
commit76f47223da8af66661158439d72a5c99be145cbd (patch)
tree997d504c807b4f08d6d04cfc91c32ea4eed3f1fa /.vimrc
parent04ea964440221a09d9a66af52749287ddbf49315 (diff)
downloaddotfiles-76f47223da8af66661158439d72a5c99be145cbd.tar.gz
add some filtypes to .vimrc
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc16
1 files changed, 14 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index 9fd3225..b00114c 100644
--- a/.vimrc
+++ b/.vimrc
@@ -77,8 +77,7 @@ let g:UltiSnipsJumpBackwardTrigger="<c-b>"
noremap gr gq
"insert lines below
-nnoremap ++ ==
-nnoremap = O<Esc>j
+nnoremap <silent>= :set paste<CR>m`O<Esc>``:set nopaste<CR>
"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 <buffer> -- O<Space>*/<Esc>hhi/*<Space>
endfunction
+function! Settings_coffee()
+ "settings
+ setlocal foldmethod=syntax
+ setlocal shiftwidth=2
+ setlocal tabstop=2
+ setlocal softtabstop=2
+ "mappings
+ nnoremap <buffer> -- O#<Space>
+endfunction
+
function! Settings_haskell()
"settings
"mappings