Skip to content

Instantly share code, notes, and snippets.

@Garoth
Created September 28, 2015 23:24
Show Gist options
  • Save Garoth/4a44202d3515705917a1 to your computer and use it in GitHub Desktop.
Save Garoth/4a44202d3515705917a1 to your computer and use it in GitHub Desktop.
" Workspace Setup
" ----------------
function! DefaultWorkspace()
" Rough num columns to decide between laptop and big monitor screens
let numcol = 2
if winwidth(0) >= 220
let numcol = 3
endif
if numcol == 3
e term://zsh
file Shell\ Two
vnew
endif
vsp term://~/Programs/golang/context
file Context
sp term://zsh
file Shell\ One
wincmd k
resize 4
wincmd h
endfunction
command! -register DefaultWorkspace call DefaultWorkspace()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment