why does :save not work with -stdin-

2007-06-05 Thread Mohsin
I usually do search like this: $ grep Word *.* | vim -u myvimrc - $ cat myvimrc :autocmd StdinReadPost * :sav! /tmp/x but when I quit :q, vim always asks me to save the file again, why is the file marked as modified? I tried all combinations of flags, but can't get vim to mark the file as

Re: enhancing hlsearch

2006-12-06 Thread Mohsin
Mechelynck, It has to be done with one mapping, the reason being *simultaneous* display, since sometimes the same word is with wrong case, should be immediately visible without having to make a mental switch to find it. I will try using with the syntax/highlight mappings. thanks, mohsin. On

enhancing hlsearch

2006-12-06 Thread Mohsin
Is it possible to display (highlight) matches for /Word simultaneously in 3 different colors: 1. Word .. hlsearch 2. \ .. hlsearchword 3. (?i)word .. hlsearchicase how hard would it be? I don't want to use script to it. thanks, mohsin.

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-06 Thread Mohsin
with implementation just the hard theoretical limit, I am afraid, this might not work on slower machines. thanks mohsin On 8/5/06, Benji Fisher <[EMAIL PROTECTED]> wrote: On Fri, Aug 04, 2006 at 04:01:38PM -0700, Mohsin wrote: > > On 8/4/06, A.J.Mechelynck <[EMAIL PR

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-04 Thread Mohsin
The problem is I want to apply the highlighting to multiple blocks of text simultaneously, so regexp doesn't help. mohsin. On 8/4/06, Ilya <[EMAIL PROTECTED]> wrote: Mohsin wrote: > I want to use a highlighter mode on my text file, example: > > :color_region bold li

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-04 Thread Mohsin
54l.\%<78l\&\%>14v.\%<39v/ match User1 /\%>84l.\%<88l\&\%>14v.\%<39v/ - mohsin. On 8/4/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: A.J.Mechelynck wrote: > Mohsin wrote: >> I want to use a highlighter mode on my text file, example: >> >>

No way to color-region(s) of text -- highlighter mode.

2006-08-04 Thread Mohsin
I want to use a highlighter mode on my text file, example: :color_region bold line1 col1 line2 col2 :color_region bold 5 5 6 6 :color_region underline 5 5 6 6 I couldn't do this in vim. Vim only has syntax coloring with regexps. Emacs has functions to apply properties to text blocks, and I

thesaurus infercase -- dont work together. in vim6 and 7.

2006-05-30 Thread Mohsin
The thesaurus option doesn't work in vim6/7 when infercase is set. C-x C-t will do same as C-n/C-p completions. Is this by design? My ~/.vimrc set infercase set thesaurus=/doc/roget13a.txt thanks, - Mohsin.

Re: Using py commands to evaluate text for balloon commands for web lookups.

2006-05-26 Thread Mohsin
laying stale results. Can I clear reset the Balloon value before starting a lookup? Because the Balloon interface only uses the return value of my function. 4. Any function to pick phrase under mouse? thanks for the earlier help (I used eval to interface with python). Mohsin On 5/24/06, Il

Using py commands to evaluate text for balloon commands..

2006-05-23 Thread Mohsin
t in a balloon. A transparent clean py/vim interface will allow us to reuse a large part of python library inside vim scripts. Any help appreciated. thanks, Mohsin