nvim: init.vim: Disable ex mode and swap & backup files
This commit is contained in:
parent
f4f9cfe0e6
commit
d2c059bb40
|
@ -117,6 +117,9 @@ set linespace=0 " Set line-spacing to minimum.
|
||||||
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
|
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
|
||||||
set splitbelow " Horizontal split below current.
|
set splitbelow " Horizontal split below current.
|
||||||
set splitright " Vertical split to right of current.
|
set splitright " Vertical split to right of current.
|
||||||
|
set nobackup " no backup files
|
||||||
|
set nowritebackup " only in case you don't want a backup file while editing
|
||||||
|
set noswapfile " no swap files
|
||||||
|
|
||||||
if !&scrolloff
|
if !&scrolloff
|
||||||
set scrolloff=3 " Show next 3 lines while scrolling.
|
set scrolloff=3 " Show next 3 lines while scrolling.
|
||||||
|
@ -147,8 +150,10 @@ if maparg('<C-L>', 'n') ==# ''
|
||||||
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"nnoremap ; : " Use ; for commands.
|
" Use ; for commands.
|
||||||
"nnoremap Q @q " Use Q to execute default register.
|
nnoremap ; :
|
||||||
|
" Use Q to execute default register.
|
||||||
|
nnoremap Q <Nop>
|
||||||
|
|
||||||
" Plug shortcuts
|
" Plug shortcuts
|
||||||
nnoremap <Leader>pg :PlugUpgrade<CR>
|
nnoremap <Leader>pg :PlugUpgrade<CR>
|
||||||
|
|
Loading…
Reference in a new issue