diff options
author | katherine <shmibs@shmibbles.me> | 2016-09-06 07:44:08 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2016-09-06 07:44:08 -0700 |
commit | 61180765a62e91acff44894f757de91166e91957 (patch) | |
tree | 284e782a7d0b6c7c7457fc4c12d10d78f1b06230 | |
parent | 76f6e13b8c8c283aa83784295e0e9cf605fe1861 (diff) | |
download | dotfiles-61180765a62e91acff44894f757de91166e91957.tar.gz |
add mips filetype handling
-rw-r--r-- | .vimrc | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -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 |