Tinou /.gvimrc

"set guioptions=agirLtm
" m for menu bar
set guioptions=agirLtm
"set guioptions=agirLtT
map   :if &guioptions =~# 'm' 
                         \set guioptions-=m 
                    \else 
                         \set guioptions+=m 
                      \endif

" set guifont=Monospace\ 11
"set guifont=ProggyCleanTT\ 12
"set guifont=Monospace\ 8
set guifontwide=Terminal\ 8
"set guifont=ProggyTinyTT\ 12
"set guifont=ProggyCleanCZ\ 12
"set guifont=Dingbats\ 8
menu Plugin.Alternate:A :A
menu Plugin.Alternate\ vsplit:AV :AV
amenu ToolBar.Bufferlist \be

" tooltip on tabs ? (where did my tabs go ?)
function! InfoGuiTooltip()"{{{
  "get window count
  let wincount = tabpagewinnr(tabpagenr(),'$')
  let bufferlist=''
  "get name of active buffers in windows
  for i in tabpagebuflist()
    let bufferlist .= '['.fnamemodify(bufname(i),':t'.'] '
  endfor
  return bufname($).' windows: '.wincount.' '.bufferlist.' '
endfunction"}}}
set guitabtooltip=%!InfoGuiTooltip()

" balloons !
function! FoldSpellBalloon()"{{{
  let foldStart = foldclosed(v:beval_lnum)
  let foldEnd = foldclosedend(v:beval_lnum)
  let lines = []
  " Detect if we are in a fold
  if foldStart < 0
    " Detect if we are on a misspelled word
    let lines = spellsuggest(spellbadword(v:beval_text)[ 0 ], 5, 0)
  else
    " we are in a fold
    let numLines = foldEnd - foldStart + 1
    " if we have too many lines in fold, show only the first 14
    " and the last 14 lines
    if ( numLines > 31 )
      let lines = getline( foldStart, foldStart + 14 )
      let lines += [ '-- Snipped ' . (numLines - 30 ) . ' lines --' ]
      let lines += getline( foldEnd - 14, foldEnd)
    else
      "less than 30 lines, lets show all of them
      let lines = getline( foldStart, foldEnd)
    endif
  endif
  " return result
  return join (lines, has("balloon_multiline" ) ? "\n" : " ")
endfunction"}}}
set balloonexpr=FoldSpellBalloon()
set ballooneval

"color inkpot
"colorscheme jammy
"colorscheme rdark
"let rdark_current_line=1
"colorscheme camo
"colorscheme silent
colorscheme rootwater