Rank: 32023 based on 0 downloads (last 30 days) and 0 file submitted
photo

bitozoid

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by bitozoid View all
Updated File Comments Rating
15 May 2010 Editing Matlab files in Vim Edit Matlab M-files in Vim editor (indentation, syntax highlighting, tags , mlint support) Author: Fabrice

I have some expressions like 'a(end)'. The matcher does not seem to work in this case.

15 May 2010 Editing Matlab files in Vim Edit Matlab M-files in Vim editor (indentation, syntax highlighting, tags , mlint support) Author: Fabrice

At the moment this works for me:
--- /usr/share/vim/vim72/indent/matlab.vim-orig 2010-05-15 16:07:37.000000000 +0100
+++ /usr/share/vim/vim72/indent/matlab.vim 2010-05-15 16:08:09.000000000 +0100
@@ -116,7 +116,7 @@
let curind = curind - &sw
endif
" No indentation in a subfunction
- if getline(v:lnum) =~ '^\s*\function\>' && s:functionWithoutEndStatement
+ if getline(plnum) =~ '^\s*\function\>' && s:functionWithoutEndStatement
let curind = curind - &sw
endif
" First case after a switch : indent

15 May 2010 Editing Matlab files in Vim Edit Matlab M-files in Vim editor (indentation, syntax highlighting, tags , mlint support) Author: Fabrice

I get indentation for a main function (without end). Is this normal behaviour? Can I avoid it?

Contact us