Re: vim70f, no hyphen-suggestions, dictionary bug(?)

2006-04-26 Thread Milan Berta
I see. Probably I'd found rare word combinations and the hyphen-suggestion works very good with the best and double internal method. I was used to the Ispell program and its spelling and vocabulary. There were always some suggestion with hyphen which suited the wrong words in right way. There is

vim70f -- number of spell suggestions 'lines' (for some non-English spl)

2006-04-26 Thread Milan Berta
Hello Vim-Dev, In :help 'spellsuggest' these lines are written about the number of the suggestions: 'spellsuggest' 'sps'string (default best) . . {number} The maximum number of suggestions listed for |z=|. Not used for |spellsuggest()|. The number of suggestions is

Re: some problem with vim7f Beta

2006-04-26 Thread Martin Stubenschrott
On Wed, Apr 26, 2006 at 10:35:30AM +0800, Linsong wrote: My main point is: I don't want to select entry in the completion menu by pressing CTRL-N or CTRL-P, instead, I want to input enough characters to make correct entry become the first entry and it is highlighted, then I can use

Re: some problem with vim7f Beta

2006-04-26 Thread Linsong
Martin Stubenschrott wrote: On Wed, Apr 26, 2006 at 10:35:30AM +0800, Linsong wrote: My main point is: I don't want to select entry in the completion menu by pressing CTRL-N or CTRL-P, instead, I want to input enough characters to make correct entry become the first entry and it is

Re: vim70f -- number of spell suggestions 'lines' (for some non-English spl)

2006-04-26 Thread Bram Moolenaar
Milan Berta wrote: In :help 'spellsuggest' these lines are written about the number of the suggestions: 'spellsuggest' 'sps' string (default best) . . {number} The maximum number of suggestions listed for |z=|. Not used for |spellsuggest()|. The number of

Re: some problem with vim7f Beta

2006-04-26 Thread Bram Moolenaar
Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do CTRL-N CTRL-P to get the first entry. I use the

Re: some problem with vim7f Beta

2006-04-26 Thread Ilya
Linsong wrote: Martin Stubenschrott wrote: But I am still not very clear why the first entry in the menu is not highlighted? Is it not reasonable? I don't get any point that highlighting the first entry will make the behavior unreasonable. I think there shoud be an very good reason and I

Now that we have feedkeys()...

2006-04-26 Thread Nikolai Weibull
a readkeys() can't be far behind. Having a readkey() - singular probably makes more sense - function would allow us (i.e., me) to do something like this: function! s:DeleteComment(inclusive) Delete a language-specific comment : : endfunction function! s:Delete() let key = readkey()

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

2006-04-26 Thread Bram Moolenaar
Nikolai Weibull wrote: a readkeys() can't be far behind. Having a readkey() - singular probably makes more sense - function would allow us (i.e., me) to do something like this: We already have getchar(), that basically does this. function! s:DeleteComment(inclusive) Delete a

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

2006-04-26 Thread Nikolai Weibull
On 4/26/06, Aaron Griffin [EMAIL PROTECTED] wrote: On 4/26/06, Nikolai Weibull [EMAIL PROTECTED] wrote: That is, the input sequence dac would delete a comment. Entering something else would just be fed to Vim as always. Couldn't you use :omap for something like that? (I hope it's OK that

Re: some problem with vim7f Beta

2006-04-26 Thread Linsong
Bram Moolenaar wrote: Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do CTRL-N CTRL-P to get the first entry.

Symbolic links to Vim plugins not working for Cygwin

2006-04-26 Thread Eric Arnold
I can't get Vim to read any symbolically linked plugins during startup. I notice that when Vim starts, I can edit the linked file, but Vim has modified the file name as Myfile.vim.lnk. My helpgrepping through the doc.s only picked up options regarding backup/swap etc.

Re: Symbolic links to Vim plugins not working for Cygwin

2006-04-26 Thread Yakov Lerner
On 4/26/06, Eric Arnold [EMAIL PROTECTED] wrote: I can't get Vim to read any symbolically linked plugins during startup. I notice that when Vim starts, I can edit the linked file, but Vim has modified the file name as Myfile.vim.lnk. Windows shortcuts are different things than cygwin

Re: some problem with vim7f Beta

2006-04-26 Thread Linsong
Georg Dahn wrote: This behavior of C-N and C-P is not new, it was the same befor, too, not only in Vim 7. It is not wise to change it and BTW, it is a good behavior for most people. My main point is: I don't want to select entry in the completion menu by pressing CTRL-N or CTRL-P, instead, I

Re: Symbolic links to Vim plugins not working for Cygwin

2006-04-26 Thread Thomas
Windows shortcuts are different things than cygwin symlinks. There is an option though to make cygwin symlinks be windows shortcuts but these need some attribute (R I think) to be set. I don't know if this help in this situation though. Thomas.

RE: Could find where the error is coming from

2006-04-26 Thread SHANKAR R-R66203
Thanks Gerald and Eric, I now greped for browsefilter. I could get hold of it in verilog.vim inside ftplugin dir I removed the b:browsefilter from the unlet portion, the error is not coming now. Thanks a lot guys Shankar -Original Message- From: Gerald Lai [mailto:[EMAIL PROTECTED]

Re: some problem with vim7f Beta

2006-04-26 Thread Bram Moolenaar
Vincent Linsong wrote: This behavior of C-N and C-P is not new, it was the same befor, too, not only in Vim 7. It is not wise to change it and BTW, it is a good behavior for most people. My main point is: I don't want to select entry in the completion menu by pressing CTRL-N or

Re: some problem with vim7f Beta

2006-04-26 Thread Bram Moolenaar
Vincent Linsong wrote: This is by design. Some people mentioned that when using the longest common string the first entry should not be selected. Now you can use CTRL-N to select the first entry. Previously you would need to do CTRL-N CTRL-P to get the first entry. I use the

Re: Highlight matched string under cursor

2006-04-26 Thread Benji Fisher
On Tue, Apr 25, 2006 at 10:38:08PM -0700, Gerald Lai wrote: On Tue, 25 Apr 2006, Salman Khilji wrote: [snip] What I am looking for is that when I hit the 'n' key, VIM should move the cursor to the next match AND highlight it as well using, for example, the 'Search', or 'IncSearch', or the

Re: How can I detect the OS?

2006-04-26 Thread James Vega
On Wed, Apr 26, 2006 at 02:34:02PM +0300, Eddy Petrişor wrote: Hello, Is there a way to detect the OS on which Vim is running? You can use has() and the list of features under :help feature-list to determine what type of Vim (and therefore under which OS is running). if has('win32')

Re: Insert Visual mode

2006-04-26 Thread Benji Fisher
On Wed, Apr 26, 2006 at 02:00:07AM -0600, Eric Arnold wrote: On 4/26/06, Gerald Lai [EMAIL PROTECTED] wrote: Yes, I have seen it, and can reproduce it. I never thought I could find a simple test case to illustrate it until now: fun! InsVis() exe normal! \C-wwv BTW, I don't

Re: Distinguishing Maxima (computer algebra) scripts from assembler files

2006-04-26 Thread François Pinard
On Sat, Apr 22, 2006 at 01:10:56PM -0600, Robert Dodier wrote: I have created a syntax colorization file for scripts written for the Maxima computer algebra system (http://maxima.sf.net). [...] PS. Here is the syntax file I created: http://maxima.sourceforge.net/misc/maxima.vim Wow, good

Re: line,col regex works with match not syn match..

2006-04-26 Thread Benji Fisher
On Tue, Apr 25, 2006 at 11:00:37PM -0600, Eric Arnold wrote: On 4/25/06, Benji Fisher [EMAIL PROTECTED] wrote: I think the problem is that \%5l is a zero-width pattern. I do not know whether the docs say this, or if it is supposed to work this way, but perhaps the point is that

Re: Ruby + Vim

2006-04-26 Thread Doug Kearns
On Thu, Apr 20, 2006 at 07:59:31PM +0200, Meino Christian Cramer wrote: snip It is the same version I got from their homepage and a even newer version of the cvs snapshot is included in the vim-6.4 distro. No significant changes occurred between the last release of vim-ruby and the release

Re: How can I detect the OS?

2006-04-26 Thread Frank Terbeck
Eddy Petri??or [EMAIL PROTECTED]: Is there a way to detect the OS on which Vim is running? Hello Eddy, take a look at :help feature-list There are features like amiga, beos, unix and others, which correspond to the currently running version of vim. Regards, Frank

RE: Making * search for strings

2006-04-26 Thread Halim, Salman
I use the extreme version: vnoremap silent * yy:let @/='\(' . substitute( escape( @y, '$*^[]~\/.' ), '\_s\+', '\\_s\\+', 'g' ) . '\)'cr:set hlscr This escapes a lot of stuff, including replacing any whitespace with a generic expression that includes newlines. I like it because if you highlight

Re: Start new line from insert mode

2006-04-26 Thread Tim Chase
I am in the middle of line in insert mode and want to break out of the line and start a new line (above or below) What I want is effectively ESCo or ESCO But does Vim7 have a native command for this? I cant imagine such a command being added in Vim7 in some sort of native fashion, given

Re: C++ omnicomplete modification.

2006-04-26 Thread Neil Bird
Around about 25/04/06 17:11, Bram Moolenaar typed ... Perhaps someone wants to make a cpp completion script? I rather not add all kinds of C++ stuff to the C completion, it will get messy. How many more additions would be needed? Any ideas, anyone? -- [EMAIL PROTECTED] ~]# rm -f

Re: Insert Visual mode

2006-04-26 Thread Bram Moolenaar
Benji Fisher wrote: On Wed, Apr 26, 2006 at 02:00:07AM -0600, Eric Arnold wrote: On 4/26/06, Gerald Lai [EMAIL PROTECTED] wrote: Yes, I have seen it, and can reproduce it. I never thought I could find a simple test case to illustrate it until now: fun! InsVis() exe

Re: describe-bindings in VIM ?

2006-04-26 Thread Charles E Campbell Jr
Meino Christian Cramer wrote: No, I didn't mean map or command. Think of an vim started without .vimrc loaded. I am looking for a command, function or whatever, which lists something like this (I dont look for a text file, which lists those keys and functions) : Key Function

Re: Start new line from insert mode

2006-04-26 Thread Daniel Einspanjer
Daniel Einspanjer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim, there is also the :norm command.. :norm of Err.. that should be :norm o My spell checker thought it knew better than me. :)

RE: Vim70f crash - omnicompletion

2006-04-26 Thread David Fishburn
-Original Message- From: Benji Fisher [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 12:48 PM To: vim@vim.org Subject: Re: Vim70f crash - omnicompletion On Wed, Apr 26, 2006 at 11:18:35AM -0400, David Fishburn wrote: I am using vim70f on WinXP SP2.

Feedkeys() function is not highlighted

2006-04-26 Thread David Fishburn
Simple bug report. When editing a .vim file and using the new feedkeys() function with vim70f, the syntax highlighter flags it as an error. Looks like it hasn't been added to the list of known functions yet. call feedkeys(\C-X\C-O) Dave

Re: vimgrep slow?

2006-04-26 Thread Eric Arnold
I'm using win32 gvim70f. If I use the externan Cygwin grep grep -i -r vimgrep . it returns the results in under a second. :vimgrep vimgrep ** takes about 20 seconds. On 4/26/06, Benji Fisher [EMAIL PROTECTED] wrote: On Sun, Apr 23, 2006 at 10:03:26AM -0600, Eric Arnold wrote: Am I doing

Bug in i_^X

2006-04-26 Thread Hari Krishna Dara
In Vim 6.3, hitting ^X in insert mode when the cursor is on the number: 08) produced: 03778) This is a bug which seems to be fixed in Vim 7.0f, but it doesn't work right, as it now produces: 7) instead of: 07) If the string is say, 07) both versions correctly produce, 06) --

Re: Bug in i_^X

2006-04-26 Thread Gerald Lai
On Wed, 26 Apr 2006, Hari Krishna Dara wrote: In Vim 6.3, hitting ^X in insert mode when the cursor is on the number: 08) produced: 03778) This is a bug which seems to be fixed in Vim 7.0f, but it doesn't work right, as it now produces: 7) instead of: 07) If the string is say,

Re: Insert Visual mode

2006-04-26 Thread Gerald Lai
On Wed, 26 Apr 2006, Benji Fisher wrote: On Wed, Apr 26, 2006 at 05:17:01PM +0200, Bram Moolenaar wrote: Benji Fisher wrote: This mode seems to be similar to Insert mode, but Esc takes me to Visual mode instead of Normal mode. AFAICT this is undocumented. This is a really weird mode,

Re: Vim GUI repositioning itself - Windows / extended monitors

2006-04-26 Thread Daniel Einspanjer
David Fishburn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This seems to be a new behaviour / annoyance of Vim7. :set columns+=30 At this point, Vim will reposition itself to be in the main screens area, so it will move from 1 monitor to the other. I then have to drag it back

Re: others like startinsert for Vim7?

2006-04-26 Thread Charles E Campbell Jr
Eric Arnold wrote: It occured to me that it would be nice to have startsearch (forward/back) startex(begin :ex mode) etc. since there doesn't seem to be (?) any way to start modes other than insert from Vim scripts. Well, there's startreplace ! Regards, Chip Campbell

RE: Making * search for strings

2006-04-26 Thread Halim, Salman
I use the extreme version: vnoremap silent * yy:let @/='\(' . substitute( escape( @y, '$*^[]~\/.' ), '\_s\+', '\\_s\\+', 'g' ) . '\)'cr:set hlscr This escapes a lot of stuff, including replacing any whitespace with a generic expression that includes newlines. I like it because

Re: Feedkeys() function is not highlighted

2006-04-26 Thread Bram Moolenaar
David Fishburn wrote: Simple bug report. When editing a .vim file and using the new feedkeys() function with vim70f, the syntax highlighter flags it as an error. Looks like it hasn't been added to the list of known functions yet. call feedkeys(\C-X\C-O) The Vim highlighting always lags

RE: Making * search for strings

2006-04-26 Thread David Fishburn
-Original Message- From: Suresh Govindachar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 1:00 AM To: vim@vim.org Subject: Making * search for strings Hello, By default, * searches for words: /\stuff_below_cursor\ but I would like it to search for

RE: Making * search for strings

2006-04-26 Thread Gerald Lai
On Wed, 26 Apr 2006, Halim, Salman wrote: I use the extreme version: vnoremap silent * yy:let @/='\(' . substitute( escape( @y, '$*^[]~\/.' ), '\_s\+', '\\_s\\+', 'g' ) . '\)'cr:set hlscr This escapes a lot of stuff, including replacing any whitespace with a generic expression that includes

Re: Insert Visual mode

2006-04-26 Thread Bram Moolenaar
Gerald Lai wrote: On Wed, 26 Apr 2006, Benji Fisher wrote: On Wed, Apr 26, 2006 at 05:17:01PM +0200, Bram Moolenaar wrote: Benji Fisher wrote: This mode seems to be similar to Insert mode, but Esc takes me to Visual mode instead of Normal mode. AFAICT this is undocumented.