Whenever i’ve tried to type something like :
void InsertVertices(const std::vector<Vertex> &vertices);
Vim automatically converts it to:
void
InsertVertices(const
std::vector<Vertex>
&vertices);
and here is my vimrc:
set wrapmargin=80
set wrap
" for google codestyle
syntax on
set shiftwidth=2
"set wrap
set tabstop=2
set softtabstop=2
What should i to to prevent this autoformatting?
set textwidth=80
work for me, thank you for you time!
As far as I know textwidth must be 0 for wrapmargin to take effect. Maybe you could try explicitly setting your textwidth:
Or use textwidth instead: