sponsor Vim development Vim logo Vim Book Ad

putcmd.vim : Insert command and its result

 script karma  Rating 4/7, Downloaded by 1234  Comments, bugs, improvements  Vim wiki

created by
Tian Huixiong
 
script type
utility
 
description
         When you execute a command, its result is showing in the command line.
         Sometimes you want to yank it, but unfortunately you can not edit the result in the command line.

         Putcmd can help you.
         It inserts the command and its result after the current line, so you can edit them easily.

Tutorial
         :Putcmd command

         :Putcmd set
         :Putcmd colo
         :Putcmd set guifont?
         :Putcmd set tabstop?
 
install details
         Put this file in ~/.vim/plugin on *nix
         Or put it in $vim/vimfiles/plugin on Windows
 

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
putcmd.vim 1.3 2011-09-14 7.0 Tian Huixiong Bug fixed: When the command's output is text of multiple lines. New lines are printed as ^@, what we want is a really new line, not this.
putcmd.vim 1.2 2011-09-07 7.0 Tian Huixiong Update description.
putcmd.vim 1.1 2011-09-07 7.0 Tian Huixiong By put the command and its result after the current line, then you can edit them easily.
putcmd.vim 1.1 2011-09-07 7.0 Tian Huixiong Put the command and its result after the current line.
putcmd.vim 1.0 2011-09-06 7.0 Tian Huixiong Initial upload
ip used for rating: 3.138.105.124

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