From what I understand the Super retab
(http://vim.wikia.com/wiki/Super_retab) helps you to indent something in
visual mode (not really usefull)
Smart tabs (http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_spaces)
is EXACTLY WHAT I WANT
I did download the addin at :
http://www.vim.org/scripts/script.php?script_id=231 and put it in my
~/.vim/ftplugin directory
In my .vimrc I put :
:set noet sts=0 sw=4 ts=4
:set cindent
:set cinoptions=(0,u0,U0)
Note : in the previous link there is no closing ) but I guess It was a typo
Note2 : I also got rid of the ":", as I don't think they make any difference
First problem was : getting tabs in begining of lines : SOLVED
answer : just doing gg=G in the document... nice
One problem remains, lets suppose I want to have a function like :
|----|----|myvariable = someobject.afunction(arg1,arg2,arg3,
|----|----|----------------------------------------------------arg4)
According to the document that is exactly what It should do, however the
result is
|----|----|myvariable = someobject.afunction(arg1,arg2,arg3,
|----|----|----|----|----|----|----|----|----|----|----|----|-arg4)
I am a bit stuck, I think the pluggin is just not working... do you have an
idea, should I mention the path of the addin in my vimrc or something ?
Thanks for your help
--
View this message in context: http://vim.1045645.n5.nabble.com/replace-spaces-by-tabs-begining-line-tp3218935p3237574.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment