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 m

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///g Thanks in advance, Nikos

Re: vim | replacement question

2006-09-20 Thread Yakov Lerner
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///g /pattern/+1,$s///g Yakov

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///g /pattern/+1,$s///g Yakov Th

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 f

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 othe

Re: Making Autocmd matches buffer's first line

2006-09-20 Thread Yakov Lerner
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 execute bit > set. > I set up my editing enviro

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

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///g Thanks in advance, I see that others have given the answer to the specific question you

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 lin

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: ( ^#\!.+pyth

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 on

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 no

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?

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

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 fea

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 sett

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

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 li