Re: Tabline function sometimes recalled when highlighting set/changed.

2006-05-01 Thread Eric Arnold
I haven't been idle on this. I was unable to get my test case working for a simple but un-obvious reason. It requires that at least one other window be open. Run the following, and open two windows. Edit a file in one. Open a new line, which I assume triggers the tabline to trigger as the buf

RE: hiding lines

2006-05-01 Thread Suresh Govindachar
[Modified the third solution] On May 01, 2006, Yakov Lerner pointed out: >On 5/2/06, Suresh Govindachar wrote: >> >> Yakov Lerner wondered: >> >>> But how do you remove #ifdef blocks? I mentioned piping >>> because there is ready utility, 'unifdef', that removes some >>> or al

Re: Tabline function sometimes recalled when highlighting set/changed.

2006-05-01 Thread Eric Arnold
You don't need to repeat yourself. If I could give you a reproducible code fragment, I would. It happens as part of a relatively long script. It's a *data point*. A piece of information. "Setting highlighting from the tabline function causes it to re-trigger on the next keystroke". In this c

Re: Folding comments

2006-05-01 Thread Hari Krishna Dara
On Sat, 29 Apr 2006 at 4:12pm, cga2000 wrote: > Is there any way I could use folding to do this: > > 1. Fold all lines in a file that contain only comments. > > 2. Optionally delete all the lines that have previously been folded. > > I have a feeling I am looking for something less sophisticated

RE: hiding lines

2006-05-01 Thread Suresh Govindachar
[In reporting the third solution below, I forgot the g] On May 01, 2006, Yakov Lerner pointed out: >On 5/2/06, Suresh Govindachar wrote: >> >> Yakov Lerner wondered: >> >>> But how do you remove #ifdef blocks? I mentioned piping >>> because there is ready utility, 'unifdef', t

RE: hiding lines

2006-05-01 Thread Suresh Govindachar
On May 01, 2006, Yakov Lerner pointed out: >On 5/2/06, Suresh Govindachar wrote: >> >> Yakov Lerner wondered: >> >>> But how do you remove #ifdef blocks? I mentioned piping >>> because there is ready utility, 'unifdef', that removes some >>> or all of #if blocks. >> >> I

Re: :hardcopy E673 in gVim on GTK2

2006-05-01 Thread Benji Fisher
On Mon, May 01, 2006 at 05:31:47PM -0400, Steve Hall wrote: > > Yes, the bug is in &printencoding. With gvim -u NONE -U NONE, these > lines produce the error: > > :let &printencoding = &encoding > :hardcopy > > This is with the default utf-8, with :set enc=latin1 prior, it is > avoided.

Re: hiding lines

2006-05-01 Thread Tim Chase
What if #if/#endif blocks are nested ? Yakov is correct, that nested #if/#endif blocks would cause trouble. My first thought at a [100% untested] solution would be something like :g/^\s*#endif/norm dV% which would find all of the #endif tokens and delete their associated blocks, exploiti

Re: hiding lines

2006-05-01 Thread Yakov Lerner
On 5/2/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: Yakov Lerner wondered: > But how do you remove #ifdef blocks? I mentioned piping because > there is ready utility, 'unifdef', that removes some or all of > #if blocks. Isn't there a way to do a multi-line substitution: :%s/

RE: hiding lines

2006-05-01 Thread Suresh Govindachar
Yakov Lerner wondered: > But how do you remove #ifdef blocks? I mentioned piping because > there is ready utility, 'unifdef', that removes some or all of > #if blocks. Isn't there a way to do a multi-line substitution: :%s/^\s*#ifdef .*^\s*#endif// where the *s are multi-line a

Re: Destructive left shift of a block of text

2006-05-01 Thread cga2000
Thus spake Gerald Lai on Mon, May 01, 2006 at 04:43:55PM -0700 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 20:16]: [...] > > > >What would be the best approach to have vim do this for me? > > One way is to use the Visual Block. To invoke it, type Ctrl-v or Ctrl-q > in Normal mode, when your

Re: hiding lines

2006-05-01 Thread Yakov Lerner
On 5/2/06, Gary Johnson <[EMAIL PROTECTED]> wrote: > Thus spake Yakov Lerner on Mon, May 01, 2006 at 10:06:57PM +0300 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 17:25]: > > On 5/1/06, Bill Pursell <[EMAIL PROTECTED]> wrote: > > >Is it possible to completely hide lines? Something stronger t

Re: Destructive left shift of a block of text

2006-05-01 Thread cga2000
Thus spake Pete Johns on Tue, May 02, 2006 at 09:29:25AM +1000 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 19:32]: > On Mon, 2006-05-01 at 19:21:52 -0400, cga2000 sent: > >I have saved the following in a file: > > > > > >> I can't give you any Mac-specific advice, since I don't use them, but >

Re: hiding lines

2006-05-01 Thread cga2000
Thus spake Gary Johnson on Mon, May 01, 2006 at 02:52:21PM -0700 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 19:31]: > On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > > Thus spake Yakov Lerner on Mon, May 01, 2006 at 10:06:57PM +0300 or > > thereabouts: <[EMAIL PROTECTED]> [2006-05-01 17:

Re: Destructive left shift of a block of text

2006-05-01 Thread Gerald Lai
On Mon, 1 May 2006, cga2000 wrote: I have saved the following in a file: I can't give you any Mac-specific advice, since I don't use them, but I can give you a general run-down. 1. You need to have the right locale settings. Your locale should be set to something similar to this: $ local

Re: Destructive left shift of a block of text

2006-05-01 Thread Pete Johns
On Mon, 2006-05-01 at 19:21:52 -0400, cga2000 sent: >I have saved the following in a file: > > >> I can't give you any Mac-specific advice, since I don't use them, but >> I can give you a general run-down. >> >> 1. You need to have the right locale settings. Your locale should be >> set to somethi

Destructive left shift of a block of text

2006-05-01 Thread cga2000
I have saved the following in a file: > I can't give you any Mac-specific advice, since I don't use them, but > I can give you a general run-down. > > 1. You need to have the right locale settings. Your locale should be > set to something similar to this: > > $ locale > LANG=en_US.UTF-8 [

RE: Vim version 7.0g BETA has been released

2006-05-01 Thread Bram Moolenaar
Gene Kwiecinski wrote: > >- Win32: Dropping a shortcut on the Vim icon edited the shortcut instead > > of the file it refers to (old problem). > > Any way to actually edit the shortcut? :D Yes, set 'binary' before editing the file. Well, that requires the "-b" argument somehow and you can't

Re: 70f - Scroll wheel scrolls wrong window

2006-05-01 Thread Bram Moolenaar
David Fishburn wrote: > Though I cannot reproduce it, this has been happening to me throughout the > betas. > > 70f WinXP SP2 > > I have the Taglist window open (though I don't believe it is related). > So my window is split vertically. > My cursor is in normal mode in the right hand pane. > If

Re: Tabline function sometimes recalled when highlighting set/changed.

2006-05-01 Thread Bram Moolenaar
Eric Arnold wrote: > I think I've found the thing that triggers my problem with > TabLineSet.vim where the tabline function get called for every > keystroke: I reset the highlighting in the tabline function. > > Does it seem reasonable that the highlighting changes are triggering > the tabline

Re: hiding lines

2006-05-01 Thread Gary Johnson
On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > Thus spake Yakov Lerner on Mon, May 01, 2006 at 10:06:57PM +0300 or > thereabouts: <[EMAIL PROTECTED]> [2006-05-01 17:25]: > > On 5/1/06, Bill Pursell <[EMAIL PROTECTED]> wrote: > > > > > >Is it possible to completely hide lines? Something stron

Re: hiding lines

2006-05-01 Thread cga2000
Thus spake Yakov Lerner on Mon, May 01, 2006 at 10:06:57PM +0300 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 17:25]: > On 5/1/06, Bill Pursell <[EMAIL PROTECTED]> wrote: > > > >Is it possible to completely hide lines? Something stronger than merely > >folding. In particular, I'd like to be a

Re: :hardcopy E673 in gVim on GTK2

2006-05-01 Thread Steve Hall
On Mon, 2006-05-01 at 08:39 -0400, Benji Fisher wrote: > On Sun, Apr 30, 2006 at 09:19:01PM -0400, Steve Hall wrote: > > > > In every beta of gVim I've tried on Linux/GTK2 (through 70g) I get > > the following error with :hardcopy : > > > > E673: Incompatible multi-byte encoding and character set

Re: txt.vim - Universal syntax script for all txt docs, logs and other strange files

2006-05-01 Thread Tomasz Kalkosiński
Hello again Thanks for your opinions. I've linked txtString to Normal and works quite well. I'll test it for few days more and probably upload a new version. If you got some new ideas or suggestions just let me know. Greetings, Tomasz Kalkosiński

Re: keybindings

2006-05-01 Thread Anton
On Mon, May 01, 2006 at 12:02 -0700, Gerald Lai wrote: > > Nevermind Vim, for Linux terminals (like aterm/xterm/rxvt/virtual > framebuffer terminal), you should be able to just hit Ctrl-V followed by > any keystroke on the command line to see its keycode. > > For example, doing Ctrl-V and pressin

Re: Unicode for Vim?

2006-05-01 Thread David Woodfall
On (21:00 01/05/06), David Woodfall <[EMAIL PROTECTED]> put forth the proposition: > On (20:52 01/05/06), David Woodfall <[EMAIL PROTECTED]> put forth the > proposition: > > I've recently changed my locale to en_GB.utf8 because I found some > > characters in some emails viewed in Mutt weren't sho

Re: Unicode for Vim?

2006-05-01 Thread David Woodfall
On (20:52 01/05/06), David Woodfall <[EMAIL PROTECTED]> put forth the proposition: > I've recently changed my locale to en_GB.utf8 because I found some > characters in some emails viewed in Mutt weren't showing correctly (curly > quotes for one so that "I'm" showed as "I???m"'). > > But now I fin

Unicode for Vim?

2006-05-01 Thread David Woodfall
I've recently changed my locale to en_GB.utf8 because I found some characters in some emails viewed in Mutt weren't showing correctly (curly quotes for one so that "I'm" showed as "I???m"'). But now I find some characters aren't correctly made in vim eg pound signs are wrong. Since I use vim as ed

70f - Scroll wheel scrolls wrong window

2006-05-01 Thread David Fishburn
Though I cannot reproduce it, this has been happening to me throughout the betas. 70f WinXP SP2 I have the Taglist window open (though I don't believe it is related). So my window is split vertically. My cursor is in normal mode in the right hand pane. If I scroll the mouse wheel, the window in

Re: hiding lines

2006-05-01 Thread Yakov Lerner
On 5/1/06, Bill Pursell <[EMAIL PROTECTED]> wrote: Is it possible to completely hide lines? Something stronger than merely folding. In particular, I'd like to be able to display the buffer with all lines containing "assert" hidden, or to hide lines between and including #ifdef/#endif pairs. C

hiding lines

2006-05-01 Thread Bill Pursell
Is it possible to completely hide lines? Something stronger than merely folding. In particular, I'd like to be able to display the buffer with all lines containing "assert" hidden, or to hide lines between and including #ifdef/#endif pairs. Can that be done?

Re: keybindings

2006-05-01 Thread Gerald Lai
On Sun, 30 Apr 2006, Anton wrote: On Sun, Apr 30, 2006 at 14:33 +0300, Yakov Lerner wrote: For me, In virtual terminal on Linux, Ctrl-F1 sends same sequence as F1. Accordingly, vim responds to Ctrl-F1 as if I pressed F1. Yakov I think the problem is really caused by this. But the binding :m

Re: issues with taglist and minibuffer explorer

2006-05-01 Thread Gerald Lai
On Mon, 1 May 2006, James Vega wrote: On Mon, May 01, 2006 at 06:45:24PM +0530, jagpreet wrote: [snip] Furthermore if I close(:q), either of the files and switch to another file by selecting it from the buffer window it opens the files in black and white("vi ") mode, like syntax off commend is

Re: mouse selected text on winxp

2006-05-01 Thread Gerald Lai
On Mon, 1 May 2006, oystercatcher wrote: Greetings, Sorry if this is an obvious one but I searched using a variety of arguments and nothing was too clear. I also looked at _gvimrc and changed the line highlight Normal guibg=white # from gray80 which made it much easier to see the select

Re: highlighting tabbed text

2006-05-01 Thread Gerald Lai
On Mon, 1 May 2006, Michael Naumann wrote: On Monday 01 May 2006 07:04, Gerald Lai wrote: On Mon, 1 May 2006, Michael Naumann wrote: Is there a way to highlight a sequence of non-tabs followed by a sequence of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? For example in the

Re: mouse selected text on winxp

2006-05-01 Thread Yakov Lerner
On 5/1/06, oystercatcher <[EMAIL PROTECTED]> wrote: Sorry if this is an obvious one but I searched using a variety of arguments and nothing was too clear. I also looked at _gvimrc and changed the line highlight Normal guibg=white # from gray80 which made it much easier to see the selected

Re: Tabline function sometimes recalled when highlighting set/changed.

2006-05-01 Thread Eric Arnold
On 5/1/06, Eric Arnold <[EMAIL PROTECTED]> wrote: I think I've found the thing that triggers my problem with TabLineSet.vim where the tabline function get called for every keystroke: I reset the highlighting in the tabline function. Does it seem reasonable that the highlighting changes are trig

Beware of virus masquerading as email from "[EMAIL PROTECTED]"

2006-05-01 Thread Roy Fulbright
WARNING!! WARNING!! DANGER, WILL ROBINSON!! (with apolgies to "Lost in Space") I just received an email from "[EMAIL PROTECTED]", which is NOT from our beloved author of Vim. Thankfully, my virus scanner caught the virus in the email attachment. Recommend you delete this email immediately, or

Re: issues with taglist and minibuffer explorer

2006-05-01 Thread Eric Arnold
Also, with Vim7, you can use the tabline to get a lot of visual feedback about what buffers are loaded. TabLineSet.vim can list all loaded buffers per tab on on tabline.

Re: [VIM] : issues with taglist and miniBuffer explorer ...Plugins

2006-05-01 Thread Yegappan Lakshmanan
Hello, > > Hi There, > > I'm using two most downloaded vim plugins MiniBufferExplorer(By bindu > wavell) and taglist(By Yegappan Lakshmanan) for working on C++ files. > > When I open a file on a consol window, and use the Taglist plugin it works > absolutely fine as documented. In the same co

Re: Text wrapping / reflowing - two questions.

2006-05-01 Thread Yegappan Lakshmanan
Hi, On 5/1/06, Gary Johnson <[EMAIL PROTECTED]> wrote: > > > > > btw, is there any way I can direct vim to write the output of a query > > > such as ':set' or ':ve' directly to the buffer? That would come in > > > handy when someone asks me for more info as to how my system is > > > configured.

Tabline function sometimes recalled when highlighting set/changed.

2006-05-01 Thread Eric Arnold
I think I've found the thing that triggers my problem with TabLineSet.vim where the tabline function get called for every keystroke: I reset the highlighting in the tabline function. Does it seem reasonable that the highlighting changes are triggering the tabline to re-update (and thus creating

Re: issues with taglist and minibuffer explorer

2006-05-01 Thread Eric Arnold
If you're using Vim7, you might try my WinWalker.vim script. It will allow you to arrange the Taglist window where you want in relation to any other windows, and the "/" find function is more or less a buffer explorer. (I got another version to upload which sorts the buffer list a little bette

RE: Vim version 7.0g BETA has been released

2006-05-01 Thread Gene Kwiecinski
>- Win32: Dropping a shortcut on the Vim icon edited the shortcut instead > of the file it refers to (old problem). Any way to actually edit the shortcut? :D Seriously, I was curious if anyone came across this issue on any 95/98 systems: Highlight the file and simply bang on the return key (if

Re: highlighting tabbed text

2006-05-01 Thread Michael Naumann
On Monday 01 May 2006 15:24, Yakov Lerner wrote: > On 5/1/06, Michael Naumann <[EMAIL PROTECTED]> wrote: > > Is there a way to highlight a sequence of non-tabs followed by a sequence > > of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? > > > > For example in the line > > a\tb\t\tc

mouse selected text on winxp

2006-05-01 Thread oystercatcher
Greetings, Sorry if this is an obvious one but I searched using a variety of arguments and nothing was too clear. I also looked at _gvimrc and changed the line highlight Normal guibg=white # from gray80 which made it much easier to see the selected text. Now I would like to test some ot

Re: issues with taglist and minibuffer explorer

2006-05-01 Thread James Vega
On Mon, May 01, 2006 at 06:45:24PM +0530, jagpreet wrote: > Hi There, > > I'm using two most downloaded vim plugins MiniBufferExplorer(By bindu > wavell) and taglist(By Yegappan Lakshmanan) for working on C++ files. > > When I open a file on a consol window, and use the Taglist plugin it works

Re: :hardcopy E673 in gVim on GTK2

2006-05-01 Thread dax2
On Mon, 1 May 2006 08:39:25 -0400 Benji wrote: > On Sun, Apr 30, 2006 at 09:19:01PM -0400, Steve Hall wrote: > > > > In every beta of gVim I've tried on Linux/GTK2 (through 70g) I get the > > following error with :hardcopy : > > > > E673: Incompatible multi-byte encoding and character set. > >

Re: highlighting tabbed text

2006-05-01 Thread Yakov Lerner
On 5/1/06, Michael Naumann <[EMAIL PROTECTED]> wrote: Is there a way to highlight a sequence of non-tabs followed by a sequence of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? > For example in the line a\tb\t\tc\td I want "a\t" to be color1, "b\t\t" to be color2 and "c\t

issues with taglist and minibuffer explorer

2006-05-01 Thread jagpreet
Hi There, I'm using two most downloaded vim plugins MiniBufferExplorer(By bindu wavell) and taglist(By Yegappan Lakshmanan) for working on C++ files. When I open a file on a consol window, and use the Taglist plugin it works absolutely fine as documented. In the same consol window if I open an

Re: :hardcopy E673 in gVim on GTK2

2006-05-01 Thread Benji Fisher
On Sun, Apr 30, 2006 at 09:19:01PM -0400, Steve Hall wrote: > > In every beta of gVim I've tried on Linux/GTK2 (through 70g) I get the > following error with :hardcopy : > > E673: Incompatible multi-byte encoding and character set. > > This is with utf-8 and latin1. My binary is feature-full,

Re: highlighting tabbed text

2006-05-01 Thread Michael Naumann
On Monday 01 May 2006 07:04, Gerald Lai wrote: > On Mon, 1 May 2006, Michael Naumann wrote: > > > Is there a way to highlight a sequence of non-tabs followed by a sequence > > of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? > > > > For example in the line > > a\tb\t\tc\td > > > >

(no) spell checking in perl here documents?

2006-05-01 Thread Wojciech Pilorz
When spell checking is enabled in a perl source file (*.pl) which contains the following fragment: sub help { print STDERR "some missspelled wordz "; print STDERR <

Re: Text wrapping / reflowing - two questions.

2006-05-01 Thread Eric Arnold
On 5/1/06, Gary Johnson <[EMAIL PROTECTED]> wrote: On 2006-05-01, Eric Arnold <[EMAIL PROTECTED]> wrote: > On 5/1/06, Gary Johnson <[EMAIL PROTECTED]> wrote: > > On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > > > > > btw, is there any way I can direct vim to write the output of a query > > >

Re: Text wrapping / reflowing - two questions.

2006-05-01 Thread Gary Johnson
On 2006-05-01, Eric Arnold <[EMAIL PROTECTED]> wrote: > On 5/1/06, Gary Johnson <[EMAIL PROTECTED]> wrote: > > On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > > > > > btw, is there any way I can direct vim to write the output of a query > > > such as ':set' or ':ve' directly to the buffer? That

Re: Text wrapping / reflowing - two questions.

2006-05-01 Thread Eric Arnold
On 5/1/06, Gary Johnson <[EMAIL PROTECTED]> wrote: On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > btw, is there any way I can direct vim to write the output of a query > such as ':set' or ':ve' directly to the buffer? That would come in > handy when someone asks me for more info as to how m

Re: Text wrapping / reflowing - two questions.

2006-05-01 Thread Eric Arnold
On 5/1/06, cga2000 <[EMAIL PROTECTED]> wrote: Thus spake Eric Arnold on Mon, May 01, 2006 at 12:19:41AM -0600 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 02:38]: > Do you have these set? > > setlocal formatoptions+=bcroqan2t " better without w Actually, you should look at the above opt

Re: Asking vim...

2006-05-01 Thread Yakov Lerner
On 5/1/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: Is there a way for a script to determine, whether a certain key-shortcut is used in any mode ? :he mapcheck() :he hasmapto() Yakov

Re: Text wrapping / reflowing - two questions.

2006-05-01 Thread Gary Johnson
On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > btw, is there any way I can direct vim to write the output of a query > such as ':set' or ':ve' directly to the buffer? That would come in > handy when someone asks me for more info as to how my system is > configured. :help redir Example: