Skip to content
Adjust spaces and commas when putting text.
Find file
New pull request
Pull request Compare This branch is 4 commits ahead of vim-scripts:master.
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a mirror of

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.


    Hello World!
Type  dwep  on "Hello"
    World Hello!

    Hello World!
Type  dawbP  on "World"
    World Hello!

Type  dww3p  on "Hello"
    (Hello Hello Hello)

    (Hello, World)
Type  dWep  on "Hello"
    (World, Hello)

Something went wrong with that request. Please try again.