aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-02-13 01:17:42 +0100
committerTeddy Wing2020-02-26 00:55:21 +0100
commit556b2e099ac0e4d0cda45488a082568cd7abeae1 (patch)
treed829bde0e6fb291ed88be933a3c71dd356a733e2
parent0a6a5ddd4845e138f60917792ca1e921cd6c851f (diff)
downloaddotvim-556b2e099ac0e4d0cda45488a082568cd7abeae1.tar.bz2
ftplugin/go.vim: Enable the vim-go ftplugin
Enable extra mappings, text objects, etc. provided by vim-go. Wanted function scoped motions and text objects, and this was the easy way to get them.
-rw-r--r--ftplugin/go.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/ftplugin/go.vim b/ftplugin/go.vim
index 7117c5a..7f85703 100644
--- a/ftplugin/go.vim
+++ b/ftplugin/go.vim
@@ -1,5 +1,10 @@
" Go vim settings
+if exists('b:did_ftplugin')
+ unlet b:did_ftplugin
+endif
+
+
compiler go