aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--doc/strip_trailing_whitespace.txt11
-rw-r--r--plugin/strip_trailing_whitespace.vim11
3 files changed, 5 insertions, 19 deletions
diff --git a/README.md b/README.md
index 0f7d95c..03cc422 100644
--- a/README.md
+++ b/README.md
@@ -11,13 +11,13 @@ This is a very commonly written and implemented plugin, but I wrote my own
because I could not find a plugin that did this in exactly the way I wanted:
- Provide a `<Plug>` mapping
-- Provide a user command to do the stripping as well if wanted
- Strip trailing lines as well as trailing spaces, reporting both
- Work with even very old Vim (>=6.0)
- Work with a single `undo`
- Don't move the cursor
- Don't change the search pattern
- Don't define an `autocmd`
+- Don't define a user command
- Don't force a key mapping
- Don't define a global function
diff --git a/doc/strip_trailing_whitespace.txt b/doc/strip_trailing_whitespace.txt
index 96635ab..8881a38 100644
--- a/doc/strip_trailing_whitespace.txt
+++ b/doc/strip_trailing_whitespace.txt
@@ -1,4 +1,4 @@
-*strip_trailing_whitespace.txt* For Vim version 6.0 Last change: 2018 June 10
+*strip_trailing_whitespace.txt* For Vim version 6.0 Last change: 2018 June 27
DESCRIPTION *strip_trailing_whitespace*
@@ -12,13 +12,13 @@ This is a very commonly written and implemented plugin, but I wrote my own
because I could not find a plugin that did this in exactly the way I wanted:
- Provide a |<Plug>| mapping
-- Provide a user command to do the stripping as well if wanted
- Strip trailing lines as well as trailing spaces, reporting both
- Work with even very old Vim (>=6.0)
- Work with a single |undo|
- Don't move the cursor
- Don't change the search pattern
- Don't define an |autocmd|
+- Don't define a user command
- Don't force a key mapping
- Don't define a global function
@@ -26,13 +26,6 @@ REQUIREMENTS *strip_trailing_whitespace-requirements*
This plugin is only available if 'compatible' is not set.
-COMMANDS *strip_trailing_whitespace-commands*
-
- *:StripTrailingWhitespace*
-The plugin provides a single `:StripTrailingWhitespace` command if Vim has the
-|+user_commands| feature, but this is not required. It operates on the entire
-buffer, and accepts neither a range nor arguments.
-
MAPPINGS *strip_trailing_whitespace-mappings*
*<Plug>StripTrailingWhitespace*
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