A vim plugin that emulates all of the powerful IDE features of MATLAB in vim so you don't need to run the full GUI.
git clone https://mcol.xyz/code/vimlab
Log | Files | Refs | README | LICENSE

commit bdb542771142a92debc2a97dbce05b539dad28f2
parent e9917cdf4287891545d453318fd36ee216de383f
Author: mcol <mcol@posteo.net>
Date:   Mon, 29 Oct 2018 19:07:39 +0000

made indenting whole file a function to preserve cursor position

Diffstat:
Mftplugin/matlab.vim | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ftplugin/matlab.vim b/ftplugin/matlab.vim @@ -189,5 +189,10 @@ map <Leader>ss :w<CR>:mksession! ~/.cache/vim/sessions/matlab-session.vim<Cr> nnoremap XA :mksession! ~/.cache/vim/sessions/matlab-session.vim<CR>:wqa<CR> " ctrl-i to indent the whole file -nnoremap <C-i> msgg=G`szz +function! IndentFile() + let l:win_view = winsaveview() + :normal! gg=G + call winrestview(l:win_view) +endfunction +nnoremap <C-i> :call IndentFile()<CR>