diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | doc/fixed_join.txt | 21 |
2 files changed, 8 insertions, 17 deletions
@@ -1,8 +1,8 @@ fixed\_join.vim =============== -This plugin provides a mapping target and an optional command to `:join` lines -in normal mode while keeping the cursor in-place. +This plugin provides a mapping target to `:join` lines in normal mode while +keeping the cursor in place, and still supporting a count prefix. License ------- diff --git a/doc/fixed_join.txt b/doc/fixed_join.txt index 57c623c..da5c4b4 100644 --- a/doc/fixed_join.txt +++ b/doc/fixed_join.txt @@ -2,8 +2,8 @@ DESCRIPTION *fixed_join* -This plugin provides a mapping target and an optional command to `:join` lines -in normal mode while keeping the cursor in-place. +This plugin provides a mapping target to `:join` lines in normal mode while +keeping the cursor in place and still supporting a count prefix. REQUIREMENTS *fixed_join-requirements* @@ -12,21 +12,12 @@ This plugin is only available if 'compatible' is not set. MAPPINGS *fixed_join-mappings* *<Plug>FixedJoin* -This plugin provides a mapping target |<Plug>FixedJoin| to create a binding -for a user to `:join` lines in normal mode without the cursor jumping around. +A single mapping target |<Plug>FixedJoin| is provided for a user to `:join` +lines in normal mode without the cursor jumping around. If the user's configuration does not specify a mapping to this target by the -time this plugin is loaded, it will attempt to map 'J' in normal mode to -simply replace the default functionality. - -ALTERNATIVE *fixed-join-alternative* - -If you don't mind clobbering a mark, this whole plugin can be replaced with -one mapping in your |vimrc|: -> - :nnoremap J mzJ`z -< -This was what the author was doing before writing this plugin as an exercise. +time this plugin is loaded, it will attempt to remap normal |J| to replace its +default function. AUTHOR *fixed_join-author* |