I've added the following line un my .vimrc to add a line break when I press enter in normal mode:
"" insert line break in normal mode on Enter
nmap <S-Enter> O<Esc>
nmap <CR> o<Esc>
This works fine except when I want to comment the current line in normal mode by pressing cmd+/ where it comments the current line and add a line break which is also commented. How can I fix this?
Many thanks