On Jul 16, 8:25 am, Rafael Bermúdez <r.n.bermu...@gmail.com> wrote: > Hello. First post in the list. > > I was wondering what's the best method to use Tab key to indent with tabs, > and format with spaces. I mean, like Smart Tabs [0] do. I was directed from > #Vim to some threads ([1], [2]), where different solutions are suggested. I > like this setup, because everyone looking at the source code can use their > tabstop, while the comments remains aligned. > > What do you recommend to accomplish that? Should I stick with the Smart Tabs > plug-in?
Rafael, Although I don't currently use the Smart Tabs plugin, I do prefer the indent strategy it supports: i.e., tabs for leading indent, spaces everywhere else. I prefer this strategy for the same reason I prefer to use symbolic names for constants, rather than embedding numeric literals throughout my source code: it makes changes clean and easy. I prefer an indent of 4 spaces; some prefer 2 spaces; others 8 or even 16. Using tabs for leading indent allows each user to view indents as he prefers without modifying the file, simply by setting 'ts' to the desired value. I wasn't really familiar with the Smart Tab plugin, but now that I look at it, I see that it facilitates the sort of indentation I do manually. Perhaps I should give it a try... Brett Stahlman > > [0]http://www.vim.org/scripts/script.php?script_id=231 > [1]http://groups.google.com/group/vim_use/browse_thread/thread/eb86a0cb3... > [2]http://groups.google.com/group/vim_use/browse_thread/thread/67ea88f32... > > Regards, Rafael -- 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