diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-23 16:22:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-23 16:22:59 +1200 |
commit | 882622d0bac48141bd3f975fae0730da585ef67d (patch) | |
tree | beefc1d0158408509e9daeb838fe602dea12e0c7 | |
parent | Adjust map definition code (diff) | |
download | vim-fixed-join-882622d0bac48141bd3f975fae0730da585ef67d.tar.gz vim-fixed-join-882622d0bac48141bd3f975fae0730da585ef67d.zip |
Update documentation to reflect changesv0.3.1
Also remove the part about the alternative implementation, it doesn't
actually do everything this plugin does.
-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* |