On 2009-05-01, StarWing <[email protected]> wrote: > On 5月1日, 上午4时36分, "Y. Hida" <[email protected]> wrote: >> Hi, >> >> I have a question regarding auto-indenting. Suppose I have a line >> whose indent is a mix of tabs and spaces, like following: >> >> ____....blah blah >> >> where ____ is a tab and . is a space. When I insert a new line after >> this vim either inserts only tabs, so I get >> >> ____....blah blah >> ________ >> >> Is there a way to just copy the indentation so that I get something >> like: >> >> ____....blah blah >> ____.... >> >> instead? I like using this kind of indenting to give flexibility to >> adjust tab widths without messing up other alignments, so that I can do >> something like >> >> ____void func(some very long arguments, >> ____..........more arguments aligned >> ____..........even more arguments aligned) >> >> without manually fixing the indentations each time. >> >> -Yozo > > see :h 'ci', you will find the answer:-)
Thanks! I didn't know about copyindent option. In retrospect, I should haved grepped the vim help files before asking. -Yozo --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
