Let's say I have the following text in a vim file:
1 "This is a function|
2 function MyFunction()
And my cursor is at the end of line 1 (show by the |
). If I press o
on that line, it will create a line like this:
1 "This is a function
2 "|
3 function MyFunction()
That is, a line starting with a comment-character. How can I disable this, so that when I press enter/o/O, it just creates a newline at the existing indent, ignoring any comment chars, like this:
1 "This is a function
2 |
3 function MyFunction()