> Hello
>
> My company has a new coding convention (coding style guidelines) that I
> really do not like (it includes a tabsize of 4) and I would like to format
> the text a little automatically on buffer load, and change it back on save,
> but I do not want every source file I open with vim to show up as
> "modified" in vim.
>
> Is it possible to reformat code upon opening the file (or after a
> key-press), and show the buffer as "saved" (without writing the formatted
> code back) ?
>
> Thank you,
> Timothy Madden
>
>
You can simply set the tabstop to whatever value suits you.
upon loading any file:
set tabstop=2
If your company uses spaces to indent, you can search for another
company (troll in disguise).
JM
PS : if your company's using spaces, your only option is to get used to
it. 4 is a reasonable size, you may not like it but you'll get used to
it eventually.
--
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