Permalink
Browse files

Set viminfo options and ignore the output file

  • Loading branch information...
1 parent ce18468 commit a12a6096d837a44f431a911478ce4537f3d0b7ca @suweller committed Jul 23, 2012
Showing with 26 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 vim/config/colors.vim
  3. +23 −0 vim/config/remember.vim
View
@@ -1,4 +1,5 @@
vim/.netrwhist
+vim/.viminfo
vim/bundle
vim/tmp
oh-my-zsh
View
@@ -1,4 +1,5 @@
-hi Pmenu ctermbg=90
+hi Pmenu ctermbg=233 ctermfg=255
+hi PmenuSel ctermbg=53 ctermfg=255
hi ColorColumn ctermbg=233 ctermfg=255
hi LineNr ctermfg=233 ctermbg=0
hi StatusLine ctermbg=255 ctermfg=234
View
@@ -0,0 +1,23 @@
+"-- Files & Directories ---------------------------------------------------
+" Remember things when we exit
+" +-> marks for up to # previously edited files
+" | +-> Global marks
+" | | +-> Save up to # lines for each register
+" | | | +-> # lines of command-line history
+" | | | | +-> # lines to save from the input line history
+" | | | | | +-> # lines to save from the search history
+" | | | | | | +-> Disable 'hlsearch' highlights on start
+" | | | | | | | +-> Where to save the viminfo files
+set viminfo='10,f1,<100,:20,@20,/20,h,n~/.vim/.viminfo
+
+function! RestoreCursorPosition()
+ if line("'\"") <= line("$")
+ normal! g`"
+ return 1
+ endif
+endfunction
+
+augroup restoreCursorPosition
+ autocmd!
+ autocmd BufWinEnter * call RestoreCursorPosition()
+augroup END

0 comments on commit a12a609

Please sign in to comment.