Re: exists(*Foo!garbage) = 1 ?

2006-04-30 Thread Srinath Avadhanula
Hi Bram, On 4/29/06, Bram Moolenaar [EMAIL PROTECTED] wrote: This happens not just for functions, but variables etc. also. For variables, I can work around this by using has_key(g:, varname) instead of exists('g:'.varname). Right, extra text after the function name was ignored. It's easy

Re: Install Fails on Windows

2006-04-30 Thread Bill McCarthy
On Sat 29-Apr-06 3:49pm -0600, Bram Moolenaar wrote: There are two setups, the Unix one and the MS-Windows one. If you use the Unix setup you need to do make install. Thus uses the files in the ../runtime directory that were unpacked from the Unix tar archive. If you use the MS-Windows

vim70f, ft=vim, syn on -- highlighting of matching parens fails

2006-04-30 Thread Milan Berta
Hello Vim-Dev, I was browsing some Vim-scripts and I found strange that a highlighting of matching parens fails on this line: let l:fg=substitute(l:bcdefg,.*\\C . l:cde . ,\\([^,]\\),.*,\\1,) It fails when the cursor is on - the first, the second of '(' - the first '[' - the last ')' -

Re: exists(*Foo!garbage) = 1 ?

2006-04-30 Thread Bram Moolenaar
Srinath Avadhanula wrote: On 4/29/06, Bram Moolenaar [EMAIL PROTECTED] wrote: This happens not just for functions, but variables etc. also. For variables, I can work around this by using has_key(g:, varname) instead of exists('g:'.varname). Right, extra text after the function

RE: How long does it take for svn to sync with whereever it is the real sources are?

2006-04-30 Thread Suresh Govindachar
Hisashi T Fujinaka was just wondering, since every time Bram announces a new release (7.0g this time) [he gets] itchy. :) A day or so ago, Edward L. Fox wrote on vim@vim.org: | Hi, I'm the subversion repository maintainer. I sync the | subversion repository with the CVS

completeopt: menu|menuone + longest = bug?

2006-04-30 Thread Eric Van Dewoestine
Tested with vim70g Given the following file contents: BlahBlahImpl BlahBlah.Type If I try to perform the following on a new line at the end of the file Blc-xc-n or p.Tc-n or p The resulting text should be BlahBlah.Type However, if my 'completeopt' has menu and longest, or menuone and

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

2006-04-30 Thread Gerald Lai
On Sat, 29 Apr 2006, Tomasz Kalkosi?ski wrote: Hello This is a good idea! I have a couple of suggestions: (1) HiLink txtString Normal The highlight for alphabetic text may be too strong if linked to Identifier. Yes, it is linked to Identifier. The point is that Normal text is

Re: how to use undojoin properly?

2006-04-30 Thread Eric Arnold
On 4/29/06, Eric Arnold [EMAIL PROTECTED] wrote: I put undojoin as the first line in a function which is called by a CursorMoved autocommand. Then when ever the function is called, I get the message: E790: undojoin not allowed after undo I assume this is because there are parts of the

where is vimfiles?

2006-04-30 Thread Akbar
Hi, I want to install this script: http://www.2072productions.com/?to=phpindent.txt install details: Just make sure the name of the file is php.vim and copy it under your vimfiles/indent folder. PHP syntax coloring must be turned on. But where is the vimfiles directory? $ locate vimfiles

keybindings

2006-04-30 Thread Anton
I found such a problem: I can't use key combinations with functional keys, so I can't map something on Ctrl+F9 for example. If I map it on Ctrl+LETTER everything works. In help I found that such a binding should look like :map C-F9 command But if doesn't work. Where is my mistake?

Re: keybindings

2006-04-30 Thread Eric Arnold
This should work, unless your keyboard does not send control-funckey combos. map C-F9 :echo 'hi'cr BTW, in insert mode, if you hit ^v or matbe ^q then any key, it will show you the fornat to use for thar key. On 4/30/06, Anton [EMAIL PROTECTED] wrote: I found such a problem: I can't use key

History and set history=xx

2006-04-30 Thread Meino Christian Cramer
Hi, in the help there is mentioned: Use the 'history' option to set the number of lines that are remembered (default: 20). In my ${HOME}/.vimrc I set history=100 after restarting vim I did :set historyCR output is 20 How can I set the numbers of lines to be remembered

Re: keybindings

2006-04-30 Thread Anton
On Sun, Apr 30, 2006 at 04:13 -0600, Eric Arnold wrote: This should work, unless your keyboard does not send control-funckey combos. map C-F9 :echo 'hi'cr BTW, in insert mode, if you hit ^v or matbe ^q then any key, it will show you the fornat to use for thar key. Yes, ^V really helped.

Re: keybindings

2006-04-30 Thread Yakov Lerner
On 4/30/06, Anton [EMAIL PROTECTED] wrote: I found such a problem: I can't use key combinations with functional keys, so I can't map something on Ctrl+F9 for example. If I map it on Ctrl+LETTER everything works. In help I found that such a binding should look like :map C-F9 command But if

Re: where is vimfiles?

2006-04-30 Thread Yakov Lerner
On 4/30/06, Akbar [EMAIL PROTECTED] wrote: I want to install this script: http://www.2072productions.com/?to=phpindent.txt install details: Just make sure the name of the file is php.vim and copy it under your vimfiles/indent folder. PHP syntax coloring must be turned on. But where is the

Re: keybindings

2006-04-30 Thread Anton
On Sun, Apr 30, 2006 at 14:11 +0300, Yakov Lerner wrote: In x11, it's possible that window manager intercepts Ctrl-FN. For example, my WM (kde) binds Ctrl-Fx to workspace switch. So application doesn't get it. You need to unbind it from WM first. Also depends on configuration of terminal

Re: History and set history=xx

2006-04-30 Thread Meino Christian Cramer
From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: History and set history=xx Date: Sun, 30 Apr 2006 14:14:11 +0300 On 4/30/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: in the help there is mentioned: Use the 'history' option to set the number of lines that are remembered

Re: keybindings

2006-04-30 Thread Yakov Lerner
On 4/30/06, Anton [EMAIL PROTECTED] wrote: On Sun, Apr 30, 2006 at 14:11 +0300, Yakov Lerner wrote: In x11, it's possible that window manager intercepts Ctrl-FN. For example, my WM (kde) binds Ctrl-Fx to workspace switch. So application doesn't get it. You need to unbind it from WM first.

move to the end of the line in insert mode

2006-04-30 Thread shello
Is there any quick way to move to the end of the line in insert mode ? i map a key to do that : inoremap A-a ESC$a But it doesn't work ! Where is my mistake? Thanks in advance.

Re: keybindings

2006-04-30 Thread Anton
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 :map C-FX doesn't work neither

Re: History and set history=xx

2006-04-30 Thread Meino Christian Cramer
From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: History and set history=xx Date: Sun, 30 Apr 2006 14:41:58 +0300 On 4/30/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: From: Yakov Lerner [EMAIL PROTECTED] On 4/30/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: In my

Re: How to customize the default display of Vim?

2006-04-30 Thread Benji Fisher
On Sat, Apr 29, 2006 at 12:11:29PM -0700, Chen Long wrote: Thank you. I tried them. Only the command for colorscheme doesn't work. After I start Vim, I can change the color scheme by typing :colorscheme darkblue But if I put it into .vimrc. It doesn't work. Long It is confusing

Re: History and set history=xx

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 02:16:23PM +0200, Meino Christian Cramer wrote: From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: History and set history=xx Date: Sun, 30 Apr 2006 14:41:58 +0300 How about this. (1) Add this echo 11 history=.history to your .vimrc right after

Re: Runtime error in explorer.exe when right clicking with vim70f gvimext.dll installed

2006-04-30 Thread Daniel Einspanjer
I did try running depends before I posted.. trying to depends profile explorer is quite noisy though. :) It was finding a msvcr80.dll from my SQL 2005 installation. The dll was identical to the one in my MSVC CRT redist directory though. I tried copying the redist file into my system32 path

Re: ` visual selection -- inconsistent?

2006-04-30 Thread Benji Fisher
On Sat, Apr 29, 2006 at 04:11:21PM -0600, Eric Arnold wrote: :set selection=exclusive Use this text: 123456 2abcde 3abcde 4abcde 5abcde Go to line 4, col 2. Hit ^V or (^Q whichever works). Type kkll until you've highlighted abc abc abc Type ESC For me, now

Re: ` visual selection -- inconsistent?

2006-04-30 Thread Eric Arnold
On 4/30/06, Benji Fisher [EMAIL PROTECTED] wrote: On Sat, Apr 29, 2006 at 04:11:21PM -0600, Eric Arnold wrote: :set selection=exclusive Use this text: 123456 2abcde 3abcde 4abcde 5abcde Go to line 4, col 2. Hit ^V or (^Q whichever works). Type kkll until you've

How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Eddy Zhao
At some point, I want to permanently save the buffer with out the possibility of accidentally undo the changes I've made (this happens sometimes). How can I clear the undo stack (without leaving the current buffer). Or any other simpler way of achieving this? Thanks Eddy

Using minibufexpl delete last buffer not take effect !

2006-04-30 Thread Eddy Zhao
I'm using minibufexpl.vim 6.3.2. The configuration like below let g:miniBufExplorerMoreThanOne=0 When I - open only one file - move cursor to minibufexpl - use 'd' to close that file buffer Problem happens - minibufexpl window disappears (which should be persistent on) - the file buffer not

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Eddy Zhao
Great tip and super fast reply ! : ) Thanks Bryce 2006/4/30, Bryce Wagner [EMAIL PROTECTED]: Eddy Zhao wrote: At some point, I want to permanently save the buffer with out the possibility of accidentally undo the changes I've made (this happens sometimes). How can I clear the undo stack

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Yakov Lerner
On 4/30/06, Eddy Zhao [EMAIL PROTECTED] wrote: At some point, I want to permanently save the buffer with out the possibility of accidentally undo the changes I've made (this happens sometimes). How can I clear the undo stack (without leaving the current buffer). Or any other simpler way of

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Eddy Zhao
Yakov I've tried similar way before. It works, but the window flashes when I'm saving (because the buffer switches between dummy and this) which is not very decent. :wCR:eCR works simple and great ! Thanks Eddy 2006/4/30, Yakov Lerner [EMAIL PROTECTED]: On 4/30/06, Eddy Zhao [EMAIL

A vim fan

2006-04-30 Thread Andrea Spadaccini
Hello everybody, I have been using vim for a couple years, and I'll go on using this great piece of software. I've just subscribed to this mailing list in order to learn something new about my favourite editor. Probably I'll only lurk, but I wanted to greet everybody and to thank the developers

Re: ` visual selection -- inconsistent?

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 08:36:14AM -0600, Eric Arnold wrote: On 4/30/06, Benji Fisher [EMAIL PROTECTED] wrote: On Sat, Apr 29, 2006 at 04:11:21PM -0600, Eric Arnold wrote: :set selection=exclusive Use this text: 123456 2abcde 3abcde 4abcde 5abcde Go to line 4,

Re: History and set history=xx

2006-04-30 Thread Meino Christian Cramer
From: Benji Fisher [EMAIL PROTECTED] Subject: Re: History and set history=xx Date: Sun, 30 Apr 2006 12:02:11 -0400 On Sun, Apr 30, 2006 at 05:38:34PM +0200, Meino Christian Cramer wrote: result: set nocompatible sets set history=20 . Why this is implemented

Something's not working here.

2006-04-30 Thread Kyku
Hello, I get a SEGV signal after doing the following in Vim 7.0f05 under Linux (both console and gtk2): 1) start vim 2) :tab help 3) :bd Yours, Kyku

Re: Something's not working here.

2006-04-30 Thread Bram Moolenaar
Kyku wrote: I get a SEGV signal after doing the following in Vim 7.0f05 under Linux (both console and gtk2): 1) start vim 2) :tab help 3) :bd There was a problem in the 7.0f05 version that may cause a crash when closing the current window if it's the last one in a tab page. It will be

Re: History and set history=xx

2006-04-30 Thread Yakov Lerner
On 4/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: :help 'compatible' where (among other things) you can find the warning This is a special kind of option, because when it's set or reset, other options are also changed as a side effect. CAREFUL: Setting or resetting

Re: How to auto-escape space in filename when write

2006-04-30 Thread Yakov Lerner
On 4/30/06, Eddy Zhao [EMAIL PROTECTED] wrote: Very often, when I - snip some notes from web - paste them into an empty buffer - yank the key sentence as filename - then try to :write Vim report E77: Too many file names. How can the spaces in filename be automatically escaped when I save

Re: History and set history=xx

2006-04-30 Thread Yakov Lerner
On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: :help 'compatible' where (among other things) you can find the warning This is a special kind of option, because when it's set or reset,

Re: History and set history=xx

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: :help 'compatible' where (among other things) you can find the warning This is a special kind

Re: How to auto-escape space in filename when write

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Eddy Zhao [EMAIL PROTECTED] wrote: Very often, when I - snip some notes from web - paste them into an empty buffer - yank the key sentence as filename - then try to :write Vim report E77: Too many file names. How can the spaces in

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

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Russell Bateman wrote: Gerald Lai wrote: On Sat, 29 Apr 2006, Tomasz Kalkosi???ski wrote: Hello This is a good idea! I have a couple of suggestions: (1) HiLink txtString Normal The highlight for alphabetic text may be too strong if linked to Identifier. Yes, it is

Re: History and set history=xx

2006-04-30 Thread Yakov Lerner
On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: :help 'compatible' where (among other things) you

Vim version 7.0g BETA has been released

2006-04-30 Thread Bram Moolenaar
Announcing: Vim (Vi IMproved) version 7.0g BETA This is the last BETA release of Vim 7 (hopefully). The last few days there have been too many changes to do a release. This is the last chance to report problems. It would be very disappointing to discover a problem just after sending out

Re: History and set history=xx

2006-04-30 Thread Gary Johnson
On 2006-04-30, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: The 'compatible' option is one that clobbers settings, but for a good reason. It determines whether Vim should work like Vi, or take on the modern Vim capabilities. It's a big switch.

Re: History and set history=xx

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 07:03:03PM +0200, Bram Moolenaar wrote: Benji Fisher wrote: There is a remark about this right at :help 'history'. Yes. Bram: Would it be possible for vim to add a note, something like Last set from ~/.vimrc along with 'nocompatible'

:hardcopy E673 in gVim on GTK2

2006-04-30 Thread Steve Hall
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, it includes everything except: -ebcdic -footer -gettext -hangul_input

Re: History and set history=xx

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Gerald Lai [EMAIL PROTECTED] wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: :help

Re: highlighting tabbed text

2006-04-30 Thread Gerald Lai
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 I want a\t to be color1, b\t\t to be color2 and c\t to be color3

Text wrapping / reflowing - two questions.

2006-04-30 Thread cga2000
When writing email messages I use the following settings: :set wrap :set textwidth=72 Say, I do the following: 1. I enter insert mode 2. I start to type the following introductory text: I am writing this short email message to ask the friendly and highly competent folks at vim@vim.org