Thursday, December 3, 2015

Re: Ignore some filenames

Hi,

2015-12-4(Fri) 14:48:23 UTC+9 h_east:
> Hi Paolo,
>
> 2015-12-4(Fri) 13:55:27 UTC+9 Paolo Bolzoni:
> > Dear list,
> >
> > I use vim to write C++ code and often I start the program using a
> > command line like
> > $ vcpp classX.*
> > (vcpp is an alias for vim -u ~/.vim/vcpp/vimrc where the C++ settings are)
> >
> > So vim opens the files with definitions and headers. However if the
> > file is compiled vim also opens the .o file. I am aware that is
> > exactly what I asked, but I was wondering if there is a easy way to
> > tell vim to ignore any filename ending by .o
>
> Probably, I think it should be set at the shell side.
>
> In case of Bash:
> $ export GLOBIGNORE=*.o

Other solution. (Treat args in Vim)

- Add below line to your ~/.vim/vcpp/vimrc
set wildignore+=*.o

- Start vcpp without args.
$ vcpp

- Specify args in Vim
:n classX.*

--
Best regards,
Hirohito Higashi (a.k.a h_east)

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment