common lisp - slimv + vim : slimv ignores vim tab settings -
i'm using vim 7.3 slimv edit *.lisp files.
unfortunately, slimv pretty ignores vim indentation settings causes mess time time. want use tabs indenting , have following lines in vimrc:
set tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab let g:paredit_mode = 0
slimv ignores settings , insist on using spaces indentation, 2 spaces per indent. managed fix "tab" behavior (so no longer inserts 2 spaces instead of tab) commenting out
setlocal expandtab
in vim\vimfiles\indent\lisp.vim
, however, i'm not quite sure how fix autoindentation when insert new line in middle of lisp form. in scenario slimv again ignores settings , aligns new line using spaces instead of tabs, 2 spaces per indentation level.
as far can tell, indentation handled in function! slimvindent( lnum )
located in `vim/vimfiles/ftplugin/slimv.vim", i'm not quite sure how fix function (and doesn't seem have configurable settings anywhere).
how can fix tab behavior in slimv? has useful shortcuts (,e
evaluate form, etc), tab problem quite annoying.
ideas?
i have fixed slimv inserts tabs (plus spaces remaining columns) when indenting, if noexpandtab
set after file loaded. slimv still defines expandtab
default, not enough add :set noexpandtab
.vimrc
, can override 'post' or 'after' command, example:
au bufreadpost *.lisp set noexpandtab
or enter :set noexpandtab
in editor time wish.
please fetch recent version slimv repository. still advise against using tabs in lisp source files, see comments below original post on why.
Comments
Post a Comment