* Fix persistent undo * fixed persistent undo
This commit is contained in:
committed by
Luiz Gonzaga dos Santos Filho
parent
c01919a513
commit
b889e38b1a
4
vimrc
4
vimrc
@@ -29,7 +29,7 @@ syntax on
|
|||||||
|
|
||||||
" Change leader to a comma because the backslash is too far away
|
" Change leader to a comma because the backslash is too far away
|
||||||
" That means all \x commands turn into ,x
|
" That means all \x commands turn into ,x
|
||||||
" The mapleader has to be set before vundle starts loading all
|
" The mapleader has to be set before vundle starts loading all
|
||||||
" the plugins.
|
" the plugins.
|
||||||
let mapleader=","
|
let mapleader=","
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ set nowb
|
|||||||
" ================ Persistent Undo ==================
|
" ================ Persistent Undo ==================
|
||||||
" Keep undo history across sessions, by storing in file.
|
" Keep undo history across sessions, by storing in file.
|
||||||
" Only works all the time.
|
" Only works all the time.
|
||||||
if has('persistent_undo') && !isdirectory(expand('~').'/.vim/backups')
|
if has('persistent_undo') && isdirectory(expand('~').'/.vim/backups')
|
||||||
silent !mkdir ~/.vim/backups > /dev/null 2>&1
|
silent !mkdir ~/.vim/backups > /dev/null 2>&1
|
||||||
set undodir=~/.vim/backups
|
set undodir=~/.vim/backups
|
||||||
set undofile
|
set undofile
|
||||||
|
|||||||
Reference in New Issue
Block a user