Re: My vim can't load from context menu or with any parameter




There's always the possibility that not your .vimrc but some system-wide
file cause your problems. So you shoud try starting with *empty*
$HOME/.vimrc and $HOME/.gvimrc files to test if your problems still occur.
If all else fails you can narrow down the problem yourself:
Recursively comment out half of your rc-files (and then half of the part
where the problem occured and so on...) until you found the problematic
setting.

When you are finished doing that, either you know how to fix the problem
yourself or the regulars of this newsgroup at least know what the exact
problem is.

Oh, and read
http://catb.org/esr/faqs/smart-questions.html

Greetings,

Manuel

(Only quoted text below this line.)

"leed" <leed2005@xxxxxxxxx> writes:

My system is ubuntu. Gvim works well in it before.
But now I get some very puzzle problems.

I can't load my gvim from context menu. If i load a text file from
context menu,
gvim can't show GUI. In system moniter, gvim is listed in it. However,
it only
uses 5.8M memeroy and has no change. But I can load gvim form
application menu.

If I use command "gvim -f 1.txt" in terminal, gvim can load normally.
But the
content of 1.txt will be cleared. Even use command "gvim 1.txt", the
content of
1.txt will also be cleared. 1.txt can only be opened normally with the
command
"gvim -u NONE -U NONE 1.txt".

So I think my .vimrc cause these problems. I post my .vimrc at the end.
Hope you
can dialog it, and give me some advice.

--
A hundred men did the rational thing. The sum of those rational choices was
called panic. Neal Stephenson -- System of the world
http://www.graune.org/GnuPG_pubkey.asc
Key fingerprint = 1E44 9CBD DEE4 9E07 5E0A 5828 5476 7E92 2DB4 3C99
.



Relevant Pages

  • Re: My vim cant load from context menu or with any parameter
    ... I have fix this problem with your advice. ... I can't load my gvim from context menu. ... So I think my .vimrc cause these problems. ...
    (comp.editors)
  • 2 vim questions
    ... Using Vim 6.4 under Windows XP, how can I configure gvim to always start maximized? ... Is there any command I can add to my _vimrc to do this? ...
    (comp.editors)
  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... include tools to automatically download and install software for you. ... Mind you your opinions about Command ... Even with gvim, the click&go version of vim, the clicking doesn't happen ... Anyway, i can install Debian/Linux to be in such a way, that the user ...
    (alt.lang.asm)
  • Re: Switching vimrc based on terms
    ... If I try using one vimrc for both, I end up with colors that ... I think I could alias vim to source .vimrc_a and gvim to source ... You could test for builgin_gui in your .vimrc file ...
    (comp.editors)
  • Re: Bash and Quoting
    ... > # load a file in gvim using cygwin paths ... "if the expansion of $1 resolves to a true test ...
    (comp.unix.shell)