summaryrefslogtreecommitdiffstats
path: root/ftplugin/go/fmt.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-12 17:22:37 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-12 17:22:37 +0200
commit4c2025af5cee3fcd08321c2f23c38e460d3991a9 (patch)
tree70e89149aa9778b5aa4950d456ea3b736e965625 /ftplugin/go/fmt.vim
parent35433aa23c6f7753fe96c67ed2ffdbb5291085a0 (diff)
downloadvim-polyglot-4c2025af5cee3fcd08321c2f23c38e460d3991a9.tar.gz
vim-polyglot-4c2025af5cee3fcd08321c2f23c38e460d3991a9.zip
vim-go -> vim-golang
Diffstat (limited to 'ftplugin/go/fmt.vim')
-rw-r--r--ftplugin/go/fmt.vim16
1 files changed, 1 insertions, 15 deletions
diff --git a/ftplugin/go/fmt.vim b/ftplugin/go/fmt.vim
index 5447d457..30814fdf 100644
--- a/ftplugin/go/fmt.vim
+++ b/ftplugin/go/fmt.vim
@@ -12,25 +12,11 @@
" It tries to preserve cursor position and avoids
" replacing the buffer with stderr output.
"
-" Options:
-"
-" g:go_fmt_commands [default=1]
-"
-" Flag to indicate whether to enable the commands listed above.
-"
if exists("b:did_ftplugin_go_fmt")
finish
endif
-
-if !exists("g:go_fmt_commands")
- let g:go_fmt_commands = 1
-endif
-
-
-if g:go_fmt_commands
- command! -buffer Fmt call s:GoFormat()
-endif
+command! -buffer Fmt call s:GoFormat()
function! s:GoFormat()
let view = winsaveview()