Saturday, November 3, 2012

Re: Opening multiple files thru command line

On 03/11/12 18:30, Gary Johnson wrote:
[...]
> It sounds like you may think that ~/.vimrc is the configuration file
> for vim while ~/.gvimrc is the configuration file for gvim. This is
> not true. ~/.vimrc is sourced by both vim and gvim. ~/.gvimrc is
> sourced only by gvim and is intended to contain only GUI-related
> settings. See
>
> :help gvimrc
> :help startup
>
> for more details.
[...]

Even so, it is often possible to dispense with a gvimrc altogether: some
settings (e.g. 'guifont') will be remembered for use at GUI startup, and
for those which need conflicting values in Console mode and in GUI mode
you can use either or both of
:if has("gui_running") | DoSomething | endif
:autocmd GUIEnter * DoSomething
(where DoSomething represents one or more ex-commands) especially if you
never use the :gui command to go into GUI mode after having used Console
Vim for some time (on Unix-like systems where a single executable,
compiled with GUI enabled, can also run in Console mode).


Best regards,
Tony.
--
Oh, wow! Look at the moon!

--
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

No comments:

Post a Comment