From 5a4d1e424019660d9dad5b2bbb1382e0b0e2f575 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 31 Mar 2016 11:28:39 +0100 Subject: [PATCH] Better matlab/octave indent handling --- makelinks.sh | 2 +- octaverc | 4 ++++ vimrc | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 octaverc diff --git a/makelinks.sh b/makelinks.sh index 1a37bd6..5f34e6f 100755 --- a/makelinks.sh +++ b/makelinks.sh @@ -8,7 +8,7 @@ dir=~/etc/dotfiles olddir=~/etc/dotfiles.bak -files="vimrc bashrc bash_profile bash_aliases dir_colors Xresources gitconfig gitignore xinitrc inputrc" +files="octaverc vimrc bashrc bash_profile bash_aliases dir_colors Xresources gitconfig gitignore xinitrc inputrc" directories="mutt" ########## diff --git a/octaverc b/octaverc new file mode 100644 index 0000000..5444617 --- /dev/null +++ b/octaverc @@ -0,0 +1,4 @@ +edit mode async +edit home . +EDITOR('vim > /dev/tty 2>&1 < /dev/tty %s') + diff --git a/vimrc b/vimrc index fbe7147..e92096f 100644 --- a/vimrc +++ b/vimrc @@ -27,6 +27,8 @@ Plugin 'editorconfig/editorconfig-vim' Plugin 'LaTeX-Box-Team/LaTeX-Box' Plugin 'ajh17/VimCompletesMe' Plugin 'hynek/vim-python-pep8-indent' +Plugin 'vim-scripts/octave.vim--' +Plugin 'vim-scripts/MatlabFilesEdition' " All of your Plugins must be added before the following line call vundle#end() " required @@ -88,3 +90,8 @@ let g:clang_user_options='|| exit0' " Color 80th column highlight ColorColumn ctermbg=237 set colorcolumn=80 + +" Octave Syntax +" augroup filetypedetect +" au! BufRead,BufNewFile *.m,*.oct set filetype=octave +" augroup END -- 2.46.2