dotfiles / .gvimrc

set guioptions-=T       " Toolbar off
set guioptions-=L       " No left hand scrollbars

" Window size - automatically larger for vimdiff!
if &diff
  set columns=170 lines=50

  " So many schemes have forgotten diff highlighting...
  colorscheme xoria256
  set columns=100 lines=50

" Font
set guifont=Inconsolata:h14

if has('mac')

  " Transparency
  set transp=4

  " Use full horizontal width on fullscreen
  " I really wish this could be toggled without entering and leaving fs mode --
  " I like the Writeroom-style central editor column when not using a vsplit
  set fuoptions+=maxhorz
  function! ToggleMaxhorz()
    if &fuoptions =~ 'maxhorz'
      set fuoptions-=maxhorz
      echo 'maxhorz off'
      set fuoptions+=maxhorz
      echo 'maxhorz on'
  map <M-F2> :call ToggleMaxhorz()<CR>

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.