aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-27 22:12:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-27 22:12:55 +1200
commit11b7526cd69c4c7e592b955e00be8247e29de77b (patch)
tree258d2431d3bf72ad95bff87654845fe9ba4c7f55 /plugin
parentRefactor majorly for 0.2.0 (diff)
downloadvim-strip-trailing-whitespace-11b7526cd69c4c7e592b955e00be8247e29de77b.tar.gz
vim-strip-trailing-whitespace-11b7526cd69c4c7e592b955e00be8247e29de77b.zip
Remove user command
Diffstat (limited to 'plugin')
-rw-r--r--plugin/strip_trailing_whitespace.vim11
1 files changed, 2 insertions, 9 deletions
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 <tom@sanctum.geek.nz>
" License: Same as Vim itself
@@ -90,10 +90,3 @@ endfunction
noremap <silent> <unique>
\ <Plug>StripTrailingWhitespace
\ :<C-U>call <SID>StripTrailingWhitespace()<CR>
-
-" Define a user command too, if we can
-if has('user_commands')
- command -nargs=0
- \ StripTrailingWhiteSpace
- \ call <SID>StripTrailingWhitespace()
-endif