From 942c02712db05e89533123265d3d7a472a30fbf4 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 26 Feb 2010 15:44:03 +0100 Subject: mv viminfo file to .cache/vim/ --- .config/vim/vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 8c11680..a9488d5 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -1,4 +1,4 @@ -set dir=~/.cache/vim/swp/ + colorscheme tango set background=light @@ -51,7 +51,7 @@ set ww=<,>,[,] " whichwrap -- left/right keys can traverse up/down syntax on " enable syntax highlighting " set templatepath .vim/plugin/templates.vim -let g:templatePath = "/home/ben/.vim/templates" +let g:templatePath = "~/.config/vim/templates" " highlight redundant whitespaces and tabs. "highlight RedundantSpaces ctermbg=red guibg=red @@ -92,3 +92,7 @@ au BufRead,BufNewFile /tmp/bash-* let is_bash=1|setfiletype sh " disable line numbers when using vim as manpager autocmd FileType man set nonumber nohlsearch nohlsearch +" its important that viminfo is set at the end +" some options seem to overwrite this (history..) +set viminfo+=n$HOME/.cache/vim/viminfo +set dir=~/.cache/vim/swp/ -- cgit