make <cr> create new line in normal mode

This commit is contained in:
Jonathan Hodgson 2017-06-09 14:12:34 +01:00
parent b3e0b9caad
commit 6bc8b2d423

4
.vimrc
View file

@ -250,6 +250,10 @@ inoremap <C-j> <esc>:exe "norm Ypf lDB\<C-a>"<cr>A
nnoremap <leader>ev :vsplit $MYVIMRC<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>
" add new line without entering insert mode
nnoremap <CR> o<Esc>
nnoremap <S-Enter> O<Esc>
" Set double space in insert mode to go to next mark and enter insert mode
"inoremap <leader><leader> <Esc>:call NextMark()<cr>