53d154da65a9

vim: backup directories and more
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 20 Sep 2010 19:00:19 -0400
parents 0ad4a6fc16d9
children 9b84b45eec79
branches/tags (none)
files .hgignore vim/.gvimrc vim/.vimrc vim/bundle/makegreen/plugin/makegreen.vim vim/tmp/backup/.placeholder vim/tmp/swap/.placeholder

Changes

--- a/.hgignore	Sat Sep 18 11:51:06 2010 -0400
+++ b/.hgignore	Mon Sep 20 19:00:19 2010 -0400
@@ -8,3 +8,4 @@
 tags
 config/bcvi
 *.un~
+vim/tmp
--- a/vim/.gvimrc	Sat Sep 18 11:51:06 2010 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-set guifont=Menlo:h12
-colorscheme molokai
-set background=dark
-
-set go-=T
-set go-=l
-set go-=L
-set go-=r
-set go-=R
-
-if has("gui_macvim")
-    macmenu &File.New\ Tab key=<nop>
-    map <leader>t <Plug>PeepOpen
-end
-
-let g:sparkupExecuteMapping = '<D-e>'
-
-highlight SpellBad term=underline gui=undercurl guisp=Orange
-
--- a/vim/.vimrc	Sat Sep 18 11:51:06 2010 -0400
+++ b/vim/.vimrc	Mon Sep 20 19:00:19 2010 -0400
@@ -31,9 +31,9 @@
 set undofile
 
 " Backups
-set backupdir=~/tmp,/tmp " backups (~)
-set directory=~/tmp,/tmp " swap files
-set backup               " enable backups
+set backupdir=~/.vim/tmp/backup// " backups
+set directory=~/.vim/tmp/swap//   " swap files
+set backup                        " enable backups
 
 " Leader
 let mapleader = ","
@@ -232,3 +232,24 @@
 
 " Stop it, hash key
 inoremap # X<BS>#
+
+if has('gui_running')
+    set guifont=Menlo:h12
+    colorscheme molokai
+    set background=dark
+
+    set go-=T
+    set go-=l
+    set go-=L
+    set go-=r
+    set go-=R
+
+    if has("gui_macvim")
+        macmenu &File.New\ Tab key=<nop>
+        map <leader>t <Plug>PeepOpen
+    end
+
+    let g:sparkupExecuteMapping = '<D-e>'
+
+    highlight SpellBad term=underline gui=undercurl guisp=Orange
+endif
--- a/vim/bundle/makegreen/plugin/makegreen.vim	Sat Sep 18 11:51:06 2010 -0400
+++ b/vim/bundle/makegreen/plugin/makegreen.vim	Mon Sep 20 19:00:19 2010 -0400
@@ -70,7 +70,7 @@
 noremap <SID>Make :call <SID>RunMake()<CR>
 
 if !hasmapto('<Plug>MakeGreen')
-  map <unique> <silent> <Leader>t <Plug>MakeGreen
+  map <unique> <silent> <Leader>test <Plug>MakeGreen
 endif
 " }}}1