[nvim] use :write instead of :update

This commit is contained in:
Dmytro Meleshko 2019-05-18 11:23:30 +03:00
parent d2dd0cb301
commit a4eede589b
2 changed files with 4 additions and 3 deletions

View file

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

View file

@ -3,6 +3,10 @@ set fileformats=unix,dos,mac
set wildignore+=.git,.svn,.hg,.DS_Store,*~
" arguably one of the most useful mappings
nnoremap <silent><expr> <CR> &buftype is# '' ? ":write\<CR>" : "\<CR>"
" ripgrep (rg) {{{
if executable('rg')
let s:rg_cmd = "rg --hidden --follow"