From 91c83b92cd6c051b732f03e06955b7e2af9bef9e Mon Sep 17 00:00:00 2001 From: Dan Church Date: Wed, 1 Nov 2023 13:19:16 -0500 Subject: [PATCH] Change default keymap add behavior to respect no_plugin_maps This is what the system ftplugin scripts that ship with Vim test for before installing their own keymaps. --- plugin/rubocop.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/rubocop.vim b/plugin/rubocop.vim index 2d98d4e..bc22067 100644 --- a/plugin/rubocop.vim +++ b/plugin/rubocop.vim @@ -29,7 +29,7 @@ if !exists('g:vimrubocop_extra_args') endif if !exists('g:vimrubocop_keymap') - let g:vimrubocop_keymap = 1 + let g:vimrubocop_keymap = !exists('no_plugin_maps') endif let s:rubocop_switches = ['-l', '--lint', '-R', '--rails', '-a', '--auto-correct']