At first, let me show the normal Vim behavior when Slimv is not enabled.
vim foo.c
.void f()
The cursor is now at position 2,1 (2nd row, 1st column).
After installing Slimv, if I perform the steps above, at the end, I find the cursor at position 2,5 (2nd row, 5th column) with four spaces inserted as indentation before the 5th column automatically.
How can I disable this Slimv behavior for non-Lisp files (such as .c
files)?
The issue is caused by this line in paredit.vim:
filetype indent on
I added the option g:paredit_disable_ftindent
to paredit.vim to disable the loading of indent files, please add this line to your .vimrc
when using paredit.vim (or slimv that also contains paredit.vim):
let g:paredit_disable_ftindent=1