mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
Hi Bram, Attached are the filetype, syntax and ftdetect files for mrxvt config files. Sorry I couldn't make your April 20th deadline ... but maybe you can stick these in Vim-7.1 if they don't make the Vim-7.0 release. Gautam -- BTW, FWIW, IMHO, AFAIK, yes. OTOH, AAMOF, maybe not. YMMV.

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Nikolai Weibull
On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote: Attached are the filetype, syntax and ftdetect files for mrxvt config files. Sorry I couldn't make your April 20th deadline ... but maybe you can stick these in Vim-7.1 if they don't make the Vim-7.0 release. Just a comment on the syntax

Re: Now that we have feedkeys()...

2006-04-27 Thread Bram Moolenaar
Nikolai Weibull wrote: On 4/27/06, Bram Moolenaar [EMAIL PROTECTED] wrote: One could map 'd' to map 'ac' once pressed, but it would be hard to make sure that 'ac' was unbound if the user cancelled the command in any way. Can't you do this with :omap? Considering that something

Re: Bug: closing an inactive gui tab on windows

2006-04-27 Thread sean
On Thu, 27 Apr 2006 09:47:06 +0100 (BST) Georg Dahn [EMAIL PROTECTED] wrote: Hi! There is another strange behavior with gui tabs on Windows. I. First test case 1. Open gVim (gvim -u NONE) 2. Assure, that 'guioptions' contain 'e' (gui tab) 3. Open a new tab with :tabnew and write

Re: Now that we have feedkeys()...

2006-04-27 Thread Nikolai Weibull
On 4/27/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Considering that something bound by :omap should perform a motion, how would you create a motion that needs to describe a region that begins before the cursor and ends after it, like other text objects do? I

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote: On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote: Attached are the filetype, syntax and ftdetect files for mrxvt config files. Sorry I couldn't make your April 20th deadline ... but maybe you can stick these in Vim-7.1 if

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Nikolai Weibull
On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote: On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote: Just a comment on the syntax definition. You could be using :syn-keyword for quite a few of the things that you're currently using :syn-match for. :syn-keyword is clearer and

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
On Thu, Apr 27, 2006 at 09:40:56PM +0200, Nikolai Weibull wrote: On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote: On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote: Just a comment on the syntax definition. You could be using :syn-keyword for quite a few of the things

Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Mikolaj Machowski
Dnia czwartek, 27 kwietnia 2006 21:40, Nikolai Weibull napisał: Hi Nicolai, Hi. I'm curious, why did you spell my name with a 'c'? During the last couple of days, people have called me Nicholas, Niklas, and twice Nicolai. I see a conspiracy forming... Hello Mikolaj, It is popular name

GTK2 and Vim70f

2006-04-27 Thread Steven Klass
Hi all, I have been unsuccessful at building 7.0f with gtk2 support. I build all of the dependancies in a self contained tree, but vim configure is not recognizing the gtk2 trees.. I have attached my build script for reference but no matter what I do I can't seem to get this to look at my new

Re: swapping tab and escape

2006-04-27 Thread Robert Cussons
Hi All, Matt kindly suggested this mapping for the above inoremap m-i tab nnoremap tab esc vnoremap tab escgV inoremap tab esc`^ but how would I add a mapping to make tab work as escape in the command line, also is there any loss of functionality making this mapping, I don't use tab in the

Re: Bugs in feedkeys(): doesn't work with silent and vim went into a loop

2006-04-27 Thread Yakov Lerner
On 4/27/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I am trying to use feedkeys() to give input to a Vim command that is expecting input from the user, and it works if the command is not executed using :silent prefix. Here is an example (executed on JDK 1.4.2 source): :ta Integer tag 1

Re: vimgrep slow?

2006-04-27 Thread Bram Moolenaar
Eric Arnold wrote: That will probably do for now. Thanks. However, having a flag would be a good thing, since it would allow future modifications to vimgrep to be encapsulated in the flag. Meaning, in the future, :vimgrep /pattern/fast would not necessarily be synonymous with

RE: Balloons

2006-04-27 Thread Suresh Govindachar
Earlier, I asked: Some questions on balloons: 1) In response to an user-event (say, a right click) can a message be shown in a balloon? 2) And if this is possible, would it be faster than, say, splitting to make a new buffer and showing the message there?

autochdir doesnt work right

2006-04-27 Thread Eric Crahen
I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I specify a file on the command line. The buffer for the file I specify is open, but the cwd is right where I started vim. I have to :bn|:bp to get the

Re: autochdir doesnt work right

2006-04-27 Thread Benji Fisher
On Thu, Apr 27, 2006 at 09:44:04AM -0700, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I specify a file on the command line. The buffer for the file I specify is open, but the

Re: autochdir doesnt work right

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I specify a file on the command line. The buffer for the file I specify is open, but the cwd is right where I

Svn and patches

2006-04-27 Thread Suresh Govindachar
Hello, Does the stuff downloaded from svn include all the latest patches? I suspect it does since the version from yesterday's download says 7.0f02. If so, how latest? Meaning, I suppose Bram commits before sending notice of the patch to the mailing list -- how much after

Re: Insert Visual mode

2006-04-27 Thread Benji Fisher
On Thu, Apr 27, 2006 at 11:32:59AM -0700, Gerald Lai wrote: Yes, this may not be a legal way to change modes, but I believe (but have not confirmed) many existing scripts rely on C-r= to evaluate functions that do change modes in some way. If this is true, this is one bug that is relied on

Re: Bugs in feedkeys(): doesn't work with silent and vim went into a loop

2006-04-27 Thread Bram Moolenaar
Hari Kirshna Dara wrote: I am trying to use feedkeys() to give input to a Vim command that is expecting input from the user, and it works if the command is not executed using :silent prefix. Here is an example (executed on JDK 1.4.2 source): :ta Integer tag 1 of 11 or more

Re: Svn and patches

2006-04-27 Thread Bram Moolenaar
Suresh Govindachar wrote: Does the stuff downloaded from svn include all the latest patches? I suspect it does since the version from yesterday's download says 7.0f02. If so, how latest? Meaning, I suppose Bram commits before sending notice of the patch to the mailing

Re: autochdir doesnt work right

2006-04-27 Thread Gerald Lai
On 4/27/06, Eric Crahen [EMAIL PROTECTED] wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On Thu, 27 Apr 2006, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to get the cwd switched to that of the file that is open. None of them ever work when I

Re: autochdir doesnt work right

2006-04-27 Thread Eric Crahen
When I open files from within vim its not a problem. Its the files that are opened from the command line, a method I use every day. On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On 4/27/06, Eric Crahen [EMAIL PROTECTED] wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On Thu, 27

Re: autochdir doesnt work right

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Eric Crahen wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On 4/27/06, Eric Crahen [EMAIL PROTECTED] wrote: On 4/27/06, Gerald Lai [EMAIL PROTECTED] wrote: On Thu, 27 Apr 2006, Eric Crahen wrote: I've tried all variation of BufEnter and autchdir commands to

Conditional search and replace.

2006-04-27 Thread Kurtis.Walker
I would like to write a search and replace that only operates on lines that are found in a separate search.  So, for example, lets say I want to replace all occurrences of long with int but only on lines that have the word key on them.  I could probably write out a script to do this, but I'm

Re: Conditional search and replace.

2006-04-27 Thread Tim Chase
I would like to write a search and replace that only operates on lines that are found in a separate search. So, for example, lets say I want to replace all occurrences of long with int but only on lines that have the word key on them. :g/key/s/long/int/g That's :g/ on every line that

RE: File - register

2006-04-27 Thread Suresh Govindachar
[slightly redone version of previous post] Hello, What's the best way to get the contents of a file into a register? The following works (file is foo.bat) but is there a better way? :new|r foo.bat|1d|exec 'normal ayG'|q! Thanks, --Suresh

Re: File - register

2006-04-27 Thread Tim Chase
:new|r foo.bat|1d|normal ayG|q! So why does the q! get lost, Well, the :normal command swallows everything after it, so the pipe cue bang is interpreted as commands to execute in normal mode. You can work around that either by using the exec command: 1d|exec 'normal ayG' | q! or

Re: File - register

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, What's the best way to get the contents of a file into a register? I tried the following (file is foo.bat), but it doesn't get rid of the new buffer: :new|r foo.bat|1d|normal ayG|q! So why does the q! get lost, and is there a

Re: File - register

2006-04-27 Thread Yegappan Lakshmanan
Hi Suresh, On 4/27/06, Suresh Govindachar [EMAIL PROTECTED] wrote: Hello, What's the best way to get the contents of a file into a register? I tried the following (file is foo.bat), but it doesn't get rid of the new buffer: :new|r foo.bat|1d|normal ayG|q! So why does

Re: File - register

2006-04-27 Thread Yegappan Lakshmanan
On 4/27/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi Suresh, On 4/27/06, Suresh Govindachar [EMAIL PROTECTED] wrote: Hello, What's the best way to get the contents of a file into a register? I tried the following (file is foo.bat), but it doesn't get rid of the new

Backslash in maps

2006-04-27 Thread Suresh Govindachar
Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') How would it be fixed? Thanks, --Suresh

Re: swapping tab and escape

2006-04-27 Thread mzyzik
Yes... I, Matt, who recommended the tab mappings, do no advise mapping tab this way for command line because of the lack of completion. However, you can do a ctrl-d for a kind of completion. --Matt On Thu, Apr 27, 2006 at 01:58:53AM -0700, Gerald Lai wrote: On Thu, 27 Apr 2006, Robert Cussons

Re: Backslash in maps

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') How would it be fixed? What do you intend to do with the mapping? First, replace all |

Re: Backslash in maps

2006-04-27 Thread Suresh Govindachar
Gerald Lai sent on Thu, 27 Apr 2006 17:44:05 -0700 (PDT): On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') Note

Re: Backslash in maps

2006-04-27 Thread Gary Johnson
On 2006-04-28, Suresh Govindachar [EMAIL PROTECTED] wrote: Gerald Lai sent on Thu, 27 Apr 2006 17:44:05 -0700 (PDT): On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let

Re: Bugs in feedkeys(): doesn't work with silent and vim went into a loop

2006-04-27 Thread Eric Arnold
On 4/27/06, Bram Moolenaar [EMAIL PROTECTED] wrote: [...] This looks like a bug... Well, here you can see how adding something without know exactly what happens messes up things. feedkeys() sets the typebuf_was_filled flag and that causes the loop. I'll change that. Hopefully this will

Re: vim prison ?

2006-04-27 Thread Eric Arnold
On 4/27/06, Eric Arnold [EMAIL PROTECTED] wrote: On 4/27/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: From: James Vega [EMAIL PROTECTED] Subject: Re: vim prison ? Date: Thu, 27 Apr 2006 23:08:51 -0400 On Fri, Apr 28, 2006 at 04:52:25AM +0200, Meino Christian Cramer wrote:

Quick peak at files

2006-04-27 Thread Suresh Govindachar
Hello, I have summarized my posts today titled Balloons, File - register and Backslash in maps as a vimtip (www.vim.org/tips/tip.php?tip_id=1218) titled Quick peak at files; the tip is also attached below. --Suresh Quick peak at files In an operating system's command-line

Re: Svn and patches

2006-04-27 Thread Edward L. Fox
On 4/28/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Suresh Govindachar wrote: Does the stuff downloaded from svn include all the latest patches? I suspect it does since the version from yesterday's download says 7.0f02. If so, how latest? Meaning, I suppose Bram commits