Re: Documentation bug about matchparen

2006-06-14 Thread Bram Moolenaar
Tony Mechelynck wrote: *pi_paren.txt* For Vim version 7.0. Last change: 2006 Apr 24 line 46 (i.e. 5th from bottom) there is 'synmaxcolumn' there should be 'synmaxcol' Thanks for the fix. -- % cat /usr/include/sys/errno.h #define EPERM 1 /* Operation not permitted

thesaurus

2006-06-14 Thread Jakson A. Aquino
Hello! I would like to bring back a suggestion that was made in this list in at least two occasions: Ron Yorgason, Oct 8, 2001 http://groups.yahoo.com/group/vimdev/message/25618 Bill McCarthy, Jun 27, 2005 http://groups.yahoo.com/group/vimdev/message/40004 The suggestion is that

Re: reltime() low part incorrect in win32?

2006-06-14 Thread Eric Arnold
What should be returned by the reltime() call? If Vim script only handles int types, the values returned are apparently inconsisent. Am I missing something, or is reltime() on windows currently useful only for short delta times? I'm considering making a patch that will roll the amount of the

Re: reltime() low part incorrect in win32?

2006-06-14 Thread Bram Moolenaar
Eric Arnold wrote: What should be returned by the reltime() call? If Vim script only handles int types, the values returned are apparently inconsisent. Am I missing something, or is reltime() on windows currently useful only for short delta times? reltime() returns a list to be able to

Re: Error detected while processing function SNR1_BMShow

2006-06-14 Thread Mathias Michaelis
Hi Tony Since I can confirm that behaviour of gvim, I am the user :-) I believe that nobody knows the Vim manual better than you, but [...] If someone knows the Vim docs better than anyone, I bet it's Bram Moolenaar. (Flatter not thy brother, it is treason; should thy brother flatter

Re: A question on langmenu setting

2006-06-14 Thread Wu Yongwei
On 6/14/06, Ge [EMAIL PROTECTED] wrote: I follow its direction, add this script to _vimrc: if has(gui_win32) NT Windows try language messages en finally set langmenu=none endtry endif Now the menu in Vim is not in English, what's

Re: Vim7 auto-downloading spell dictionary

2006-06-14 Thread Andrei A. Voropaev
On Wed, Jun 14, 2006 at 10:37:45AM +0200, Bram Moolenaar wrote: Steve Hall wrote: Does the vim7 automatic downloading of a new spellcheck dictionary work as advertised in :help spellfile.vim? The command in help is: autocmd SpellFileMissing * call

Re: Vim7 auto-downloading spell dictionary

2006-06-14 Thread Bram Moolenaar
Andrei A. Voropaev wrote: On Wed, Jun 14, 2006 at 10:37:45AM +0200, Bram Moolenaar wrote: Steve Hall wrote: Does the vim7 automatic downloading of a new spellcheck dictionary work as advertised in :help spellfile.vim? The command in help is: autocmd SpellFileMissing *

vim 6.3 -- problems with FORTRAN syntax

2006-06-14 Thread vimlist
Hi! (I have vim 6.3.86 on a Linux machine.) I have to edit some FORTRAN 77 files, which have a naming scheme like: cmedt.edt.SOMENAME.f_# where # is a number. I cannot change anything on this naming scheme. So, I put an autocommand in my .vimrc: au BufNewFile,BufRead,BufNew

Highlight macroses in source code

2006-06-14 Thread Agibov Dmitry
Hi, All! In my source code I have some c-like macroses How can I highlight this macroses? It it possible? What I want is file1 header_file.h ... #define MYVAR 1 ... file2 my_source_code.c #include header_file.h ... void somefunc() { int x = MYVAR; ^--- highlight this

Re: Vim7 auto-downloading spell dictionary

2006-06-14 Thread Bram Moolenaar
Andrei Voropaev wrote: On Wed, Jun 14, 2006 at 12:19:11PM +0200, Bram Moolenaar wrote: Andrei A. Voropaev wrote: Looks like on my system something is not configured properly. At least when I tried to do spell check for russian, vim told me that I don't have the dictionary, but it

Re: How to use customized function in statusline?

2006-06-14 Thread A.J.Mechelynck
Edward L. Fox wrote: Hi VIMmers, According to the user manual :h statusline, we should be able to evaluate a customized function to generate the statusline text: 8 When the option starts with %! then it is used as an expression, evaluated and the

Re: Vim7 auto-downloading spell dictionary

2006-06-14 Thread Andrei A. Voropaev
On Wed, Jun 14, 2006 at 03:28:56PM +0200, Bram Moolenaar wrote: Andrei Voropaev wrote: The document I'm trying to check is an HTML file, so maybe the the html coding somehow prevents spell checking? Actually I've just tried it. If I use spellcheck in a_file.txt, then it works. When I try it

Vim 7 Syntax problems?

2006-06-14 Thread Jack Donohue
Just started using vim 7 (I know, I'm a late adopter), and mostly I like it, but I've noticed a couple of quirks. One is that it seems to lose syntax context when switching windows. I will have a perl source file open, everything looks fine. Then I switch to another window (actual Window

Re: nmap, scripts and UTF-8

2006-06-14 Thread A.J.Mechelynck
Jan Weytjens wrote: I use a Belgian azerty keyboard and use nmap in _vimrc (vim 7.0 on Windows 2000) to map the ² and µ keys to ~ (² is more or less in the same place on the keyboard as the tilde on an american qwerty and one can think of µ as standing for Majuscule). These mappings don't

Re: How to use customized function in statusline?

2006-06-14 Thread Gregory Margo
On Wed, Jun 14, 2006 at 05:20:50PM +0800, Edward L. Fox wrote: Hi VIMmers, According to the user manual :h statusline, we should be able to evaluate a customized function to generate the statusline text: 8 When the option starts with %! then it

Re: vim 6.3 -- problems with FORTRAN syntax

2006-06-14 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi! (I have vim 6.3.86 on a Linux machine.) I have to edit some FORTRAN 77 files, which have a naming scheme like: cmedt.edt.SOMENAME.f_# where # is a number. I cannot change anything on this naming scheme. So, I put an autocommand in my .vimrc: au

RE: omni completion, calling different types

2006-06-14 Thread David Fishburn
-Original Message- From: Silent1 [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 1:39 PM To: vim@vim.org Subject: omni completion, calling different types I'm using the omni completion so far on my php scripts and i'm wondering if there are ways i can call different

Re: URL-Encoding

2006-06-14 Thread Thomas
Johannes Schwarz wrote: Is there a builtin url-encoding function available in vim? Or has s.o. wrote a script already? Do you mean something like this (based on code from eval.txt): fun! EncodeChar(char) if a:char == '%' return '%%' elseif a:char == ' ' return '+'

Working with windows line endings

2006-06-14 Thread Stephen Boulet
Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Thanks. _ Stephen If your desktop gets out of control easily, you probably have too much stuff on it that doesn't need to be there. Donna Smallin,

Re: Working with windows line endings

2006-06-14 Thread Tim Chase
Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. If you get files from your coworkers, they should be in CR/LF format, and Vim should recognize these. If

Re: Working with windows line endings

2006-06-14 Thread Stephen Boulet
On Wed, 14 Jun 2006 11:50:32 -0500, Tim Chase wrote Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. Thanks for the information. When I open a file with

Re: Working with windows line endings

2006-06-14 Thread A.J.Mechelynck
Tim Chase wrote: Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. If you get files from your coworkers, they should be in CR/LF format, and Vim should

Re: Working with windows line endings

2006-06-14 Thread Stephen Boulet
On Wed, 14 Jun 2006 19:04:33 +0200, A.J.Mechelynck wrote [snip] In addition, if your 'fileformats' option (with s) includes dos, Vim will automagically recognise Dos-like ends-of-file when reading and remember them when saving. See :help 'fileformats' :help file-formats Best

Re: Working with windows line endings

2006-06-14 Thread Tim Chase
I have set fileformats=unix,dos at the bottom of my _vimrc, but still see the ^M's. My guess is that the file in question has one line that lacks a ^M in the line, and thus, it vim concludes that it must use unix-style line-endings. The likely culprit is the last line in the file. You can

Re: Working with windows line endings

2006-06-14 Thread Stephen Boulet
On Wed, 14 Jun 2006 12:46:38 -0500, Tim Chase wrote I have set fileformats=unix,dos at the bottom of my _vimrc, but still see the ^M's. My guess is that the file in question has one line that lacks a ^M in the line, and thus, it vim concludes that it must use unix-style line-endings.

Re: omni completion, calling different types

2006-06-14 Thread Mikolaj Machowski
Dnia środa, 14 czerwca 2006 17:37, David Fishburn napisał: It is triggered (while in insert mode) using C-C followed by a key. The key is what allows you to filter what is displayed in popup window. The key can be many things: t - table list p - procedure list v - view

problem when open a file with vim

2006-06-14 Thread Michael Zhang
Hi : I don't know since when this happens. Now every time I open a file with vim, I get this error. E576: viminfo: Missing '' in line: 5\awr_hang_state\masterdb1_ora_4834.trc E576: viminfo: Missing '' in line: ^I^I71990^I10 This file does not exist on my pc any more, but I open any file it

Re: problem when open a file with vim

2006-06-14 Thread Tim Chase
I don't know since when this happens. Now every time I open a file with vim, I get this error. E576: viminfo: Missing '' in line: 5\awr_hang_state\masterdb1_ora_4834.trc E576: viminfo: Missing '' in line: ^I^I71990^I10 This file does not exist on my pc any more, but I open any file it

RE: problem when open a file with vim

2006-06-14 Thread Michael Zhang
Sorry I'm still pretty new to vim. Do you mean file C:\Program Files\Vim\vim70\syntax\viminfo.vim? This is everything in it: Vim syntax file Language: Vim .viminfo file Maintainer: Bram Moolenaar [EMAIL PROTECTED] Last Change: 2005 Jun 20 Quit when a (custom) syntax file was

Re: problem when open a file with vim

2006-06-14 Thread Tim Chase
Sorry I'm still pretty new to vim. Do you mean file C:\Program Files\Vim\vim70\syntax\viminfo.vim? [cut] Maybe I should mention I use vim on windows. Where is viminfo file on windows? That's the syntax-coloring definition for viminfo files, so when you're editing viminfo files, they show up

RE: problem when open a file with vim

2006-06-14 Thread Michael Zhang
Thanks, It's in C:\Documents and Settings\[username]\_viminfo, after I remove this file, the error does not appear any more. Michael. -Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sent: June 14, 2006 3:16 PM To: [EMAIL PROTECTED] Cc: vim@vim.org Subject: Re: problem when

Re: Working with windows line endings

2006-06-14 Thread Gerald Lai
On Wed, 14 Jun 2006, Tim Chase wrote: I have set fileformats=unix,dos at the bottom of my _vimrc, but still see the ^M's. My guess is that the file in question has one line that lacks a ^M in the line, and thus, it vim concludes that it must use unix-style line-endings. The likely culprit

Re: nmap, scripts and UTF-8

2006-06-14 Thread A.J.Mechelynck
Jan Weytjens wrote: Hi Tony, Ah. That's bad. Vim 7.0 on W2K aren't you. What are the answers to: gvim -N -u NONE :set encoding? latin1 :lang cty Current ctype language: C :echo char2nr('²') 178 :echo char2nr('µ') 181 and to gvim :verbose set enc? tenc? encoding =