Le 10. 06. 11 00:25, Gary Johnson a écrit :
On 2011-06-09, luc.d wrote:
I'm using hardtabs since i use vi and before yet,
but sometimes in vim spaces are used for indentation anyway,
and I hate having to type backspace to replace them :-/
There should be a "purehardtabs" option disabling those indent rules
based on string length.
You've discovered a filetype plugin that sets 'expandtab'? If
that's the case, then as long as that plugin does not rely on
indentation being done with spaces, you should be able to reset
'noexpandtab' by putting
set noexpandtab
in a file named ~/.vim/after/ftplugin/<filetype>.vim.
Alternatively, you could put this in your ~/.vimrc:
au FileType * set noexpandtab
which would work for all file types.
Regards,
Gary
With my coding style it should not happend if there's no bug one or both
sides of the keyboard.. but text should never be aligned with spaces
when someone dont want spaces. It's better yet since my morning patch...
(I had installed 7.3 on purpose and javascript objects indentation was
still not working) I should have done it a few years ago..
switch(foo) {
case foo: foo=true;
foo+=true;
}
I would prefer the third line indented one tab after 'case foo:' than
aligned with spaces..
There would be only the space before 'foo=true' to remove, and press
return to correct..
The point is 'indent with tabs' = 'never use space to align' ..
At least it should be optional.
Regards,
:7üC:
--
You received this message from the "vim_dev" 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