sponsor Vim development Vim logo Vim Book Ad

fixed_join.vim : Join lines without jumping around

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

created by
Tom Ryder
 
script type
utility
 
description
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.

https://sanctum.geek.nz/cgit/vim-fixed-join.git
 
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: 142.132.191.50

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github