1
0
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:
jdhao 2019-11-16 16:16:01 +08:00 committed by GitHub
parent 29eb7e6ff3
commit 98bb1cc8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,13 @@ set clipboard+=unnamedplus
" Disable creating swapfiles, see https://goo.gl/FA6m6h
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
set tabstop=4 " number of visual spaces per TAB
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.
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
endif