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
else
  set columns=100 lines=50
end

" 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'
    else
      set fuoptions+=maxhorz
      echo 'maxhorz on'
    endif
  endfunction
  map <M-F2> :call ToggleMaxhorz()<CR>

endif
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 ProjectModifiedEvent.java.
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.