Re: Text edit versus vi on some files

2006-09-18 Thread Elliot Shank
Brian McKee wrote: On 18-Sep-06, at 11:56 AM, David Morel wrote: Brian McKee a écrit : file Localizable.strings Localizable.strings: Big-endian UTF-16 Unicode C program character data If I open that file in vim I get ??^@/[EMAIL PROTECTED]@ [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL

Re: Use of afile

2006-09-17 Thread Elliot Shank
Bill McCarthy wrote: On Sat 16-Sep-06 5:23pm -0600, Elliot Shank wrote: From what I understand from the help, you should be able to use afile anywhere in an autocmd to get the name of the file being dealt with. So why does this complain E121: Undefined variable: afile: autocmd

Re: Display of CJK characters in a utf-8 file on MacOS X / Vim 7

2006-09-17 Thread Elliot Shank
Yongwei Wu wrote: On 9/16/06, Elliot Shank [EMAIL PROTECTED] wrote: Yongwei Wu wrote: On 9/14/06, Elliot Shank [EMAIL PROTECTED] wrote: Do you mean that none of the following Traditional Chinese fonts contains the characters you want? - Apple LiGothic Medium - LiHei Pro - Apple

Re: converted ?

2006-09-16 Thread Elliot Shank
Meino Christian Cramer wrote: sometimes when saveing an original unix file (for example $HOME/.zshrc) vim informs me about that the file is being [converted]. A :set ff shows me, that it is really a unix-file and the converted-message appears every time when it is saved

Use of afile

2006-09-16 Thread Elliot Shank
From what I understand from the help, you should be able to use afile anywhere in an autocmd to get the name of the file being dealt with. So why does this complain E121: Undefined variable: afile: autocmd BufNewFile *.pm echomsg 'Creating ' afile Obviously, I don't understand when

Re: Display of CJK characters in a utf-8 file on MacOS X / Vim 7

2006-09-13 Thread Elliot Shank
Yongwei Wu wrote: Yes, and I've got them installed. These still don't cover some of the things I'm dealing with, specifically in the CJK Compatibility Ideographs block (U+F900 to U+FAFF). Try installing the Traditional Chinese support. I do not have access to Mac, but on my Windows machine,

Re: Display of CJK characters in a utf-8 file on MacOS X / Vim 7

2006-09-12 Thread Elliot Shank
A.J.Mechelynck wrote: Elliot Shank wrote: I swear I saw something on this list about this before, but I can't find it. If someone can point me at the prior post, I'd appreciate it. I've got a utf-8 file with some CJK characters in it. These characters are being displayed on the line below

Re: Display of CJK characters in a utf-8 file on MacOS X / Vim 7

2006-09-12 Thread Elliot Shank
Yongwei Wu wrote: On 9/12/06, Elliot Shank [EMAIL PROTECTED] wrote: A.J.Mechelynck wrote: Elliot Shank wrote: 3. I don't know the fine points, but is there an Apple/Macintosh site from which you could download a language pack (or something) for your OS, to supplement whatever was shipped

Re: Yanking multi-line pattern matches

2006-09-06 Thread Elliot Shank
Hari Krishna Dara wrote: On Wed, 6 Sep 2006 at 12:18pm, Druce, Richard wrote: I'm trying to select all the text matching a (multi-line) pattern so I can put it into a separate document. I thought the global command would work but it only copies the first matching line, does anyone know a

Re: Vim BOF session

2006-09-02 Thread Elliot Shank
A.J.Mechelynck wrote: Elliot Shank wrote: Can't you hit the corresponding letter? [O]pen readonly, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, (D)elete Nope. The dialog is completely unresponsive to any key other than return/enter. There is also the c flag in 'guioptions' if you prefer text

Re: How does Vim bundle the actions done by a BufWritePre autocmd?

2006-09-01 Thread Elliot Shank
Yakov Lerner wrote: On 8/31/06, Elliot Shank [EMAIL PROTECTED] wrote: I've got a situation similar to the following: [chop] Obviously, in group A I'm trying to make a change in the buffer as well as on disk. In group B, I'm trying to only make a change to disk. The command handlers

Re: How to create a plugin that runs after any skeletons are loaded as part of BufNewFile.

2006-08-27 Thread Elliot Shank
A.J.Mechelynck wrote: Elliot Shank wrote: It looks like FileType and Syntax events can occur between BufNewFile and BufWinEnter, but this only happens for files that a file type can be figured out for. If I edit a non-existent file called blah, there aren't any events between BufNewFile

Re: How to create a plugin that runs after any skeletons are loaded as part of BufNewFile.

2006-08-27 Thread Elliot Shank
Elliot Shank wrote: Which means, I guess, that the code points in the Tags block isn't supposed to be visible. Which means, I guess, I isn't able to write English. :]

Re: Re [2]: How to create a plugin that runs after any skeletons are loaded as part of BufNewFile.

2006-08-27 Thread Elliot Shank
A.J.Mechelynck wrote: A.J.Mechelynck wrote: [...] IU mentioned the VimEnter event, which is triggered at the very end of startup. It is of course possible that other scripts than your own will set up VimEnter autocommands to create new autocommands in their turn, but IMHO it is highly

How to create a plugin that runs after any skeletons are loaded as part of BufNewFile.

2006-08-26 Thread Elliot Shank
What I'm trying to do is create a plugin that acts based upon the contents of an arbitrary file buffer as soon after it has loaded its contents as possible. For existing files, using a BufReadPost autocmd is fine. For new file buffers that have text loaded into them via a BufNewFile autocmd,