Skip to content
Browse files

Backup and swap files in a dedicated directory.

  • Loading branch information...
1 parent aba1e82 commit 57b15fcfe34d32107f7411e5270c78f520da2724 @loicfrering committed
Showing with 8 additions and 0 deletions.
  1. +2 −0 .vim/backup/.gitignore
  2. +2 −0 .vim/temp/.gitignore
  3. +4 −0 .vimrc
View
2 .vim/backup/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
View
2 .vim/temp/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
View
4 .vimrc
@@ -11,6 +11,10 @@ filetype plugin indent on
" Set encoding
set encoding=utf-8
+" Backup and swap files
+set backupdir=~/.vim/backup//
+set directory=~/.vim/temp//
+
" Searching
set hlsearch
set incsearch

0 comments on commit 57b15fc

Please sign in to comment.
Something went wrong with that request. Please try again.