when you press f9 'paste' is on , press f9 again and 'paste' is off, and so forth (works in insert-mode and command-mode)

2010-08-02 1 min read bash Linux

<a class="zem_slink" title="Vim (text editor)" rel="homepage" href="http://www.vim.org/">vim&#8217;s pastetoggle: when you press f9 &#8217;paste&#8217; is on , press f9 again and &#8217;paste&#8217; is off, and so forth (works in <a class="zem_slink" title="Insert key" rel="wikipedia" href="http://en.wikipedia.org/wiki/Insert_key">insert-mode and command-mode) $ nmap :set paste!:set paste? Sets as paste toggle, with visual confirmation of state

* View this command to comment, vote or add to favourites * View all commands by Vilemirth

commandlinefu.com

by David Winterbottom (codeinthehole.com)

<a class="zem_slink" title="Uniform Resource Locator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/jGHf9FmLuUI/vims-pastetoggle-when-you-press-f9-paste-is-on-press-f9-again-and-paste-is-off-and-so-forth-works-in-insert-mode-and-command-mode">http://feedproxy.google.com/~r/Command-line-fu/~3/jGHf9FmLuUI/vims-pastetoggle-when-you-press-f9-paste-is-on-press-f9-again-and-paste-is-off-and-so-forth-works-in-insert-mode-and-command-mode<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://cloudhead.io/2010/04/24/staying-the-hell-out-of-insert-mode/">Staying the hell out of insert mode (vi) (cloudhead.io) <li class="zemanta-article-ul-li"><a href="http://www.slideshare.net/andreizm/vim-for-php-programmers-pdf">Vim for (PHP) Programmers (slideshare.net) <li class="zemanta-article-ul-li"><a href="http://mostlycli.blogspot.com/2007/09/get-organized-with-vimyes-vim.html">Mostly CLI: Get Organized with VIM….yes, VIM. (mostlycli.blogspot.com) <li class="zemanta-article-ul-li"><a href="https://www.packtpub.com/article/personalizing-vim">Personalize your Vim editor with Vim 7.2 (packtpub.com) <li class="zemanta-article-ul-li"><a href="http://code.google.com/p/conque/">conque – Project Hosting on Google Code (code.google.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_e11.png" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

comments powered by Disqus