Thursday, January 28, 2010

Re: strange use of 'g' command mode

chika.tambun wrote:
> NORMAL MODE if i press 'G' the cursor will go to the end but
> when i press 'gg' it wont get to the top but do something to paste
> something spesific, the same thing happen when itry to stick around on
> line 88, my command '88g' do strange paste
>
> this is my file /etc/vim/<a href="http://www.4shared.com/file/
> 209914400/fd8f8ab6/vimrc.html" target=_blank>vimrc</a>
>
> any idea will be appreciated

This sounds like you have an unfortunate mapping. Does the same
occur when you start vim with

vim -u NONE

to ensure your vimrc isn't loaded? When you experience the
problem, you may also want to look at

:map
:map!

to see if "gg" is mapped to anything. You should then be able to use

:verbose map gg
:verbose map! gg

to see where it was last set

> when i close the vim ':wq', i get the 'dirty' shell screen...

Some terminals support storing and retrieving the previous text
-- either:

1) your terminal doesn't support it or
2) your $TERM setting is wrong (type "echo $TERM" at your shell
prompt)
3) your termcap database is corrupted/out-of-date/etc

You'll want to read up at

:help xterm-save-screen

-tim


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: