Smartput : Adjust spaces and commas when putting text.
script karma |
Rating 98/26,
Downloaded by 1692 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Andy Wokula |
|
script type |
utility |
|
description |
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.
See also:
:help todo| /Smart cut.paste
There is a wealth of customization options -- the help file has the details.
Examples:
Hello World!
Type dwep on "Hello"
World Hello!
Hello World!
Type dawbP on "World"
World Hello!
Hello
()
Type dww3p on "Hello"
(Hello Hello Hello)
(Hello, World)
Type dWep on "Hello"
(World, Hello)
|
|
install details |
Note: v0.5 works only with single byte encodings!
Extract the archive to a folder of your runtimepath.
Files:
doc\smartput.txt
plugin\smartput.vim
Install the help file:
:h helptags |
|
script versions (upload new version)
Click on the package to download.
smartput_0.6.zip |
0.6 |
2007-12-16 |
7.0 |
Andy Wokula |
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 |
smartput.zip |
0.5 |
2007-12-15 |
7.0 |
Andy Wokula |
Initial upload |
ip used for rating: 142.132.191.50
|