mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Update backup settings
This commit is contained in:
parent
29eb7e6ff3
commit
98bb1cc8ac
@ -23,6 +23,13 @@ set clipboard+=unnamedplus
|
|||||||
" Disable creating swapfiles, see https://goo.gl/FA6m6h
|
" Disable creating swapfiles, see https://goo.gl/FA6m6h
|
||||||
set noswapfile
|
set noswapfile
|
||||||
|
|
||||||
|
" Set up backup directory
|
||||||
|
let g:backupdir=expand(stdpath('data') . '/backup')
|
||||||
|
if !isdirectory(g:backupdir)
|
||||||
|
call mkdir(g:backupdir, "p")
|
||||||
|
endif
|
||||||
|
let &backupdir=g:backupdir
|
||||||
|
|
||||||
" General tab settings
|
" General tab settings
|
||||||
set tabstop=4 " number of visual spaces per TAB
|
set tabstop=4 " number of visual spaces per TAB
|
||||||
set softtabstop=4 " number of spaces in tab when editing
|
set softtabstop=4 " number of spaces in tab when editing
|
||||||
@ -61,7 +68,7 @@ set scrolloff=3
|
|||||||
|
|
||||||
" Use mouse to select and resize windows, etc.
|
" Use mouse to select and resize windows, etc.
|
||||||
if has('mouse')
|
if has('mouse')
|
||||||
set mouse=niv " Enable mouse in several mode
|
set mouse=nv " Enable mouse in several mode
|
||||||
set mousemodel=popup " Set the behaviour of mouse
|
set mousemodel=popup " Set the behaviour of mouse
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user