[nvim] change :w to :update in the <CR> mapping

This commit is contained in:
Dmytro Meleshko 2019-04-22 23:46:04 +03:00
parent a838ded382
commit 05a31ea2b5

View file

@ -62,7 +62,7 @@ set foldmethod=marker
" Mappings {{{
" arguably one of the most useful mappings
nnoremap <silent><expr> <CR> &buftype is# '' ? ":w\<CR>" : "\<CR>"
nnoremap <silent><expr> <CR> &buftype is# '' ? ":update\<CR>" : "\<CR>"
" stay in the Visual mode when using shift commands
xnoremap < <gv