The following code snippets explain my problem well.
What I want:
template<class T>
ostream& operator<<(ostream& out, const vector<T>& v)
{
...
}
int
main()
{
...
}
What I get (note the excessive deviation before the function name):
template<class T>
ostream& operator<<(ostream& out, const vector<T>& v)
{
...
}
int
main()
{
...
}
I have set filetype plugin indent onin mine ~/.vimrc.
I looked through this post , but the answer to this question looks like learning a new programming language. I'm a vim fan but not a vim expert. Is there no simpler solution?
source
share