From 11b7526cd69c4c7e592b955e00be8247e29de77b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 27 Jun 2018 22:12:55 +1200 Subject: Remove user command --- plugin/strip_trailing_whitespace.vim | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'plugin') diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim index 7055d26..9edcaf4 100644 --- a/plugin/strip_trailing_whitespace.vim +++ b/plugin/strip_trailing_whitespace.vim @@ -1,6 +1,6 @@ " -" strip_trailing_whitespace.vim: User-defined key mapping and optional command -" to strip trailing whitespace in the whole document. +" strip_trailing_whitespace.vim: User-defined key mapping to strip trailing +" whitespace in the whole document. " " Author: Tom Ryder " License: Same as Vim itself @@ -90,10 +90,3 @@ endfunction noremap \ StripTrailingWhitespace \ :call StripTrailingWhitespace() - -" Define a user command too, if we can -if has('user_commands') - command -nargs=0 - \ StripTrailingWhiteSpace - \ call StripTrailingWhitespace() -endif -- cgit v1.2.3