Skip to main content
9 events
when toggle format what by license comment
Mar 29, 2019 at 3:13 comment added 3N4N Oh, you're already in visual-mode? Then you need to edit your question, it's not properly explained. If you can, you could add a GIF of what you want.
Mar 28, 2019 at 20:05 comment added Luke Skywalker well it works thanks to 'h'. But this is not what I am looking for. Let's say you've selected a whole line, and your cursor is on the first character of the next line. Pressing h is not going to bring the cursor at the end of the previous line. I want to do this because I am mapping Ctrl+c so that vim behave like any other editor.
Mar 28, 2019 at 13:55 history edited 3N4N CC BY-SA 4.0
added 1 character in body
Mar 28, 2019 at 13:54 comment added 3N4N @LukeSkywalker Plug 'tpope/vim-fugitive' let's say my cursor is on the hyphen of vim-fugitive and then I issue y^. It should yank the text of Plug 'tpope/vim and you can check what is yanked in the default unnamed register by :reg"
Mar 28, 2019 at 13:52 comment added 3N4N @LukeSkywalker But it is working as you want in my vim. Can you confirm that you issue the command y^ when your cursor is on the character you want to exclude from the yanked text?
Mar 28, 2019 at 13:32 comment added Luke Skywalker I believe if I follow your instruction I will copy the selection including the character under the cursor. Which is what I am trying to avoid.
Mar 28, 2019 at 13:26 comment added 3N4N What do you mean? I see that you edited your question, but my answer does apply to your edited (and more specific and explained) question. If the answer doesn't fulfill your requirements, i.e. doesn't solve your problem, please report back.
Mar 26, 2019 at 18:09 comment added Luke Skywalker I am sorry, for some reason the wrong version of my question was posted... My question was more precise.
Mar 26, 2019 at 18:06 history answered 3N4N CC BY-SA 4.0