Re[2]: Need help about 3 questions

2006-10-24 Thread Raymond
Hello Bill, I don't use UTL.vim or Total Commander, so I can't help you. However, *.vba are vimballs (kind of like tarballs). All you do is edit one and it tells you what to do - type: :so % That will place the files in the appropriate directories (usually under your vimfiles

Re[2]: Need help about 3 questions

2006-10-24 Thread Raymond
Hello Bill, I don't use UTL.vim or Total Commander, so I can't help you. However, *.vba are vimballs (kind of like tarballs). All you do is edit one and it tells you what to do - type: :so % That will place the files in the appropriate directories (usually under your vimfiles

Re: BUG: mksession saves lcd in incorrect place

2006-10-24 Thread Bram Moolenaar
Marius Roets wrote: I believe I have found a bug in Vim 7.0.146, relating to mksession and lcd. Here is a small example. 1) Open Vim 2) :e file1.txt 3) :tabe temp/file2.txt Any different directory 4) :lcd %:h 5) :mks test.vim 6) Close vim 7) Open vim 8) :source test.vim 9) The second

Re: BUG: mksession saves lcd in incorrect place

2006-10-24 Thread Marius Roets
On 10/24/06, Bram Moolenaar [EMAIL PROTECTED] wrote: I see the problem. I'll fix it. Thanks Bram!

Re: Need help about 3 questions

2006-10-24 Thread A.J.Mechelynck
Raymond wrote: [...] How can I adjust vimrc configuration so tab alignment looks the same both in Vim and in Notepad? Best Regards, Raymond Leave 'tabstop' at its default of 8, since (IIUC) the width of tab stops is not user-settable in Notepad. If you have any files that look different in

Re: BUG: mksession saves lcd in incorrect place

2006-10-24 Thread Marius Roets
On 10/24/06, Bram Moolenaar [EMAIL PROTECTED] wrote: I see the problem. I'll fix it. This works correctly now after applying patch 7.0.147. Thanks again Bram. Marius

Vim function to toggle Ruby block type

2006-10-24 Thread Mark Woodward
Hi everyone, has anyone written a vim function to toggle/convert ruby block types? ie: { |x| puts x } toggled becomes: do |x| puts x end toggled becomes: { |x| puts x } again So if the cursor is within the {} or between the do/end hitting a mapped 'toggle key' will

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty Table of contents it has one drwaback: The copied lines are in

Re[2]: Need help about 3 questions

2006-10-24 Thread Raymond
Hello Tony, How can I adjust vimrc configuration so tab alignment looks the same both in Vim and in Notepad? Leave 'tabstop' at its default of 8, since (IIUC) the width of tab stops is not user-settable in Notepad. If you have any files that look different in Vim and Notepad, use

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread Dave Roberts
Meino Christian Cramer wrote: Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty Table of contents it has one drwaback: The copied lines are in

Re: display underline when searching

2006-10-24 Thread Yakov Lerner
On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi, I just found the new ':set cul' feature, which underlines the current line. Now, I would like to use it just for searching (it seems to slow to use it for general editing), i.e. when I jump to a search result using n|N I want to see

Re: uppercase marks

2006-10-24 Thread Tim Chase
Does vim have uppercase marks ? Yes...though they cross files and are referred to as file marks. You can learn more at :help viminfo-file-marks and at :help :delmarks and skim down to the section: 'a - 'z lowercase marks, valid within one file 'A - 'Z uppercase marks,

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread Benji Fisher
On Tue, Oct 24, 2006 at 08:47:46AM -0400, Dave Roberts wrote: Meino Christian Cramer wrote: Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty

swapfile on 1st change ?

2006-10-24 Thread Yakov Lerner
I have a question. Is it good idea to create swapfile on 1st change in the file, and keep swapfile nonexistant while buffer has no changes ? (Like, immediately after save). I am asking because this can be implemented as plugin, but do you think this mode has uses ? Yakov

Binary files, noeol, and other such things.

2006-10-24 Thread Aaron
Please, oh Vim gurus, explain this binary/noeol situation. It seems to me that if I open a text file in e.g. metapad or Edit Plus or any of these other very simple Windows-based text editors, I am able to delete the final line break, which appears on screen as though there is a zero-length

Re: Binary files, noeol, and other such things.

2006-10-24 Thread A.J.Mechelynck
Aaron wrote: Please, oh Vim gurus, explain this binary/noeol situation. It seems to me that if I open a text file in e.g. metapad or Edit Plus or any of these other very simple Windows-based text editors, I am able to delete the final line break, which appears on screen as though there is a

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Aaron
A.J.Mechelynck wrote: Aaron wrote: Please, oh Vim gurus, explain this binary/noeol situation. It seems to me that if I open a text file in e.g. metapad or Edit Plus or any of these other very simple Windows-based text editors, I am able to delete the final line break, which appears on screen

Re: Vim function to toggle Ruby block type

2006-10-24 Thread Benji Fisher
On Tue, Oct 24, 2006 at 10:29:43PM +1000, Mark Woodward wrote: Hi everyone, has anyone written a vim function to toggle/convert ruby block types? ie: { |x| puts x } toggled becomes: do |x| puts x end toggled becomes: { |x| puts x } again So if

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Bram Moolenaar
Aaron Thebailiwick wrote: Please, oh Vim gurus, explain this binary/noeol situation. It seems to me that if I open a text file in e.g. metapad or Edit Plus or any of these other very simple Windows-based text editors, I am able to delete the final line break, which appears on screen as

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Yakov Lerner
On 10/24/06, Aaron [EMAIL PROTECTED] wrote: If anyone is curious, the reason this came up is because ColdFusion custom tags will print that trailing newline as a space even when you tell it to suppress white space. The only way to avoid it is to save the custom tag file without the final newline

Re: Binary files, noeol, and other such things.

2006-10-24 Thread A.J.Mechelynck
Aaron wrote: A.J.Mechelynck wrote: Aaron wrote: Please, oh Vim gurus, explain this binary/noeol situation. It seems to me that if I open a text file in e.g. metapad or Edit Plus or any of these other very simple Windows-based text editors, I am able to delete the final line break,

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Aaron
Bram Moolenaar wrote: Aaron Thebailiwick wrote: Please, oh Vim gurus, explain this binary/noeol situation. It seems to me that if I open a text file in e.g. metapad or Edit Plus or any of these other very simple Windows-based text editors, I am able to delete the final line break, which

Re: Changing omnicomplete lifetime?

2006-10-24 Thread Mikolaj Machowski
Dnia poniedziałek, 23 października 2006 23:23, Bill Mill napisał: On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia poniedziałek, 23 października 2006 15:18, Bill Mill napisał: How would you recommend getting this to work? Should I try and edit supertab? Is there an easy way to

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Marvin Renich
* Aaron [EMAIL PROTECTED] [061024 12:51]: Then it's no surprise that Windows text editors follow the theoretical and probably broken approach, while the Unix ones do things the way they've always been done. Thanks for weighing in on this one, Bram. Well, I never heard of line separator

Re: Binary files, noeol, and other such things.

2006-10-24 Thread A.J.Mechelynck
Aaron wrote: [...] Here's a thought, though. There is nothing in the file type or filename that will indicate that it is a custom tag, but the file will *always* live in /some/path/custom_tags/myfile.cfm. That's where the CF server will look for custom tags so they have to be there by design.

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Gary Johnson
On 2006-10-24, Aaron [EMAIL PROTECTED] wrote: A.J.Mechelynck wrote: yes, that should work if you're dead set on writing a file without a final EOL. You might even automate it further by defining autocommands: let's say that particular filetype is identified by extension .xyz -- then you

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Aaron
A, A.J.Mechelynck wrote: Aaron wrote: [...] Here's a thought, though. There is nothing in the file type or filename that will indicate that it is a custom tag, but the file will *always* live in /some/path/custom_tags/myfile.cfm. That's where the CF server will look for custom tags so

Re: Binary files, noeol, and other such things.

2006-10-24 Thread Aaron
Aaron wrote: A.J.Mechelynck wrote: Aaron wrote: [...] Here's a thought, though. There is nothing in the file type or filename that will indicate that it is a custom tag, but the file will *always* live in /some/path/custom_tags/myfile.cfm. That's where the CF server will look for

Re: display underline when searching

2006-10-24 Thread Yakov Lerner
On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi, I just found the new ':set cul' feature, which underlines the current line. Now, I would like to use it just for

Re: Binary files, noeol, and other such things.

2006-10-24 Thread A.J.Mechelynck
Marvin Renich wrote: * Aaron [EMAIL PROTECTED] [061024 12:51]: Then it's no surprise that Windows text editors follow the theoretical and probably broken approach, while the Unix ones do things the way they've always been done. Thanks for weighing in on this one, Bram. Well, I never heard

Re: display underline when searching

2006-10-24 Thread Fabian Braennstroem
Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi, I just found the new ':set cul' feature, which underlines the

Re: display underline when searching

2006-10-24 Thread Yakov Lerner
On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi Yakov, * Yakov Lerner [EMAIL PROTECTED] wrote: On 10/24/06, Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi, I

navigate in command line completion

2006-10-24 Thread koxinga
hello, I like to have a menu to navigate through the propositions available when I hit Tab so I love the option wildmenu. However, it would be even better if the navigation was two-dimensional, on several lines, like in zsh when the option zstyle ':completion:*' menu select is set. Is there

Re: navigate in command line completion

2006-10-24 Thread A.J.Mechelynck
koxinga wrote: hello, I like to have a menu to navigate through the propositions available when I hit Tab so I love the option wildmenu. However, it would be even better if the navigation was two-dimensional, on several lines, like in zsh when the option zstyle ':completion:*' menu select is

Problems with Align.vim

2006-10-24 Thread Diwaker Gupta
I'm using Vim 7.0.122 on Debian Unstable. I can send output of :version if needed. I've recently started having problems using Align.vim: Error detected while processing function AlignWrapperStart: line 28: E117: Unknown function: Align#AlignPush I've tried installing the script from both

Re: mksession does not remember window sizes

2006-10-24 Thread Kamaraju Kusumanchi
On Saturday 21 October 2006 01:14, A.J.Mechelynck wrote: Kamaraju Kusumanchi wrote: Using Debian Etch and $vim --version VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 10 2006 00:14:41) Included patches: 1-122 When I do mksession and load the session with gvim -S, the window sizes

jumplist/mark ' problem

2006-10-24 Thread Hari Krishna Dara
I am facing a weird problem with the '' marker not getting set. Here is what I am doing, but this may be more generic than what I do, but this scenario is the most I use: - While on an identifier, use ^W^] to jump to the id definition. - Mark the line, say, ma - move a few lines up using k, say

Anyway to sort scripts by last update date?

2006-10-24 Thread panshizhu
Hi, The vim.sf.net has a script search feature which can sort by Rating, Downloads, Name and Creation date. And can be filtered by type. If we want to see in the specified category which scripts has been updated (or created) recently, the only way seems to choose the creation date and decending

Bold font in OS X GUI?

2006-10-24 Thread Peter Hodge
Hello, I am having trouble with OS X GUI, none of the highlighting is in Bold. Is this a Bug, or does Bold font just not work in the OS X gui? regards, peter On Yahoo!7 Want to make technology work harder for your

Re: escape() and '

2006-10-24 Thread Mikolaj Machowski
Dnia poniedziałek, 23 października 2006 16:25, Nikolai Weibull napisał: On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Hello, I understand that escape() was primarily designed to escape strings when passing to system functions, but personally I never used that and in didn't

Re: escape() and '

2006-10-24 Thread Nikolai Weibull
On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia poniedziałek, 23 października 2006 16:25, Nikolai Weibull napisał: I'll take your word for it that that means that I wrote something at some time or other. There should really be a third, optional, parameter to escape() where

Re: missing setbufline()?

2006-10-24 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 10/23/06, Bram Moolenaar [EMAIL PROTECTED] wrote: You can try the attached patch against the latest Vim7 sources. The syntax of the new function is: setbufline({expr}, {lnum}, {line}) where, {expr} specifies the loaded buffer

Re: unsychronized vimdiff panes

2006-10-24 Thread Bram Moolenaar
Yakov Lerner wrote: On 10/23/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: In vimdiff mode, when you resize xterm vertically, 2 panes become desynchronized, and stay desynchronized until you press an arrow key. The active pane is repositioned according to

Patch 7.0.148

2006-10-24 Thread Bram Moolenaar
Patch 7.0.148 Problem:When doing call a.xyz() and xyz does not exist in dictionary a there is no error message. (Yegappan Lakshmanan) Solution: Add the error message. Files: src/eval.c *** ../vim-7.0.147/src/eval.c Tue Oct 17 15:17:41 2006 --- src/eval.c Tue Oct 24

Patch 7.0.150

2006-10-24 Thread Bram Moolenaar
Patch 7.0.150 Problem:When resizing the Vim window scrollbinding doesn't work. (Yakov Lerner) Solution: Do scrollbinding in set_shellsize(). Files: src/term.c *** ../vim-7.0.149/src/term.c Wed Aug 16 21:42:34 2006 --- src/term.c Tue Oct 24 11:26:33 2006

Re: escape() and '

2006-10-24 Thread Mikolaj Machowski
Dnia wtorek, 24 października 2006 11:10, Nikolai Weibull napisał: Oh, I see. You're thinking of creating a string for passing to substitute() inside an :execute, or something like that. Ah, true, then you'd need to escape the single-quotes for the string, and, e.g., . with \.. Escaping is a

Re: List of encodings and aliases

2006-10-24 Thread Bram Moolenaar
Tony Mechelynck wrote: I fell by chance on http://www.iana.org/assignments/character-sets , the official list of character set names and aliases allowable on the Internet. Only names (with their aliases) are listed there, with bibliographical links to various sources. Maybe that URI

Patch 7.0.152

2006-10-24 Thread Bram Moolenaar
Patch 7.0.152 Problem:Crash when using lesstif 2. Solution: Fill in the extension field. (Ben Hutchings) Files: src/gui_xmebw.c *** ../vim-7.0.151/src/gui_xmebw.c Sat May 13 17:26:10 2006 --- src/gui_xmebw.c Tue Oct 24 22:27:53 2006 *** *** 138,143 ---

Re: escape() and '

2006-10-24 Thread Hari Krishna Dara
On Mon, 23 Oct 2006 at 12:51pm, Mikolaj Machowski wrote: Hello, I understand that escape() was primarily designed to escape strings when passing to system functions, but personally I never used that and in didn't noticed such use in various scripts but very often it is used to escape

Re: escape() and '

2006-10-24 Thread Nikolai Weibull
On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: :echo escape('as''df', ) I didn't even know that you can escape a single-quote inside single-quotes like this, where is this information burried in Vim help? It seems to work though, so just checking if it is documented. It's

Re: containedin can't include clusters

2006-10-24 Thread Peter Hodge
--- Nikolai Weibull [EMAIL PROTECTED] wrote: I figured that it was easier to add items to a cluster using containedin= for a syntax definition I'm writing, but it seems that one can't do it that way. Is there a reason for this, or is it an oversight? Can we add this to the todo? I've

Re: escape() and '

2006-10-24 Thread Hari Krishna Dara
On Tue, 24 Oct 2006 at 11:10am, Nikolai Weibull wrote: There should really be a third, optional, parameter to escape() where you can specify what character to use for escaping. That wouldn't be real solution because to escape ' you still (in most situations) would need two escape()

question about vim buffer write to file

2006-10-24 Thread Ming Lei
Hi, I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM handle the file write and save? Does

Re: Calling a non-existing dictionary function doesn't result in an error

2006-10-24 Thread Hari Krishna Dara
On Mon, 23 Oct 2006 at 5:16pm, Yegappan Lakshmanan wrote: Hi all, When a non-existing dictionary function is invoked using the :call command, there is no error. But when it is used in an expression, an error message is displayed. Is this the expected behavior? let a = {} call

Re: question about vim buffer write to file

2006-10-24 Thread Matthew Woehlke
Ming Lei wrote: I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM handle the file write

Re: List of encodings and aliases

2006-10-24 Thread A.J.Mechelynck
Bram Moolenaar wrote: Tony Mechelynck wrote: I fell by chance on http://www.iana.org/assignments/character-sets , the official list of character set names and aliases allowable on the Internet. Only names (with their aliases) are listed there, with bibliographical links to various sources.

Re: question about vim buffer write to file

2006-10-24 Thread A.J.Mechelynck
Matthew Woehlke wrote: Ming Lei wrote: I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM