Having trouble trying to use a single init (.vimrc) file for both vim
and gvim.  I'd actually prefer just forget about gvim but some plugins
seem to need it... at least one that I want to learn to use. (xpt).

I pulled up lots of balderdash on google, and the 1 that actuall gave
a code example of how to do it... does not work here.

Found at: http://bugs.archlinux.org/task/10303 

  ; Only apply this in gvim
  if has("gui-running")
    set whatever
  endif
  
  ; Only apply this in non-gui vim
  if !has("gui-running)
    set whatever
  endif
  
One place I see a problem is if I set one of the color schemes
available in gvim Edit/color scheme by typing

   colors peachpuff

At the bottom of .vimrc

It has the desired effect in that gvim now opens with the peachpuff
color scheme, but it wrecks my syntax colors in vim.  Appears to
revert them to default or something.... at least the appearance is
quite different than normal. (withouht `color peachpuff' in .vimrc) 

So attempting to use the code found on google:

  " Only apply this in gvim
  if has("gui-running")
    colors peachpuff
  endif

That fixes it for vim, but now gvim fails to use the peachpuff color
scheme.

Is there some clear cut way to separate which editor load what from
.vimrc?


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

Reply via email to