vim: omnic in supertab, go autofmt

* supertab: contextual decision on omnicomplete/autocomplete
* run golang plugin :Fmt command before save on go files
This commit is contained in:
2013-09-08 13:32:13 +03:00
parent 4a7a077ca5
commit 67c7d4e983
+5
View File
@@ -113,7 +113,10 @@ Bundle 'vim-scripts/mru.vim'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'vim-scripts/rubycomplete.vim'
Bundle 'ervandew/supertab'
let g:SuperTabDefaultCompletionType = "context"
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-fugitive'
Bundle 'vim-ruby/vim-ruby'
@@ -236,6 +239,8 @@ command Q q
command Qa qa
command QA qa
autocmd FileType go autocmd BufWritePre <buffer> Fmt
"match NearColLimit /\%<121v.\%>117v/
"match OverColLimit /.\%>120v/
"match ExtraWhitespace /\s\+\%#\@<!$/