yank missing?

0 views
Skip to first unread message

Aaron Davies

unread,
Dec 8, 2008, 11:19:41 PM12/8/08
to vim...@googlegroups.com
vim 6.2.263 on SuSE LINUX Enterprise Server 9.4, no ~/.vimrc, just the
suse default /etc/vimrc

y/yy/Y do nothing at all (d, x, etc. all work fine)

ideas?
--
Aaron Davies
aaron....@gmail.com

John Beckett

unread,
Dec 8, 2008, 11:46:27 PM12/8/08
to vim...@googlegroups.com
> y/yy/Y do nothing at all (d, x, etc. all work fine)

Try

:verbose map Y

If it says "no mapping found", you need to define "nothing at all". For
example:

Put cursor on line containing 'Test one'.
Press Y then P
If it pastes the line, it is behaving as normal.

Perhaps you want "+Y

John

Aaron Davies

unread,
Dec 8, 2008, 11:55:08 PM12/8/08
to vim...@googlegroups.com

d'oh, my bad. i think i was expecting "cut" behavior, not "copy"--the
line's not vanishing, and the general lack of any feedback at all,
confused me.

it works fine. (and i realize now that D/dd are "cut".)
--
Aaron Davies
aaron....@gmail.com

Tony Mechelynck

unread,
Dec 9, 2008, 11:25:21 AM12/9/08
to vim...@googlegroups.com
On 09/12/08 05:19, Aaron Davies wrote:
> vim 6.2.263 on SuSE LINUX Enterprise Server 9.4, no ~/.vimrc, just the
> suse default /etc/vimrc
>
> y/yy/Y do nothing at all (d, x, etc. all work fine)
>
> ideas?

6.2 is obsolete, and has long been so (since then, 6.3, 6.4, 7.0 and 7.1
have all come and gone; the latest version is ATM 7.2.068). SuSE 9.4 is
also obsolete (the current version is 11.0, and 11.1 will probably be
released before the end of the year -- which means the end of the month
by now, of course).

I recommend to compile your own Vim 7.2.068, see
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm -- it
shouldn't be difficult, and it might cure your problem, because
/etc/vimrc is not the default location for the system vimrc.

You may also have spurious mappings (even in /etc/vimrc, which is a SuSE
script, not a vim.org script). Try finding them out with

:map y
:map Y

With Vim 7 it would be easier: ":verbose map y" would tell you where the
mappings were defined, the way it already does in Vim 6 for the ":set"
command.

Also, you may want to add a .vimrc to your $HOME directory. For
starters, I recommend the following:

" Vim configuration file
" For menus in English rather than in locale language,
" replace if 0 by if 1 below.
if 0
if has('multi_lang')
if has('unix')
language messages C
else
language messages en
endif
endif
endif
" the following adds a number of useful settings
runtime vimrc_example.vim
" add additional user customizations below this line


Best regards,
Tony.
--
The human animal differs from the lesser primates in his passion for
lists of "Ten Best".
-- H. Allen Smith

Reply all
Reply to author
Forward
0 new messages