Skip to main content
54 events
when toggle format what by license comment
Feb 12 at 1:38 comment added Nathan majicvr.com @Shahbaz Oh thanks, you can use it to fix typos in macros, so clever. I've just been using it to juggle a few more copy and pastes at once. Very handy, thanks. :reg lets you see all the macros, also
May 19, 2023 at 17:05 comment added Nathan majicvr.com Marvelously thorough. Would upvote ten times if I could
Apr 8, 2022 at 17:25 comment added questionto42 @LuísdeSousa right, on Ubuntu, I also do not have any +clipboard in the normal vi: echo has('clipboard') = 0 which is said in the answer: sudo apt vim-gtk3 and a restart. Then you will have echo has('clipboard') = 1.
S Oct 14, 2020 at 15:18 history suggested DZet CC BY-SA 4.0
vim-gtk and vim-gnome are both labeled as outdated in favour of vim-gtk3
Oct 14, 2020 at 14:17 review Suggested edits
S Oct 14, 2020 at 15:18
Jan 8, 2020 at 15:12 comment added Luís de Sousa The instructions here for X11 only function if vim is compiled with the +clipboard option, which is many distros (e.g. Debian) is not the case.
Jan 2, 2020 at 21:34 comment added 71GA Copy & paste as described in the question is meant for desktop. It is true that installing package gvim alongside vim gives you clipboard functionalities. but in file browsers you are then offered two text editors to open files! And this looks ugly. This is why it is better to install only packages vim and vim-gui-common. Later one provides the clipboard functionalities without the need for installing gvim. This is on Linux Debian 10.
Oct 9, 2019 at 3:46 comment added dansch Better mnemonic: + ( like a cross ) is how it crosses into your operating system
S Oct 2, 2019 at 18:41 history suggested Schlueter CC BY-SA 4.0
add missing "'s"; expand on detection method
Sep 30, 2019 at 21:29 review Suggested edits
S Oct 2, 2019 at 18:41
Apr 21, 2019 at 1:17 comment added pixelearth since the standard MacOS vim doesn't support + / * registers you can alias your vim to MacVim's vim bin here (has same support as the gui) /Applications/MacVim.app/Contents/bin/vim
Apr 9, 2019 at 8:58 comment added buzaku How could I enable copy paste functionality from a Neovim code editor to a python interpreter sheet opened in a split window (I am using Byobu)? I am using Neovim as my code editor on the web-browser based SSH shell on Google Compute Engine
Oct 18, 2018 at 9:18 comment added elquimista @hildred for me (on macOS Mojave), I had to use -XY, -Y alone was not enough.
Sep 3, 2018 at 0:31 review Suggested edits
Sep 3, 2018 at 0:53
Jul 26, 2018 at 20:12 comment added Martin Tournoij I'm not entirely sure if I follow what you're trying to do @blamb, or what exactly isn't working. I assumed you're already using the mouse by the way you phrased the question, but clearly I misunderstood that. I blame the Elvis juice ;-) I think it might be best if you post a new question which goes in to a bit more detail.
Jul 26, 2018 at 19:44 comment added blamb if you think that will work as an alternative thats one thing, but i was trying to copy text, without mouse, but using visual block, then press a key on my keyboard (a key + being easier to debug key combos, e.g. "*yy) then i should be able to paste using normal means into another application. Im open for anything, as long as i can get one panes worth of data into the clipboard (using gnu screen to make matters more difficult)
Jul 26, 2018 at 19:01 comment added Martin Tournoij I think you're looking for the mouse setting @blamb? Try :set mouse=a. Also see :help 'mouse' and :help mouse-using.
Jul 26, 2018 at 18:50 comment added blamb as thorough as this looks, i cant figure out how to copy from vim, on a split screen (horizontal) so i can only copy from one screen, using visual block. I tried adding the noremaps and the set clipboard=unpamedplus but cant figure out how to use it. am i supposed to use visual block, press the + key? Can you elaborate on how to use this?
Jun 21, 2018 at 11:39 history edited Martin Tournoij CC BY-SA 4.0
added 9 characters in body
Dec 27, 2017 at 21:57 history edited Martin Tournoij CC BY-SA 3.0
Looks like help tag was changed
Apr 30, 2017 at 23:19 history edited Martin Tournoij CC BY-SA 3.0
added 199 characters in body
Apr 13, 2017 at 12:51 history edited CommunityBot
replaced http://vi.stackexchange.com/ with https://vi.stackexchange.com/
Feb 26, 2017 at 21:03 comment added Shahbaz @evilsoup, good to know! I usually use y, u, i, o, p (for no reason), but thought to use more meaningful letters for the sake of the comment. Clearly not a good choice.
Feb 26, 2017 at 10:17 comment added evilsoup @shahbaz -- probably better to use the letter registers for such a purpose, since the numbered ones get changed whenever text is deleted.
Feb 5, 2017 at 17:16 comment added BallpointBen Just a note: OS X has two separate clipboards. One is accessed using Cmd-C and Cmd-V and the other using the emacs keybindings Ctrl-K and Ctrl-Y.
Feb 3, 2017 at 18:06 comment added Shahbaz A very interesting side effect of learning this (a few years ago) for me has been the realization that " can select many named registers. "+ is not magic, it's just register +. So for example, if you want to copy three things at the same time and paste each of them one by one, you can "1y, "2y and "3y and later "1p, "2p and "3p. This is really powerful and non-existent in almost any other editor. Another interesting usage is to look at stored macros. For example, if you record with qq, but you realize you need to fix it, you can: in a temp line "qp, fix it, and "qd.
Jan 5, 2017 at 20:46 history edited Martin Tournoij CC BY-SA 3.0
Reverse order of sections so that "above tip" makes sense.
Mar 15, 2016 at 10:56 history edited muru CC BY-SA 3.0
why didn't I see that before? O.o
S Mar 15, 2016 at 10:12 history edited Martin Tournoij CC BY-SA 3.0
fix fedora package name - otherwise one gets 'No package vim-x11 available'; -Y implicates -X; echo is necessary otherwise I get 'not an editor command'
S Mar 15, 2016 at 10:12 history suggested maxschlepzig CC BY-SA 3.0
fix fedora package name - otherwise one gets 'No package vim-x11 available'; -Y implicates -X; echo is necessary otherwise I get 'not an editor command'
Mar 15, 2016 at 10:05 review Suggested edits
S Mar 15, 2016 at 10:12
Mar 12, 2016 at 2:59 history edited muru CC BY-SA 3.0
added 1 character in body
Mar 11, 2016 at 18:56 history edited Martin Tournoij CC BY-SA 3.0
Update for Neovim
S Jan 20, 2016 at 2:01 history suggested Mateusz Piotrowski CC BY-SA 3.0
fixed a typo
Jan 20, 2016 at 1:38 review Suggested edits
S Jan 20, 2016 at 2:01
Aug 23, 2015 at 18:53 comment added Arthur F For some international keyboards, you may need to press "<Space> to get a ". So in those case you would have to press "<Space>+y or "<Space>*y to copy.
May 26, 2015 at 8:49 history edited Martin Tournoij CC BY-SA 3.0
added 249 characters in body
May 25, 2015 at 21:02 review Suggested edits
May 25, 2015 at 21:20
Mar 16, 2015 at 20:52 comment added hildred ssh -Y implies -X so -X can be omitted.
Feb 20, 2015 at 17:44 review Suggested edits
Feb 20, 2015 at 17:45
Feb 20, 2015 at 17:33 history edited Martin Tournoij CC BY-SA 3.0
added 308 characters in body
Feb 11, 2015 at 12:56 history edited Martin Tournoij CC BY-SA 3.0
added 217 characters in body
Feb 7, 2015 at 16:28 history edited Martin Tournoij CC BY-SA 3.0
added 53 characters in body
Feb 7, 2015 at 15:48 history edited Martin Tournoij CC BY-SA 3.0
added 1 character in body
Feb 7, 2015 at 4:56 history edited Martin Tournoij CC BY-SA 3.0
added 1140 characters in body
Feb 7, 2015 at 4:49 history edited Martin Tournoij CC BY-SA 3.0
added 1140 characters in body
Feb 6, 2015 at 11:02 history edited Martin Tournoij CC BY-SA 3.0
added 37 characters in body
Feb 4, 2015 at 9:28 history edited Martin Tournoij CC BY-SA 3.0
added 1 character in body
Feb 4, 2015 at 2:24 vote accept thameera
S Feb 3, 2015 at 19:04 history edited Martin Tournoij CC BY-SA 3.0
moving the os x / windows mention further up
S Feb 3, 2015 at 19:04 history suggested alxndr CC BY-SA 3.0
moving the os x / windows mention further up
Feb 3, 2015 at 19:03 review Suggested edits
S Feb 3, 2015 at 19:04
Feb 3, 2015 at 18:40 history edited Martin Tournoij CC BY-SA 3.0
edited body
Feb 3, 2015 at 18:34 history answered Martin Tournoij CC BY-SA 3.0