commit
e19569cd31
@ -0,0 +1,90 @@ |
|||||||
|
"load pathogen plugins |
||||||
|
call pathogen#infect() |
||||||
|
|
||||||
|
set nocompatible |
||||||
|
set encoding=utf-8 |
||||||
|
set background=dark |
||||||
|
colorscheme dante |
||||||
|
set showcmd |
||||||
|
|
||||||
|
"always show status bar |
||||||
|
set laststatus=2 |
||||||
|
|
||||||
|
"Go specific settings |
||||||
|
set rtp+=$GOROOT/misc/vim |
||||||
|
au BufRead,BufNewFile *.go set list noexpandtab syntax=go listchars=tab:\|\ ,trail:- |
||||||
|
set completeopt-=preview |
||||||
|
|
||||||
|
set number |
||||||
|
syntax enable |
||||||
|
filetype plugin on |
||||||
|
filetype plugin indent on |
||||||
|
|
||||||
|
"enable mouse |
||||||
|
"set mouse=a |
||||||
|
|
||||||
|
"indent and tab |
||||||
|
set nowrap |
||||||
|
set expandtab |
||||||
|
set tabstop=4 shiftwidth=4 |
||||||
|
set backspace=indent,eol,start |
||||||
|
|
||||||
|
"search |
||||||
|
set hlsearch |
||||||
|
set incsearch |
||||||
|
set ignorecase |
||||||
|
set smartcase |
||||||
|
|
||||||
|
"wildmenu config |
||||||
|
set wildmenu |
||||||
|
set wildmode=longest:full,full |
||||||
|
|
||||||
|
"turn paste mode on and off with F3 |
||||||
|
set pastetoggle=<F3> |
||||||
|
|
||||||
|
"configure tagbar |
||||||
|
nmap <F8> :TagbarToggle<CR> |
||||||
|
|
||||||
|
let g:tagbar_type_scala = { |
||||||
|
\ 'ctagstype' : 'Scala', |
||||||
|
\ 'kinds' : [ |
||||||
|
\ 'p:packages:1', |
||||||
|
\ 'V:values', |
||||||
|
\ 'v:variables', |
||||||
|
\ 'T:types', |
||||||
|
\ 't:traits', |
||||||
|
\ 'o:objects', |
||||||
|
\ 'a:aclasses', |
||||||
|
\ 'c:classes', |
||||||
|
\ 'r:cclasses', |
||||||
|
\ 'm:methods' |
||||||
|
\ ] |
||||||
|
\ } |
||||||
|
|
||||||
|
let g:tagbar_type_go = { |
||||||
|
\ 'ctagstype' : 'go', |
||||||
|
\ 'kinds' : [ |
||||||
|
\ 'p:package', |
||||||
|
\ 'i:imports:1', |
||||||
|
\ 'c:constants', |
||||||
|
\ 'v:variables', |
||||||
|
\ 't:types', |
||||||
|
\ 'n:interfaces', |
||||||
|
\ 'w:fields', |
||||||
|
\ 'e:embedded', |
||||||
|
\ 'm:methods', |
||||||
|
\ 'r:constructor', |
||||||
|
\ 'f:functions' |
||||||
|
\ ], |
||||||
|
\ 'sro' : '.', |
||||||
|
\ 'kind2scope' : { |
||||||
|
\ 't' : 'ctype', |
||||||
|
\ 'n' : 'ntype' |
||||||
|
\ }, |
||||||
|
\ 'scope2kind' : { |
||||||
|
\ 'ctype' : 't', |
||||||
|
\ 'ntype' : 'n' |
||||||
|
\ }, |
||||||
|
\ 'ctagsbin' : 'gotags', |
||||||
|
\ 'ctagsargs' : '-sort -silent' |
||||||
|
\ } |
@ -0,0 +1,51 @@ |
|||||||
|
# Path to your oh-my-zsh configuration. |
||||||
|
ZSH=$HOME/.oh-my-zsh |
||||||
|
|
||||||
|
# Set name of the theme to load. |
||||||
|
# Look in ~/.oh-my-zsh/themes/ |
||||||
|
#ZSH_THEME="robbyrussell" |
||||||
|
|
||||||
|
# Comment this out to disable weekly auto-update checks |
||||||
|
# DISABLE_AUTO_UPDATE="true" |
||||||
|
|
||||||
|
# Plugins to load |
||||||
|
plugins=(git go knife osx zsh-syntax-highlighting) |
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh |
||||||
|
|
||||||
|
# turn off mostly unhelpful autocorrect |
||||||
|
unsetopt correct_all |
||||||
|
|
||||||
|
# Fix Home and End keys |
||||||
|
bindkey "^[[H" beginning-of-line |
||||||
|
bindkey "^[[F" end-of-line |
||||||
|
|
||||||
|
autoload -Uz vcs_info |
||||||
|
zstyle ':vcs_info:*' enable git svn |
||||||
|
zstyle ':vcs_info:git*' formats " ± (%b)" |
||||||
|
zstyle ':vcs_info:svn*' formats " %s (%b)" |
||||||
|
|
||||||
|
precmd() { |
||||||
|
vcs_info |
||||||
|
} |
||||||
|
|
||||||
|
setopt PROMPT_SUBST |
||||||
|
|
||||||
|
PROMPT=' |
||||||
|
%F{red}%n@%m%F{red} %F{green}%/%F{yellow}${vcs_info_msg_0_}%f |
||||||
|
> ' |
||||||
|
|
||||||
|
export EDITOR=vim |
||||||
|
|
||||||
|
alias ls='ls -G' |
||||||
|
alias ll='ls -l' |
||||||
|
alias la='ls -a' |
||||||
|
|
||||||
|
bindkey '^R' history-incremental-search-backward |
||||||
|
|
||||||
|
# setup paths for Go and Goat |
||||||
|
export GOAT_ACTUALGO=/usr/local/go/bin/go |
||||||
|
export GOPATH=$HOME/Projects/go |
||||||
|
|
||||||
|
# add Go bin and brew's bin to path |
||||||
|
export PATH=$GOPATH/bin:$(brew --prefix)/bin:$PATH |
Loading…
Reference in new issue