Skip to content

Instantly share code, notes, and snippets.

@squito
Last active January 2, 2016 18:09
Show Gist options
  • Select an option

  • Save squito/8341456 to your computer and use it in GitHub Desktop.

Select an option

Save squito/8341456 to your computer and use it in GitHub Desktop.
My computer config
--langdef=Scala
--langmap=Scala:.scala
--regex-Scala=/^[ \t]*class[ \t]*([a-zA-Z0-9_]+)/\1/c,classes/
--regex-Scala=/^[ \t]*object[ \t]*([a-zA-Z0-9_]+)/\1/o,objects/
--regex-Scala=/^[ \t]*trait[ \t]*([a-zA-Z0-9_]+)/\1/t,traits/
--regex-Scala=/^[ \t]*case[ \t]*class[ \t]*([a-zA-Z0-9_]+)/\1/r,cclasses/
--regex-Scala=/^[ \t]*abstract[ \t]*class[ \t]*([a-zA-Z0-9_]+)/\1/a,aclasses/
--regex-Scala=/^[ \t]*def[ \t]*([a-zA-Z0-9_=]+)[ \t]*.*[:=]/\1/m,methods/
--regex-Scala=/[ \t]*val[ \t]*([a-zA-Z0-9_]+)[ \t]*[:=]/\1/V,values/
--regex-Scala=/[ \t]*var[ \t]*([a-zA-Z0-9_]+)[ \t]*[:=]/\1/v,variables/
--regex-Scala=/^[ \t]*type[ \t]*([a-zA-Z0-9_]+)[ \t]*[\[<>=]/\1/T,types/
--regex-Scala=/^[ \t]*import[ \t]*([a-zA-Z0-9_{}., \t=>]+$)/\1/i,includes/
--regex-Scala=/^[ \t]*package[ \t]*([a-zA-Z0-9_.]+$)/\1/p,packages/
logfile screenlogs/log.%n
deflog on
defscrollback 10000
screen 1
#other settings
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
vbell off
autodetach on
#Binds
bind s split
bind - resize -3
bind + resize +3
bind t title
bind x remove
bind k kill
bind m lastmsg
#screen count starts at 1
bind c screen 1
bind 0 select 10
escape "``"
set nocompatible " be iMproved
filetype off " required!
set tags=tags;/
command C let @/="" " :C to clear any search highlighting
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'derekwyatt/vim-scala'
Bundle 'kien/ctrlp.vim'
Bundle 'drmingdrmer/xptemplate'
  • create ~/screenlogs
  • install oh_my_zsh
  • get vundle
  • install ctags-exuberant, brew install ctags-exuberant, then ln -s /usr/local/bin/ctag /usr/local/bin/ctags-exuberant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment