From 4c2025af5cee3fcd08321c2f23c38e460d3991a9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2013 17:22:37 +0200 Subject: vim-go -> vim-golang --- ftplugin/go/fmt.vim | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'ftplugin/go/fmt.vim') 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() -- cgit v1.2.3