mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] use :write instead of :update
This commit is contained in:
parent
d2dd0cb301
commit
a4eede589b
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue