]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Better matlab/octave indent handling
authorMaximilian Friedersdorff <maxf130@gmail.com>
Thu, 31 Mar 2016 10:28:39 +0000 (11:28 +0100)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Thu, 31 Mar 2016 10:28:39 +0000 (11:28 +0100)
makelinks.sh
octaverc [new file with mode: 0644]
vimrc

index 1a37bd6cc9f683b6cb60b8bcd6de5922dc7cf333..5f34e6f6a3665a8558994362df297669e46b5fd0 100755 (executable)
@@ -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 (file)
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 fbe7147eaa74175aca271a7e9189a37f92bf05c9..e92096fdf617a69b4bfc555fe8c7e477de9b2f58 100644 (file)
--- 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