Re: Is there a standard replace of "native" cpp.vim?

2016-04-07 Thread Christian Brabandt
Hi Albert! On Fr, 08 Apr 2016, Albert Berger wrote: > Greetings, > > I wonder, is there some commonplace good solution for c++ syntax > highlighting, like, e.g. YouCompleteMe is a popular recommendation > for powerful autocompletion? Internet search has revealed only > a couple of cpp.vim files,

vim scripy exe python << EOF will exit

2016-04-07 Thread 李哲
I want to embed python code in the vim script, and I write the test ode like this: ``` fu! CusFoo() python << EOF print 'xixi' EOF endfunction ``` and when I call the CusFoo from the command line use `call CusFoo()` the vim will exit immediately. I can guarantee that the problem is lies in t

Is there a standard replace of "native" cpp.vim?

2016-04-07 Thread Albert Berger
Greetings, I wonder, is there some commonplace good solution for c++ syntax highlighting, like, e.g. YouCompleteMe is a popular recommendation for powerful autocompletion? Internet search has revealed only a couple of cpp.vim files, which unfortunately don't provide syntax highlighting comparable

Re: How to detect the file type in vimrc?

2016-04-07 Thread Albert Berger
On Thu, Apr 07, 2016 at 11:46:03AM -0400, Charles Campbell wrote: > Albert Berger wrote: > > On Wed, Apr 06, 2016 at 10:21:42PM -0700, Ben Fritz wrote: > >> On Tuesday, April 5, 2016 at 2:44:23 PM UTC-5, Albert Berger wrote: > >>> Greetings! > >>> > >>> How does one detect the file type in .vimrc?

Re: How to detect the file type in vimrc?

2016-04-07 Thread Luc Hermitte
Hi, > Indeed, I'm pretty sure the file itself hasn't been read yet when > reading the .vimrc, but I may be wrong about that. Worse. When you open a second or a third file, the .vimrc isn't read anymore. .vimrc settings are meant to be global settings that can apply to anything. When we want ded

Re: How to detect the file type in vimrc?

2016-04-07 Thread Charles Campbell
Albert Berger wrote: > On Wed, Apr 06, 2016 at 10:21:42PM -0700, Ben Fritz wrote: >> On Tuesday, April 5, 2016 at 2:44:23 PM UTC-5, Albert Berger wrote: >>> Greetings! >>> >>> How does one detect the file type in .vimrc? AFAIU, 'filetype' setting is >>> not yet set when .vimrc is processed. The fol

Re: How to detect the file type in vimrc?

2016-04-07 Thread Albert Berger
On Wed, Apr 06, 2016 at 10:21:42PM -0700, Ben Fritz wrote: > On Tuesday, April 5, 2016 at 2:44:23 PM UTC-5, Albert Berger wrote: > > Greetings! > > > > How does one detect the file type in .vimrc? AFAIU, 'filetype' setting is > > not yet set when .vimrc is processed. The following check doesn't >

Executing search does not add to jump list

2016-04-07 Thread Nicola
If I define: nmap = /=== after pressing = to jump to the next occurrence of === I may use to jump back. Great. But if I define: nmap = :exe '/===' then searches for some reason are not added to the jump list. Can you confirm this behaviour? Is there a way to remember jumps in the latter case?

Re: Highlighting Missing

2016-04-07 Thread Fabio D'Alfonso
Hi, thanks, I will make the use of a local filetype.vim, as you suggest, I am using an old ubuntu out of update, and never had problems with updates, as they are gone some year ago. The good of assembler... it changes rarely, or is built in some minutes. Anyway, the issue now is not with vim,