Monday, July 23, 2018

Re: yank and put not vmapping in debian stretch

Tony,

Here is (I hope) the presentation which you have requested.

Here is output of 'version':

:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 30 2017 18:21:38)
Included patches: 1-197, 322, 377-378, 550, 703, 706-707
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version without GUI. Features included (+) or not (-):

Here is my procedure for mapping "+y:

1. enter ':vmap <c-i> "+y<cr>' (to map the visual mode yank)

2. in blank screen, hit 'i' key (for insert mode)

3. enter 'now is the time<cr>'.

4. hit <esc> key

5. hit 'v' key (for visual mode)

6. hit 'k' key to select the text

7. do <c-i> ( actual result is that editor stays in visual mode;
expected that it would return to normal mode)

8. hit 'v' key to exit visual mode

9. hit 'j' key to move to next line

10. hit 'p' key to put the selected text (actual result is no change;
expected that editor would put 'now is the time' in the document)

Thanks again for your help,

Tom Arnall



On 7/22/18, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
> On Mon, Jul 23, 2018 at 3:40 AM, tom arnall <kloro2006@gmail.com> wrote:
>> i can't get yank or put to map to a kb shortcut in visual mode. i'm
>> running debian stretch.
>
> This problem description is so vague that I can't even begin to try to
> reproduce it. Please include the following:
>
> 1. Which Vim version, patchlevel, and featureset? (Please paste the
> first lines of the output of the :version command, up to and including
> the one which ends in "Features included (+) or not (-)"). How to get
> that into a file or into the clipboard is explained at ":help :redir".
>
> 2. Please describe in detail what you do (as a "recipe": 1. do this,
> 2. do that) using clear and simple language, so that even someone only
> half-proficient in English can understand it.
>
> 3. At the end, or after the important steps of the procedure at 2
> above, please say what you see ("Actual result") and what you expected
> ("Expected result").
>
> Best regards,
> Tony.
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment