From a44211be605c1021114d3d12f2adba8f0f07b7b1 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 27 Apr 2017 16:23:26 -0400 Subject: [PATCH] Add go syntax highlighting --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index aab34a1..fff20a9 100644 --- a/vimrc +++ b/vimrc @@ -62,6 +62,9 @@ Plug 'tpope/vim-fireplace', { 'for': 'clojure' } " Rust Plug 'rust-lang/rust.vim' +" Go +Plug 'fatih/vim-go' + " QML Plug 'peterhoeg/vim-qml' @@ -289,7 +292,7 @@ augroup vimrcEx " Jump to last cursor position unless it's invalid or in an event handler autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif - autocmd FileType ruby,haml,eruby,yaml,html,javascript,rust set ai sw=2 sts=2 et + autocmd FileType ruby,haml,eruby,yaml,html,javascript,rust,go set ai sw=2 sts=2 et autocmd FileType python,qml set sw=4 sts=4 et " Indent p tags