Re: omni and OpenFOAM

2011-08-06 Thread 何聪辉
I have done the similar thing, using external library, Qt library, and realize the omnicppcomplete in vim. This is a link to that http://wend.elmaqu.es/?p=103 I think you steps are the same as that in the link. So I can only suppose that the whether the codes in your files in your diretory ~/Ope

Re: function name to protoype

2011-08-06 Thread 何聪辉
That's is a amazing idea. Do you use it add function prototypes? Currently I just yank the file line in the definition of the function and paste in the front of the source file or in the header file, the add a semi coma. Could you share how you currently achieve it? Thanks. 2011/8/3 sinbad >

Re: emacs-style file backups

2011-08-06 Thread Ben Fritz
On Aug 7, 1:15 am, Alan wrote: > I looked at patchmode before, but it doesn't do what I want. patchmode only > keeps the oldest version of the file. So it will save the backup after the > first write. However, if you kill the buffer and then visit the file again, > a new backup file will not be

Re: emacs-style file backups

2011-08-06 Thread Alan
I looked at patchmode before, but it doesn't do what I want. patchmode only keeps the oldest version of the file. So it will save the backup after the first write. However, if you kill the buffer and then visit the file again, a new backup file will not be made. I want a new backup file only when

Re: OmniCppComplete doesn't work with namespaces or ::

2011-08-06 Thread 何聪辉
It seems that I came across the same thing with you. When I type MyClass::, "pattern not found" appears, but when I type std::, it works well. Is it some bugs or we haven't configured the tags file? What's more, when I include --c++-kind=+p as the ctags parameter, the member functions appears in t

Re: emacs-style file backups

2011-08-06 Thread Ben Fritz
On Aug 7, 12:10 am, Alan wrote: > Hi, > > I turned on file backups using "set backup" in my .vimrc. However, I want to > have emacs-style file backup behavior: > > "Emacs makes a backup for a file only the first time the file is saved from > a buffer. No matter how many times you subsequently sa

emacs-style file backups

2011-08-06 Thread Alan
Hi, I turned on file backups using "set backup" in my .vimrc. However, I want to have emacs-style file backup behavior: "Emacs makes a backup for a file only the first time the file is saved from a buffer. No matter how many times you subsequently save the file, its backup remains unchanged. Howe

Re: How to match a certain string after an empty line?

2011-08-06 Thread meino . cramer
Jean-Rene David [11-08-07 06:04]: > * meino.cra...@gmx.de [2011.08.06 23:30]: > > 01 /home/user1/foo > > 02 /home/user1/bar > > 03 /home/user1/gnu > > 04 /home/user2/alice > > 05 /home/user1/gnats > > 06 /home/user2/alice > > 07 > > 08 /home/user2/alice > > 09 /home/user1/bob > > 10 /home/user1/s

Re: How to match a certain string after an empty line?

2011-08-06 Thread Jean-Rene David
* meino.cra...@gmx.de [2011.08.06 23:30]: > 01 /home/user1/foo > 02 /home/user1/bar > 03 /home/user1/gnu > 04 /home/user2/alice > 05 /home/user1/gnats > 06 /home/user2/alice > 07 > 08 /home/user2/alice > 09 /home/user1/bob > 10 /home/user1/snafu > 11 /home/user2/alice > > (line numbers are only f

Re: How to match a certain string after an empty line?

2011-08-06 Thread Taylor Hedberg
I would use this pattern: \n\n\zs\/home\/user\/alice There's probably more than one way to do it though. -- 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

How to match a certain string after an empty line?

2011-08-06 Thread meino . cramer
Hi, A listing of files with absoulte paths contains somthing like this 01 /home/user1/foo 02 /home/user1/bar 03 /home/user1/gnu 04 /home/user2/alice 05 /home/user1/gnats 06 /home/user2/alice 07 08 /home/user2/alice 09 /home/user1/bob 10 /home/user1/snafu 11 /home/user2/alice (line numbers are o