Hi, You can see my .vimrc content here - https://groups.google.com/forum/#!topic/vim_use/zy2yUzWsD9U
I am not using *tab* for indentation, rather 2 space indentation. Could you tell me what to change in my .vimrc file ? > If tabs are used, not just an amorphous pile of spaces, then indentation > > information exists in the file. Then, as partially described in > > ":h listchars", we can: > > > > :set tabstop=2 sw=2 noexpandtab > > :set listchars+=tab:>- > > :set list > > > > so that: > > > > class Foo > > def foo > > x = 10 > > y = 12 > > end > > end > > > > gains a blue ">-" for each tab present. Visually scanning the columns of > > ">" is much quicker than counting dots. Changing the listchars to tab:!- > > makes that even easier, I find. (Attempting tab:|- generates an error.) > > > > If you have autoindent enabled, you will also see those ">-" appear. > > > > To turn off the indication: > > > > :set nolist > > > > It may be convenient to map these on and off operations to e.g. F1,F2. > > > > Is that close enough? > > > > Erik > > > > -- > > It is not possible to have a democracy if we have to protect our users from > the > > government. The government has done itself a tremendous disservice and we need > > to have a debate about it, - Larry Page, at TED, where Edward Snowden > appeared. > > <http://www.bbc.com/news/technology-26658892> -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
