I'm using xptemplate to writing C code, i must deal with following code snippet:
int foo(int a)
{
//bla bla
}
When i finished the first line of that and press enter, VIM will shift cursor according to the value of shiftwidth like
int foo(int a)
[cursor here]
Then i entered {, VIM will complete bracket for me like:
int foo(int a)
{ [cursor here ] }
I don't want to use this kind of indent, i just want it be :
int foo(int a)
{[cursor here]}
but i don't know how to configure it or if there is any other solution for this.
--
Thanks & Best Regards
Edward
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