From 5934af1833af3376b448bae3332f7934d83ed4bc Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 24 Oct 2017 11:39:53 +0200 Subject: [PATCH] Minor changes + session options --- gvimrc | 6 ++++-- vimrc | 7 +++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gvimrc b/gvimrc index bf01543..3661c93 100644 --- a/gvimrc +++ b/gvimrc @@ -1,3 +1,6 @@ +set guioptions-=T +set guioptions-=m + augroup filecolors autocmd! " au BufLeave * :colorscheme slate @@ -11,7 +14,6 @@ function! Randomcolor() let random = localtime() % len(s:colors) execute "colorscheme ".s:colors[random] endfunction -call Randomcolor() " Color Stuff nnoremap :colorscheme slate @@ -28,4 +30,4 @@ nnoremap :colorscheme elflord nnoremap :colorscheme murphy nnoremap :colorscheme torte nnoremap :call Randomcolor() -so $MYVIMRC +call Randomcolor() diff --git a/vimrc b/vimrc index 4ef16c5..f2f0eaa 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,8 @@ " makes use of marker ' +" Sessions +set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages + " some conditional configs if has('mouse') set mouse=a @@ -22,7 +25,6 @@ set guioptions-=r set guioptions-=R set guioptions-=l set guioptions-=L -colorscheme slate set gfn=Courier_New:h12:cANSI try " set undodir=~/.vim_runtime/temp_dirs/undodir @@ -279,9 +281,6 @@ au BufNewFile,BufRead *.rb :nnoremap id odef m'()en au BufNewFile,BufRead *.rb setl expandtab au BufNewFile,BufRead *.rb nnoremap :w:!ruby % au BufNewFile,BufRead *.rb nnoremap :w:!ruby -wc % -au BufNewFile,BufRead *.rb setl foldmethod=syntax -au BufNewFile,BufRead *.rb folddoclosed foldopen -au BufNewFile,BufRead *.diff setl foldmethod=diff au BufNewFile,BufRead *.rb :nnoremap C :call RubyComment(0) au BufNewFile,BufRead *.rb :nnoremap c :call RubyComment(1)