Wednesday, April 11, 2012

Reformat code without buffer to apear "unsaved"

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 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: