vim

vim config files
git clone https://git.bracken.jp/vim.git
Log | Files | Refs | LICENSE

commit 8e16ce376bf7f9a868b8764ce83ad4f0ecf342af
parent 55bf09970987f5446f0525d1c6305b6c64d55efe
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 28 Jan 2015 19:23:14 -0800

Add basic golang support

Diffstat:
Mvimrc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/vimrc b/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")