aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc20
1 files changed, 13 insertions, 7 deletions
diff --git a/.vimrc b/.vimrc
index c49bdf2..cf4e336 100644
--- a/.vimrc
+++ b/.vimrc
@@ -242,6 +242,7 @@ 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 mips call Settings_mips()
autocmd FileType mkd call Settings_text()
autocmd FileType nim call Settings_nim()
autocmd FileType perl call Settings_script()
@@ -327,10 +328,22 @@ endfunction
function! Settings_matlab()
"settings
+ setlocal shiftwidth=4
+ setlocal tabstop=4
+ setlocal softtabstop=4
"mappings
nnoremap <buffer> -- O%<Space>
endfunction
+function! Settings_mips()
+ "settings
+ setlocal shiftwidth=5
+ setlocal tabstop=5
+ setlocal softtabstop=5
+ "mappings
+ nnoremap <buffer> -- O#<Space>
+endfunction
+
function! Settings_nim()
call Settings_script()
function! JumpToDef()
@@ -346,13 +359,6 @@ function! Settings_nim()
nnoremap <buffer> -_ O##<Space>
endfunction
-function! Settings_python()
- call Settings_script()
- "settings
- setlocal expandtab
- "mappings
-endfunction
-
function! Settings_script()
"settings
setlocal shiftwidth=4