sponsor Vim development Vim logo Vim Book Ad

copytoggle.vim : Vim's pastetoggle for copying

 script karma  Rating 0/0, Downloaded by 1830  Comments, bugs, improvements  Vim wiki

created by
Tim Schumacher
script type
You know the issue if you have listchars or showbreak configured, or use line numbers. Copying code from vim into another application results in a mess because all those formatting characters are included. copytoggle.vim allows you to set a mapping to toggle those features off while copy-pasting:

nmap <F3> <Plug>copytoggle
install details
It is recommended to install this plugin from GitHub https://github.com/timakro/vim-copytoggle using a plugin manager like pathogen.vim vimscript #2332, Vundle.vim vimscript #3458 or vim-plug vimscript #4828.

Alternatively you can just drop the `plugin` and `doc` folders into your `~/.vim` directory. Don't forget to run `:helptags ~/.vim/doc` to generate the help tags after a manual installation.

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-copytoggle.tar.gz 1.2.0 2018-04-21 7.0 Tim Schumacher Support for foldcolumn feature
vim-copytoggle.tar.gz 1.1.0 2018-04-01 7.0 Tim Schumacher Support for conceal feature
vim-copytoggle.tar.gz 1.0.1 2018-02-18 7.0 Tim Schumacher Fix CopytoggleOn, CopytoggleOff
vim-copytoggle.tar.gz 1.0.0 2018-02-18 7.0 Tim Schumacher 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.
Vim at Github