nvim: init.vim: Disable ex mode and swap & backup files
This commit is contained in:
parent
f4f9cfe0e6
commit
d2c059bb40
1 changed files with 7 additions and 2 deletions
|
@ -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 splitbelow " Horizontal split below 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
|
||||
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>
|
||||
endif
|
||||
|
||||
"nnoremap ; : " Use ; for commands.
|
||||
"nnoremap Q @q " Use Q to execute default register.
|
||||
" Use ; for commands.
|
||||
nnoremap ; :
|
||||
" Use Q to execute default register.
|
||||
nnoremap Q <Nop>
|
||||
|
||||
" Plug shortcuts
|
||||
nnoremap <Leader>pg :PlugUpgrade<CR>
|
||||
|
|
Loading…
Reference in a new issue