aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 8614fd5..7807541 100644
--- a/vimrc
+++ b/vimrc
@@ -90,6 +90,10 @@
" * Add autocmd to set .json files to use JavaScript syntax highlighting
" and have a json filetype
"
+" 2014.04.30:
+" * Set backupdir, directory, and undodir to be within ~/.vim so that my
+" filesystem doesn't clutter with *.swp files and the like
+"
" Pathogen
@@ -138,6 +142,12 @@ set grepprg=ack " Use ack instead of grep
set ignorecase " Case insensitive
set smartcase " Case insensitive unless an uppercase character is entered
+" Store swap files in .vim/ directory
+" http://stackoverflow.com/a/15317146
+set backupdir=~/.vim/backup/backup//
+set directory=~/.vim/backup/swap//
+set undodir=~/.vim/backup/undo//
+
set laststatus=2 " Always show the status line
" Statusline