diff --git a/runtime/ftplugin/go.vim b/runtime/ftplugin/go.vim index e3f947c091..d174fd7182 100644 --- a/runtime/ftplugin/go.vim +++ b/runtime/ftplugin/go.vim @@ -56,10 +56,10 @@ if !exists("no_plugin_maps") && !exists("no_go_maps") noremap [[ call GoFindSection('prev_start', v:count1) noremap [] call GoFindSection('prev_end', v:count1) let b:undo_ftplugin .= '' - \ . '| unmap ]]' - \ . '| unmap ][' - \ . '| unmap [[' - \ . '| unmap []' + \ . "| silent! exe 'unmap ]]'" + \ . "| silent! exe 'unmap ]['" + \ . "| silent! exe 'unmap [['" + \ . "| silent! exe 'unmap []'" endif function! GoFindSection(dir, count)