dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 0dd85594960d50273263d61a1cfcb739b0e62620
parent 9e265e8b2ba7f59ebe21f186c7e1b847c262dd11
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 28 Jan 2015 19:23:14 -0800

Add basic golang support

Diffstat:
M.vim/vimrc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.vim/vimrc b/.vim/vimrc @@ -7,6 +7,7 @@ call vundle#begin() Plugin 'gmarik/Vundle.vim' Plugin 'Lucius' Plugin 'git://github.com/dart-lang/dart-vim-plugin.git' +Plugin 'git://github.com/jnwhiteh/vim-golang.git' Plugin 'fugitive.vim' Plugin 'Blackrush/vim-gocode' Plugin 'git://github.com/scala/scala-dist.git', {'rtp': 'tool-support/src/vim'} @@ -99,7 +100,11 @@ if &t_Co > 2 || has("gui_running") au BufEnter,InsertLeave *.java set colorcolumn=100 " Highlight trailing space - au BufEnter,InsertLeave * SpaceHi + au BufEnter,InsertLeave *.java,*.dart,*.h,*.c,*.cc,*.cs,*.m,*.s SpaceHi + + " Apply gofmt + au FileType go autocmd BufEnter,InsertLeave <buffer> set syntax=go + au FileType go autocmd BufWritePre <buffer> Fmt endif if has("gui_macvim")