aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-09-06 07:44:08 -0700
committerkatherine <shmibs@shmibbles.me>2016-09-06 07:44:08 -0700
commit61180765a62e91acff44894f757de91166e91957 (patch)
tree284e782a7d0b6c7c7457fc4c12d10d78f1b06230
parent76f6e13b8c8c283aa83784295e0e9cf605fe1861 (diff)
downloaddotfiles-61180765a62e91acff44894f757de91166e91957.tar.gz
add mips filetype handling
-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