sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

(x)emacs mouse drag-copy : (x)emacs style quick copy and paste

 script karma  Rating 16/9, Downloaded by 974    Comments, bugs, improvements  Vim wiki

created by
Carl Mueller
script type
In xemacs and emacs if it is enabled, there is a very handy way to copy and paste  without repositioning the cursor.  You press the control key, drag the mouse over some text, and when you release the mouse button the text will be inserted in the original position.  There is no need to move the position of the cursor.  Doing the same while pressing the shift key instead of the control key will move text instead of copying.  This script does these things in vim, for insert mode.
install details
Add to your .vimrc file.

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
xemacs-mouse-drag-copy.vim 1.2 2008-03-06 7.0 Carl Mueller Fixed a problem caused by tabs.
xemacs-mouse-drag-copy.vim 1.1 2007-11-15 6.0 Carl Mueller Included shift-left-mouse-drag to move text.
xemacs-mouse-drag-copy.vim 1.0 2007-11-07 6.0 Carl Mueller Initial upload
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.
SourceForge.net Logo