MacVim copy selection from vim command line shell to MacVim or OS clipboard

Wayne

I run commands from MacVim itself using the ! character to execute the command.

e.g. !go test

The command spews allot of text. I want to select a subset of the text, using my "mouse" and then paste only the selected line back into MacVim or even the MacOS clipboard.

I have searched for answers by nothing apparent seems to be working for me.

Copying from MacVim to the MacOS clipboard is working for me using the mouse selection and then CMD+c with CMD+v.

However when I use the above procedure from the "shell" output this does not work.

I have MacVim version 8.0.1633 (146) and the shell it is using is bash.

When I use "vim" from iTerm itself I am able to copy and paste without problems, the shell I am using then is zsh. Using "Terminal" and bash also works.

Wayne

I found a solution: Copy and paste works when the end of the output is reached.

When the vim "shell" command generates many lines of text as output, a message is displayed that reads: ---More----

After a couple of key presses one sees a message Press ENTER or type command to continue, only once this message is displayed does copy and paste work as it should.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how to copy something from vim editor to shell command line

From Dev

how to copy something from vim editor to shell command line

From Dev

Running vim-ruby-debugger on MacVim in OS X 10.10

From Dev

macvim mapping works when set in command line but not in vimrc

From Dev

macvim mapping works when set in command line but not in vimrc

From Dev

Running cucumber tests in vim or macvim

From Dev

Update OSX Vim using MacVim

From Dev

Managing multiple Vims (vim and MacVim)

From Dev

Running cucumber tests in vim or macvim

From Dev

Chaning MacVim's default shell?

From Dev

Chaning MacVim's default shell?

From Dev

The best way to make MacVim's vim (console, not mvim) the default instead of Mac OS X's vim?

From Dev

Sending commands to the Terminal from MacVim

From Dev

Vim: copy from file to clipboard

From Dev

Copy to clipboard from php command line script in Windows 7

From Dev

How to copy an image to the clipboard from a file using command line?

From Dev

How to copy text from command line to clipboard without using the mouse?

From Dev

Command-line utility to copy file to clipboard from file path

From Dev

How to copy an image to the clipboard from a file using command line?

From Dev

How to copy a picture to clipboard from command line in linux?

From Dev

Is it possible to copy a variable to the Shift+Insert clipboard from the command line?

From Dev

Why is MacVim much faster than Vim in the Terminal?

From Dev

VIM syntax highlighting works in MacVim but not vi in terminal?

From Dev

How to scroll a console command output in MacVim/GVim?

From Dev

Replacing new line characters with literal '\n' in macvim

From Dev

Replacing new line characters with literal '\n' in macvim

From Java

How can I install MacVim on OS X?

From Dev

A command-line clipboard copy and paste utility?

From Dev

A command-line clipboard copy and paste utility?

Related Related

  1. 1

    how to copy something from vim editor to shell command line

  2. 2

    how to copy something from vim editor to shell command line

  3. 3

    Running vim-ruby-debugger on MacVim in OS X 10.10

  4. 4

    macvim mapping works when set in command line but not in vimrc

  5. 5

    macvim mapping works when set in command line but not in vimrc

  6. 6

    Running cucumber tests in vim or macvim

  7. 7

    Update OSX Vim using MacVim

  8. 8

    Managing multiple Vims (vim and MacVim)

  9. 9

    Running cucumber tests in vim or macvim

  10. 10

    Chaning MacVim's default shell?

  11. 11

    Chaning MacVim's default shell?

  12. 12

    The best way to make MacVim's vim (console, not mvim) the default instead of Mac OS X's vim?

  13. 13

    Sending commands to the Terminal from MacVim

  14. 14

    Vim: copy from file to clipboard

  15. 15

    Copy to clipboard from php command line script in Windows 7

  16. 16

    How to copy an image to the clipboard from a file using command line?

  17. 17

    How to copy text from command line to clipboard without using the mouse?

  18. 18

    Command-line utility to copy file to clipboard from file path

  19. 19

    How to copy an image to the clipboard from a file using command line?

  20. 20

    How to copy a picture to clipboard from command line in linux?

  21. 21

    Is it possible to copy a variable to the Shift+Insert clipboard from the command line?

  22. 22

    Why is MacVim much faster than Vim in the Terminal?

  23. 23

    VIM syntax highlighting works in MacVim but not vi in terminal?

  24. 24

    How to scroll a console command output in MacVim/GVim?

  25. 25

    Replacing new line characters with literal '\n' in macvim

  26. 26

    Replacing new line characters with literal '\n' in macvim

  27. 27

    How can I install MacVim on OS X?

  28. 28

    A command-line clipboard copy and paste utility?

  29. 29

    A command-line clipboard copy and paste utility?

HotTag

Archive