vim bof audio available anyone ?

2006-09-20 Thread Christian MICHON
Hi vimmers, I remember there was some audio recording of vim BOF/sane 2004. Has anyone attended yesterday's BOF session with an audio recording device ? It would be nice to hear it for those/us who could not attend. Thanks in advance -- Christian

Keyword completion

2006-09-20 Thread Gautam Iyer
Hi All, Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N, can we get vim to complete from the list of syntax keywords? Better still say from a specified group? Or does one have to write out these keywords separately in a completion file? Thanks, GI -- A hangover is the

Re: Keyword completion

2006-09-20 Thread Martin Stubenschrott
On Wed, Sep 20, 2006 at 01:33:54PM -0700, Gautam Iyer wrote: Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N, can we get vim to complete from the list of syntax keywords? You can do that by setting: :set omnifunc=syntaxcomplete#Complete and then use c-xc-o You can also

Re: [vim-dev] Re: Keyword completion

2006-09-20 Thread Gautam Iyer
On Wed, Sep 20, 2006 at 10:41:58PM +0200, Martin Stubenschrott wrote: Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N, can we get vim to complete from the list of syntax keywords? You can do that by setting: :set omnifunc=syntaxcomplete#Complete and then use

[macvim] Work-in-progress patch for new events

2006-09-20 Thread Nicolas Weber
Hi everyone, I'm currently writing a patch to port mac vim to carbon's new (os 9? os x 10.0?) event model. This has the main advantage that the new event model provides standard handlers for a lot of stuff (window movement, ...) and makes further patches much easier to write. In the next

Re: glued Cursor trick anyone ?

2006-09-20 Thread Yakov Lerner
On 9/20/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: 3.) Last glued cursor thingy: I want to glue the cursor on the text and using up and down will not move the cursor on the text but the text on the screen. There are 2 methods: a) 'set scrolloff=999' locks cursor at the middle

vim | replacement question

2006-09-20 Thread Nikolaos A. Patsopoulos
Hi all! Another replacement question: how can I replace all occurrence of a pattern except a given one, e.g. the first or third? the code for all occurrences I use is: :%s/a.\{-}//g Thanks in advance, Nikos

Re: vim | replacement question

2006-09-20 Thread Nikolaos A. Patsopoulos
Yakov Lerner wrote: On 9/20/06, Nikolaos A. Patsopoulos [EMAIL PROTECTED] wrote: Hi all! Another replacement question: how can I replace all occurrence of a pattern except a given one, e.g. the first or third? the code for all occurrences I use is: :%s/a.\{-}//g /pattern/+1,$s///g Yakov

Making Autocmd matches buffer's first line

2006-09-20 Thread Fabien Meghazi
Hi all, I have a lot of python files without the .py extensions as I'm using them as commands, those files are scripts in my ~/bin with execute bit set. I set up my editing environment for python files in my .vimrc using autocmd using pattern *.py But I would like these autocmd's to match those

Re: glued Cursor trick anyone ?

2006-09-20 Thread Tim Chase
Is it possible to always scroll the screen that way, that pressing n wll always take you to the middle of the screen (or in other words: The cursor is glued to the middle of the screen and the text jumps under the cursor)? In addition to the 'scrolloff' setting mentioned by others

Re: Making Autocmd matches buffer's first line

2006-09-20 Thread Yakov Lerner
On 9/20/06, Fabien Meghazi [EMAIL PROTECTED] wrote: Hi all, I have a lot of python files without the .py extensions as I'm using them as commands, those files are scripts in my ~/bin with execute bit set. I set up my editing environment for python files in my .vimrc using autocmd using pattern

Re: Making Autocmd matches buffer's first line

2006-09-20 Thread Greg Dunn
On 9/20/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/20/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/20/06, Fabien Meghazi [EMAIL PROTECTED] wrote: Hi all, I have a lot of python files without the .py extensions as I'm using them as commands, those files are scripts in my ~/bin with

Re: vim | replacement question

2006-09-20 Thread Charles E Campbell Jr
Nikolaos A. Patsopoulos wrote: Another replacement question: how can I replace all occurrence of a pattern except a given one, e.g. the first or third? the code for all occurrences I use is: :%s/a.\{-}//g Thanks in advance, I see that others have given the answer to the specific

Re: glued Cursor trick anyone ?

2006-09-20 Thread Greg Dunn
On 9/19/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, I would like to accomplish three tricks: 1.) Suppose you have a source code and have started an new search task recently. With n you are jumping from match to match. Sometimes the next match is right on the last line

Re: Making Autocmd matches buffer's first line

2006-09-20 Thread Charles E Campbell Jr
Yakov Lerner wrote: On 9/20/06, Fabien Meghazi [EMAIL PROTECTED] wrote: But I would like these autocmd's to match those files without .py extensions. My question is : Is it possible to make an autocmd pattern's to match something in the first line's buffer with a regexp eg: (

Re: Making Autocmd matches buffer's first line

2006-09-20 Thread Fabien Meghazi
We typically do it as follows: :au BufReadPost * if getline(1) =~ 'pattern' | do something | endif Thanks all , it works ok Also, one is supposed to put such things in .vim/scripts.vim (or vimfiles\scripts.vim if you're a Windozer) That's why I won't use it. I like to have only

Re: :s/pattern Undocumented feature?

2006-09-20 Thread Tim Chase
I hadn't seen a reply to this fly by, so I thought I'd let you know it wasn't entirely ignored :) It appears that :s/pattern produces the same result as :s/pattern//. I couldn't find that behavior in the docs. A hidden feature? (Or was I just not creative enough using helpgrep?) I'm not

Re: :s/pattern Undocumented feature?

2006-09-20 Thread Bill McCarthy
On Wed 20-Sep-06 1:08pm -0600, Tim Chase wrote: I hadn't seen a reply to this fly by, so I thought I'd let you know it wasn't entirely ignored :) It appears that :s/pattern produces the same result as :s/pattern//. I couldn't find that behavior in the docs. A hidden feature? (Or was I

Re: sharing keyboard/mouse (was: Paragraph formatting options)

2006-09-20 Thread Hari Krishna Dara
On Wed, 6 Sep 2006 at 7:27pm, Gary Johnson wrote: On 2006-08-27, Jim Tittsler [EMAIL PROTECTED] wrote: On Aug 26, 2006, at 18:09, Gary Johnson wrote: Pretty well. The monitors have dual inputs, so I can switch them easily between the two PCs. I don't have a way to switch a keyboard

Re: :s/pattern Undocumented feature?

2006-09-20 Thread Hari Krishna Dara
On Wed, 20 Sep 2006 at 1:08pm, Tim Chase wrote: I hadn't seen a reply to this fly by, so I thought I'd let you know it wasn't entirely ignored :) It appears that :s/pattern produces the same result as :s/pattern//. I couldn't find that behavior in the docs. A hidden feature? (Or was

Re: glued Cursor trick anyone ?

2006-09-20 Thread Meino Christian Cramer
From: Gene Kwiecinski [EMAIL PROTECTED] Subject: RE: glued Cursor trick anyone ? Date: Wed, 20 Sep 2006 12:25:42 -0400 Hi Vim-O-Logics ! :) thank you very much for all your replies! Again I see, that I have to learn more and better English to be able to explain more exactly what I want to

Project specific keywords?

2006-09-20 Thread Kamil Kisiel
I would like to define keywords for syntax highlighting that are specific to a particular project. For example, when using some third-party API there are often frequently used keywords that I'd like to highlight when using that API. What's the best way to set this up with Vim, and to have the

Re: Project specific keywords?

2006-09-20 Thread A.J.Mechelynck
Kamil Kisiel wrote: I would like to define keywords for syntax highlighting that are specific to a particular project. For example, when using some third-party API there are often frequently used keywords that I'd like to highlight when using that API. What's the best way to set this up with

Re: Project specific keywords?

2006-09-20 Thread A.J.Mechelynck
Kamil Kisiel wrote: On 9/21/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Kamil Kisiel wrote: I would like to define keywords for syntax highlighting that are specific to a particular project. For example, when using some third-party API there are often frequently used keywords that I'd like