Re: mac guitabline v2

2006-06-27 Thread Nicolas Weber
Hi, You probably already know, but when I patched my source and compiled it, I got these warnings: gui.c: In function ‘gui_init_which_components’: gui.c:3229: warning: implicit declaration of function ‘gui_mch_showing_tabline’ gui.c: In function ‘gui_update_tabline’: gui.c:3403: warning:

Re: mac guitabline v2

2006-06-27 Thread A.J.Mechelynck
Nicolas Weber wrote: Hi, You probably already know, but when I patched my source and compiled it, I got these warnings: gui.c: In function ‘gui_init_which_components’: gui.c:3229: warning: implicit declaration of function ‘gui_mch_showing_tabline’ gui.c: In function ‘gui_update_tabline’:

mac guitabline v3

2006-06-27 Thread Nicolas Weber
Hi, this fixes the warnings. Apply with -p0 (NOT -p1). Bye, Nico macguitab.v3.patch.1 Description: Binary data

Re: Matchparen highlight bug

2006-06-27 Thread A.J.Mechelynck
Ilya wrote: gvim –u NONE –U NONE Create file with 100 empty lines, line with {, 20 empty lines and line with }: :exe normal i{\CR}\Esc20O\Escj%100O\Escj% Turn on matchparen plugin: :set nocp :source $VIMRUNTIME/plugin/matchparen.vim Now cursor should be on the }, this line is

vim7 repeats ';' and ',' not working for till 't' and 'T'

2006-06-27 Thread Mike Li
in normal mode, ';' and ',' are not working to repeat the last till commands (i.e. 't' and 'T'), though they do seem to work for find commands (i.e. 'f' and 'F'). i see this for both the win32 vim7 binaries and FC5 builds from vim7 svn source. -x

should :silent be suppressing autocmds?

2006-06-27 Thread Eric Van Dewoestine
Should prepending :silent to a command be suppressing an autocommand? Neither the docs for autocommands nor the docs for :silent indicate this is the intended behavior. For example: using the following the autocommand is executed as expected with the desired output vim -u NONE -c set

Re: should :silent be suppressing autocmds?

2006-06-27 Thread A.J.Mechelynck
Eric Van Dewoestine wrote: Should prepending :silent to a command be suppressing an autocommand? Neither the docs for autocommands nor the docs for :silent indicate this is the intended behavior. For example: using the following the autocommand is executed as expected with the desired output

Re: Change wildmode w/ 'longest' to be behave like completeopt w/ 'longest'

2006-06-27 Thread A.J.Mechelynck
Eric Van Dewoestine wrote: Any thoughts on this? Bram? For the most part I've gotten use to the behavior, but I still occassionaly find my self hitting enter when I see the first entry highlighted, and receive an ambiguous use error because the highlighted entry isn't actually in the command

Re: Change wildmode w/ 'longest' to be behave like completeopt w/ 'longest'

2006-06-27 Thread Eric Van Dewoestine
The default setting, wildmode=full , highlights (if anything) what it actually completes. If you repeatedly hit the right-arrow key, it will cycle through all full matches and what you had typed. See :help 'wildmode' for the various other possibilities. Whatever you see highlighted on the

Re: Windows, 'path', and ~/$HOME

2006-06-27 Thread A.J.Mechelynck
Maciej Kalisiak wrote: I'm under Windows XP, and I'm having a devil of a time trying to set 'path' to a bunch of directories in my home directory. My $HOME (and thus presumably ~) point at c:\Documents and Settings\User\My Documents\Home. Doing something like set path=$HOME/src does not work

Re: How to recognize different matching classes

2006-06-27 Thread Peter Slizik
To check if the cursor is within a comment or string context: synIDattr(synID(line(.), col(.), 1), name) =~? 'comment\|string' Syntax has to be enabled. Thanks, Gerald, this is exactly what I needed. Thanks also to the others, for useful hints. -- Peter

Re: Possible bug in window placement after changing buffers

2006-06-27 Thread Thomas Mellman
--- A.J.Mechelynck [EMAIL PROTECTED] wrote: Thomas Mellman wrote: When moving from buffer to buffer using the :bp and :bn commands, vim normally positions the file and cursor such that the last line visited is presented in the middle of the screen and the cursor is on that line.

Re: How to replace CR with LF

2006-06-27 Thread Kai Weber
* Michael Naumann [EMAIL PROTECTED]: I'm curious though - is there any way to substitute CR with LF using regexp's? Yes there is, strange as it may seem: s/\r/\r/ does it Can somebody enlighten me why this works? Does vim replace wrong \r with corrent \r? Kai -- *

Re: How to replace CR with LF

2006-06-27 Thread Eric Arnold
See Vim tip #1266: http://www.vim.org/tips/tip.php?tip_id=1266 Note that Vim isn't replaced 'wrong' \r with 'correct' \r. It is replacing it with a linebreak, which is then interpreted as a \n for unix and a \r\n for dos by the s/// command. It is just one of many odd cases. On 6/27/06,

Re: Windows, 'path', and ~/$HOME

2006-06-27 Thread Maciej Kalisiak
Thanks for a meaty reply Tony, plenty for me to read up on. Just one minor related issue: what is the convention of handling ~ in Vim under Windows? The problem is that under WinXP, when I use $HOME in Vim, it gets translated to ~ (i.e., the Unix convention for home directory), rather than the

copy highlighted text to a temporary file

2006-06-27 Thread Dimitriy V. Masterov
I am trying to find a way to copy text that I've highlighted with the mouse to a temporary file with a .do extension, so that I might use it in the script below, and then delete it. I am not sure how to proceed from here. Any advice would be greatly appreciated. fun! RunLines() !start

Re: HOWTO: store option settings in a variable

2006-06-27 Thread Jason Aeschilman
Gary Johnson wrote: On 2006-06-27, Jason Aeschilman [EMAIL PROTECTED] wrote: I wanted to save the current setting for an option so I could change that option temporarily then set it back to what it was. Specifically, I'm using the Cfname.vim plugin and it hard sets the statusline option

Re: copy highlighted text to a temporary file

2006-06-27 Thread A.J.Mechelynck
Dimitriy V. Masterov wrote: I am trying to find a way to copy text that I've highlighted with the mouse to a temporary file with a .do extension, so that I might use it in the script below, and then delete it. I am not sure how to proceed from here. Any advice would be greatly appreciated. fun!

Re: copy highlighted text to a temporary file

2006-06-27 Thread A.J.Mechelynck
Dimitriy V. Masterov wrote: Thank you very much for your suggestion. I'm still having trouble yanking the highlighted text instead of the line the cursor was on. I was able to do something like this in jEdit using textArea.getSelectedText(). Is there something analogous for Vim? My jEdit code

Re: Trouble getting the backupskip option to work

2006-06-27 Thread Tom Purl
I believe that this may be a bug. I hope that this is the proper way of opening a new one. I've poured over the documentation and asked the mailing list gods for help, and this basic feature still does not work. Here's the use case: I have tried this on both Windows and Linux. I'm certain

Quickfix/errorformat setting

2006-06-27 Thread Howard Jess
Hi -- [Please excuse me if you've already seen this; I posted this to comp.editors before I found this list.] After reading the docs many times and searching comp.editorsfor help, I admit I'm stumped -- I simply don't know how to set errorformat properly to recognize my messages. Here's what

Re: copy highlighted text to a temporary file

2006-06-27 Thread Benji Fisher
On Tue, Jun 27, 2006 at 03:56:22PM -0400, Dimitriy V. Masterov wrote: Thank you very much for your suggestion. I'm still having trouble yanking the highlighted text instead of the line the cursor was on. I was able to do something like this in jEdit using textArea.getSelectedText(). Is there

Re: Quickfix/errorformat setting

2006-06-27 Thread A.J.Mechelynck
Howard Jess wrote: Hi -- [Please excuse me if you've already seen this; I posted this to comp.editors before I found this list.] After reading the docs many times and searching comp.editorsfor help, I admit I'm stumped -- I simply don't know how to set errorformat properly to recognize my

Re: Trouble getting the backupskip option to work

2006-06-27 Thread A.J.Mechelynck
Bram Moolenaar wrote: Tom Purl wrote: I believe that this may be a bug. I hope that this is the proper way of opening a new one. I've poured over the documentation and asked the mailing list gods for help, and this basic feature still does not work. Here's the use case: I have tried this

Re: Trouble getting the backupskip option to work

2006-06-27 Thread Tom Purl
Environment variables are not expanded for the 'backupskip' option. You must replace $HOME with its expanded value, or use: :let backupskip = expand($HOME) . /gtd/wiki/* ... and in addition, since spaces in directory names in 'backupskip' must be escaped, use :let backupskip =

Re: Man command not working with Vim 7

2006-06-27 Thread Benji Fisher
On Mon, Jun 26, 2006 at 10:56:48PM -0600, Trent Michael Gamblin wrote: Benji Fisher wrote: I think this is important, but I do not understand it completely. When I try $ man cvs | col -b | less or simply $ man cvs | less I get a similar error message, Error executing

Re: copy highlighted text to a temporary file

2006-06-27 Thread Hari Krishna Dara
On Tue, 27 Jun 2006 at 4:51pm, Benji Fisher wrote: On Tue, Jun 27, 2006 at 03:56:22PM -0400, Dimitriy V. Masterov wrote: Thank you very much for your suggestion. I'm still having trouble yanking the highlighted text instead of the line the cursor was on. I was able to do something like

Re: Quickfix/errorformat setting

2006-06-27 Thread A.J.Mechelynck
Howard Jess wrote: A.J.Mechelynck wrote: Howard Jess wrote: Sample output is: Warning [flip.jss:7:10]: type mismatch: conflict between boolean [flip.jss:4:19] and string [flip.jss:7:10] [ and more like that ] which I think means: set errorformat=%[^[][%f:%l:%v]%m

Re: copy highlighted text to a temporary file

2006-06-27 Thread Dimitriy V. Masterov
Many thanks for all your attention. This was awesomely educational. I had to delay the deletion of the file so that Stata would have it to work on. In the end, I wound up with the following script: fun! RunDoLines() let selectedLines = getbufline('%', line('), line(')) if col(')

Going on holiday

2006-06-27 Thread A.J.Mechelynck
Hello all! I'll be away from my computer from 29 June to 13 July inclusive. This time it's intentional (I'll be in the French Pyrenees above Amélie-les-Bains, nearer to the Spanish border than to the nearest neighbour); I'm telling you so you won't be thinking I suddenly fell dead, ha ha. On

paste formatting

2006-06-27 Thread Bill Pursell
Yesterday, a bizarre thing happened that I have not been able to replicate, and I'm hoping someone can tell me a) exactly what I might have done, and b) how to avoid it in the future. I had a mostly empty function definition: void foo(void) { return; } I selected a bunch of code from a

problem in understading 0tag usage

2006-06-27 Thread SHANKAR R-R66203
Hi All, I am using tags heavily. 0tags command seems to not work properly. Let me explain the problem: When I type tags, the following is printed by VIM. # TO tag FROM line in file/text 1 1 mcu_mac7201 1 \Profiles\r66203\_tags\LF\harlech.hier 2 1 core_mac7201