From 67c7d4e9838ffd6ba6c5158cab8e359107dd8e1f Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sun, 8 Sep 2013 13:32:13 +0300 Subject: [PATCH] vim: omnic in supertab, go autofmt * supertab: contextual decision on omnicomplete/autocomplete * run golang plugin :Fmt command before save on go files --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index 7f53f29..68f07b8 100644 --- a/.vimrc +++ b/.vimrc @@ -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 Fmt + "match NearColLimit /\%<121v.\%>117v/ "match OverColLimit /.\%>120v/ "match ExtraWhitespace /\s\+\%#\@