Shift-Enter我想在 vim 中使用and以正常模式插入换行符Ctrl-Enter。我尝试了一些来自Vim Wikia 的解决方案和混合解决方案 - 在不进入插入模式的情况下插入换行符,Shift-Enter但没有Ctrl-Enter响应:
" put a new line before or after to this line
nnoremap <S-CR> m`o<Esc>``
nnoremap <C-CR> m`O<Esc>``
" reverse J command
nnoremap <C-J> vaW<Esc>Bi<CR><Esc>k:s/\s\+$//<CR>$