Minor changes + session options
This commit is contained in:
parent
fa2ec57364
commit
5934af1833
2 changed files with 7 additions and 6 deletions
6
gvimrc
6
gvimrc
|
@ -1,3 +1,6 @@
|
||||||
|
set guioptions-=T
|
||||||
|
set guioptions-=m
|
||||||
|
|
||||||
augroup filecolors
|
augroup filecolors
|
||||||
autocmd!
|
autocmd!
|
||||||
" au BufLeave * :colorscheme slate
|
" au BufLeave * :colorscheme slate
|
||||||
|
@ -11,7 +14,6 @@ function! Randomcolor()
|
||||||
let random = localtime() % len(s:colors)
|
let random = localtime() % len(s:colors)
|
||||||
execute "colorscheme ".s:colors[random]
|
execute "colorscheme ".s:colors[random]
|
||||||
endfunction
|
endfunction
|
||||||
call Randomcolor()
|
|
||||||
|
|
||||||
" Color Stuff
|
" Color Stuff
|
||||||
nnoremap <C-F1> :colorscheme slate<CR>
|
nnoremap <C-F1> :colorscheme slate<CR>
|
||||||
|
@ -28,4 +30,4 @@ nnoremap <C-F9> :colorscheme elflord<CR>
|
||||||
nnoremap <C-F10> :colorscheme murphy<CR>
|
nnoremap <C-F10> :colorscheme murphy<CR>
|
||||||
nnoremap <C-F11> :colorscheme torte<CR>
|
nnoremap <C-F11> :colorscheme torte<CR>
|
||||||
nnoremap <C-F12> :call Randomcolor()<CR>
|
nnoremap <C-F12> :call Randomcolor()<CR>
|
||||||
so $MYVIMRC
|
call Randomcolor()
|
||||||
|
|
7
vimrc
7
vimrc
|
@ -1,5 +1,8 @@
|
||||||
" makes use of marker '
|
" makes use of marker '
|
||||||
|
|
||||||
|
" Sessions
|
||||||
|
set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages
|
||||||
|
|
||||||
" some conditional configs
|
" some conditional configs
|
||||||
if has('mouse')
|
if has('mouse')
|
||||||
set mouse=a
|
set mouse=a
|
||||||
|
@ -22,7 +25,6 @@ set guioptions-=r
|
||||||
set guioptions-=R
|
set guioptions-=R
|
||||||
set guioptions-=l
|
set guioptions-=l
|
||||||
set guioptions-=L
|
set guioptions-=L
|
||||||
colorscheme slate
|
|
||||||
set gfn=Courier_New:h12:cANSI
|
set gfn=Courier_New:h12:cANSI
|
||||||
try
|
try
|
||||||
" set undodir=~/.vim_runtime/temp_dirs/undodir
|
" set undodir=~/.vim_runtime/temp_dirs/undodir
|
||||||
|
@ -279,9 +281,6 @@ au BufNewFile,BufRead *.rb :nnoremap <buffer> <leader>id odef <C-o>m'()<enter>en
|
||||||
au BufNewFile,BufRead *.rb setl expandtab
|
au BufNewFile,BufRead *.rb setl expandtab
|
||||||
au BufNewFile,BufRead *.rb nnoremap <buffer> <F5> :w<CR>:!ruby %<CR>
|
au BufNewFile,BufRead *.rb nnoremap <buffer> <F5> :w<CR>:!ruby %<CR>
|
||||||
au BufNewFile,BufRead *.rb nnoremap <buffer> <F6> :w<CR>:!ruby -wc %<CR>
|
au BufNewFile,BufRead *.rb nnoremap <buffer> <F6> :w<CR>:!ruby -wc %<CR>
|
||||||
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 <buffer> <leader>C :call <SID>RubyComment(0)<CR>
|
au BufNewFile,BufRead *.rb :nnoremap <buffer> <leader>C :call <SID>RubyComment(0)<CR>
|
||||||
au BufNewFile,BufRead *.rb :nnoremap <buffer> <leader>c :call <SID>RubyComment(1)<CR>
|
au BufNewFile,BufRead *.rb :nnoremap <buffer> <leader>c :call <SID>RubyComment(1)<CR>
|
||||||
|
|
Loading…
Reference in a new issue