Smartput : Adjust spaces and commas when putting text.
| script karma
Downloaded by 897
Comments, bugs, improvements
script versions (upload new version)
|Smartput tries to reduce the need of fine-tuning spaces after a put. Under certain conditions, it also moves a comma to the other side of the register before putting.
The following keys are remapped: p, P, gp and gP.
Press <Leader>st to toggle Smartput on and off.
:help todo| /Smart cut.paste
There is a wealth of customization options -- the help file has the details.
Type dwep on "Hello"
Type dawbP on "World"
Type dww3p on "Hello"
(Hello Hello Hello)
Type dWep on "Hello"
|Note: v0.5 works only with single byte encodings!
Extract the archive to a folder of your runtimepath.
Install the help file:
Click on the package to download.
ip used for rating: 18.104.22.168
||Added: now supposed to work with UTF-8
Changed: g:smartput_comma string of CharTypes (not a pattern)
Fixed: hasmapto() bug, user mapping didn't disable <Leader>st