summary refs log tree commit diff
path: root/vim/ftplugin/go.vim
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-02-20 08:53:09 -0800
committerFranck Cuny <franck.cuny@gmail.com>2018-02-20 09:28:14 -0800
commita73f28a91f6b573e515877faeffd508448bbb126 (patch)
treeaf6d49fcb72e63e761d2ee7f7708c9dbf8bede39 /vim/ftplugin/go.vim
parent[Emacs] Set different font size for Linux and darwin. (diff)
downloademacs.d-a73f28a91f6b573e515877faeffd508448bbb126.tar.gz
[vim] Add again vim configuration.
Will do another try with vim and a few plugins.
Diffstat (limited to 'vim/ftplugin/go.vim')
-rw-r--r--vim/ftplugin/go.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/vim/ftplugin/go.vim b/vim/ftplugin/go.vim
new file mode 100644
index 0000000..e3c5765
--- /dev/null
+++ b/vim/ftplugin/go.vim
@@ -0,0 +1,21 @@
+" Run goimports when running gofmt
+let g:go_fmt_command = "goimports"
+
+" Show the progress when running :GoCoverage
+let g:go_echo_command_info = 1
+
+" Show type information
+let g:go_auto_type_info = 1
+
+" Highlight variable uses
+let g:go_auto_sameids = 1
+
+" Add the failing test name to the output of :GoTest
+let g:go_test_show_name = 1
+
+" gometalinter configuration
+let g:go_metalinter_command = ""
+let g:go_metalinter_deadline = "5s"
+
+" Set whether the JSON tags should be snakecase or camelcase.
+let g:go_addtags_transform = "snakecase"