From 61180765a62e91acff44894f757de91166e91957 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 6 Sep 2016 07:44:08 -0700 Subject: add mips filetype handling --- .vimrc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to '.vimrc') 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 -- O% endfunction +function! Settings_mips() + "settings + setlocal shiftwidth=5 + setlocal tabstop=5 + setlocal softtabstop=5 + "mappings + nnoremap -- O# +endfunction + function! Settings_nim() call Settings_script() function! JumpToDef() @@ -346,13 +359,6 @@ function! Settings_nim() nnoremap -_ O## endfunction -function! Settings_python() - call Settings_script() - "settings - setlocal expandtab - "mappings -endfunction - function! Settings_script() "settings setlocal shiftwidth=4 -- cgit v1.2.3