edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Paste Clipboard is not available in Console mode #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes for a quick edits, I use MacVim from the terminal in console mode. 
I've noticed that 
star register is not available in this mode, even though all the functionality 
for it to work is there. 
I wonder why not make it available in any mode? 

Patch:

diff --git a/src/main.c b/src/main.c
index 814d532..41cf21c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -721,6 +721,10 @@ main
     qnx_clip_init();
 #endif

+#if defined(FEAT_GUI_MACVIM) && defined(FEAT_CLIPBOARD)
+    clip_init(TRUE);
+#endif
+
 #ifdef FEAT_XCLIPBOARD
     /* Start using the X clipboard, unless the GUI was started. */
 # ifdef FEAT_GUI

Original issue reported on code.google.com by ksr...@gmail.com on 7 Dec 2008 at 8:06

GoogleCodeExporter commented 9 years ago
Thanks for the patch!  A lot of people have requested access to the star 
register in console but I did not know 
how to add it -- turns out it was a one-line fix...excellent. :)

I will merge the patch soon.

Original comment by bjorn.winckler@gmail.com on 7 Dec 2008 at 8:56

GoogleCodeExporter commented 9 years ago
This is really good news. It is one of the most missed features of terminal vim.

Original comment by veritas....@gmail.com on 10 Dec 2008 at 2:41

GoogleCodeExporter commented 9 years ago
ksruby: can you email me (to my gmail account) your full name (and email 
address) so that I can add it to the 
commit when I merge your patch (I believe I already have your name+email from a 
post to vim_mac, but it would 
be good with a confirmation).  thanks!

Original comment by bjorn.winckler@gmail.com on 10 Dec 2008 at 9:53

GoogleCodeExporter commented 9 years ago
Does this depend on MacVim, or does this patch also work for stock vim? In the 
latter case, this patch should be 
sent to Bram for inclusion in mainline vim.

Original comment by nicotha...@gmail.com on 12 Dec 2008 at 6:16

GoogleCodeExporter commented 9 years ago
Says Kent on vim_mac:

"I think this patch is MacVim specific. When vim is invoked in non-GUI
mode, the clipboard is disabled by default. And all the patch does, it
re-enables the clipboard by calling clip_init(TRUE) if FEAT_GUI_MACVIM
feature is presented. I noticed that vim does the same thing, for
example, in os_unix.c when it detects that xterm is available."

This can be closed.

Original comment by nicotha...@gmail.com on 3 Jan 2009 at 6:07

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 3 Jan 2009 at 11:57