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

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. \Word\ .. 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-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 line1 col1 line2 col2

Changing a long list of entries with corresponding index

2006-06-06 Thread Salman Mohsin
Hi, I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = ABERFOYLE . . cities[2039] = ZURICH Is there a way I could issue a command (or some commands) and achieve the

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
. 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, Ilya [EMAIL PROTECTED

Using py commands to evaluate text for balloon commands..

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