sponsor Vim development Vim logo Vim Book Ad

fixed_join.vim : Join lines without jumping around

 script karma  Rating -1/5, Downloaded by 316  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
script type
This plugin provides a mapping target and an optional command to :join lines in normal mode while keeping the cursor in-place, and still supporting a count prefix.

install details
Drop plugin/fixed_join.vim in your ~/.vim/plugin directory. Add doc/fixed_join.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.

To remap normal J to use this instead of its default function, you could put this in your vimrc:

    nmap J <Plug>FixedJoin

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-fixed-join-0.5.0.tar.gz 0.5.0 2018-06-28 6.0 Tom Ryder Restore "restore cursor position" code
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
OSDN.net Logo