.xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Sylvain Bertrand
Hi, Is this possible to add .xht and .xhtml file extensions for xhtml filetype detection? Sylvain

Re: .xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Christian J. Robinson
On Sun, 25 Feb 2007, Sylvain Bertrand wrote: Hi, Is this possible to add .xht and .xhtml file extensions for xhtml filetype detection? Yes, see :help new-filetype. I think this should be added to the Vim distribution, and often wonder how it got left out of Vim7. - Christian --

Re: .xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Sylvain Bertrand
I did add support for those extensions manually in file in filetype.vim. I wonder the same thing than you. Maybe in the next patchset if we reach the top devs. Sylvain 2007/2/25, Christian J. Robinson [EMAIL PROTECTED]: On Sun, 25 Feb 2007, Sylvain Bertrand wrote: Hi, Is this possible to

BUG: nested syntax regions and tranparent

2007-02-25 Thread Doug Kearns
G'day folks, In the following sample string: {pre{contained}post} the right brace after contained is not highlighted when using these syntax commands. syn region foo1 matchgroup=foo2 start={ end=} contains=foo3 syn region foo3 start={ end=} transparent contained hi def link foo1 Constant hi

Re: Bug? in vimgrep with g flag and long lines.

2007-02-25 Thread Bram Moolenaar
Tony Mechelynck wrote: When cycling through matches using :cnext, if there are several matches in a single long line, the line is only shortened the first time (but _not_ the 2nd, 3rd, etc.,) to avoid a Hit-Enter prompt. Reproducible: every time. Steps to reproduce: 1. :set wrap

RE: Win64-related patches

2007-02-25 Thread Bram Moolenaar
Michael Wookey wrote: Michael Wookey wrote: One bug that I didn't fix. Build gvim.exe with OLE=no, run 'gvim - register', and watch it crash while trying to display an error message. This seems to fix the bug... Index: src/message.c

Re: Regular expression warning E54 when saving arbitrary files (backslash-issue) including FIX

2007-02-25 Thread Bram Moolenaar
Basti Grembowietz wrote: Hi vim-developers! I have a small bug-report with including fix. WHAT: On my home PC the saving of a file always raised two E54 warnings. Yesterday this was annoying to much (having to press some key before working on normally, so I investigated a bit.

Re: gvim, Windows NAS share of a unix file system, hard links

2007-02-25 Thread Bram Moolenaar
Nathan Coulter wrote: bug report == version: VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7 2006 16:23:43) MS-Windows 32 bit GUI version with OLE support problem: Writing to a file on a windows share where the underlying filesystem supports

Re: BUG: nested syntax regions and tranparent

2007-02-25 Thread Bram Moolenaar
Doug Kearns wrote: In the following sample string: {pre{contained}post} the right brace after contained is not highlighted when using these syntax commands. syn region foo1 matchgroup=foo2 start={ end=} contains=foo3 syn region foo3 start={ end=} transparent contained hi def

Re: .xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Bram Moolenaar
Christian J. Robinson wrote: On Sun, 25 Feb 2007, Sylvain Bertrand wrote: Hi, Is this possible to add .xht and .xhtml file extensions for xhtml filetype detection? Yes, see :help new-filetype. I think this should be added to the Vim distribution, and often wonder how it got

Re: .xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Nikolai Weibull
On 2/25/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Christian J. Robinson wrote: On Sun, 25 Feb 2007, Sylvain Bertrand wrote: Hi, Is this possible to add .xht and .xhtml file extensions for xhtml filetype detection? Yes, see :help new-filetype. I think this should be added to the

Re: .xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Sylvain Bertrand
Hi, For infos: If I open file.html (with xhtml content) using firefox 2.0.0.2, the document will have the text/html mime type which is wrong following the guidelines of the following document: http://www.w3.org/TR/xhtml-media-types/ If I open file.xhtml, the document will have the text/xhtml+xml

Re: .xht and .xhtml file extensions for xhtml filetype detection

2007-02-25 Thread Mikolaj Machowski
Dnia poniedziałek 26 luty 2007, Bram Moolenaar napisał: Apparently nobody noticed them. Are *.xht and *.xhtml widely used for XHTML? Spotted .xhtml several times, never saw .xht . m.

Re: moving buffer changes to new file?

2007-02-25 Thread Yakov Lerner
On 2/25/07, Pavel Shevaev [EMAIL PROTECTED] wrote: :h :saveas BTW, is it possible somehow to rename file not save as? Here is user-defined RENAME command that seems to work: :command! -narg=1 RENAME if rename(expand('%'),q-args)==0|file args|else| echo Renaming error| endif The :rename

Re: moving buffer changes to new file?

2007-02-25 Thread Matthew Winn
On Sun, 25 Feb 2007 10:06:18 +0300, Pavel Shevaev [EMAIL PROTECTED] wrote: :h :saveas BTW, is it possible somehow to rename file not save as? If you mean is it possible to change the name of a buffer without actually saving anything, then the answer is yes. Use :f new-file-name The

Re: More than 'fileencodings': MultiEnc.vim and TellEnc

2007-02-25 Thread Yongwei Wu
New version of tellenc is uploaded at http://wyw.dcweb.cn/download.asp?path=file=tellenc.zip. On 2/25/07, Yongwei Wu [EMAIL PROTECTED] wrote: - Most high character followed by a low character: latin1 This may depend on the language: IIUC, the sequences ää öö are very common in Finnish, çà

Re: moving buffer changes to new file?

2007-02-25 Thread Pavel Shevaev
Here is user-defined RENAME command that seems to work: :command! -narg=1 RENAME if rename(expand('%'),q-args)==0|file args|else| echo Renaming error| endif Thanks! I'll give it a try... The :rename command is in the todo list. (':help todo', search for :rename). Oh, i see, kudos to

Re: Vim presentation in Mountain View

2007-02-25 Thread Bram Moolenaar
Tom Flynn wrote: I watched and enjoyed it as well. Though I had a quick question. Towards the end, during the question and answer session, you mentioned that you had worked on integration with gdb at some point. You went so far as to type-out the web-address of the project. However, the

Best find and replace in files practices

2007-02-25 Thread Pavel Shevaev
Folks, sorry if this topic was already discussed for too many times but i couldn't google anything useful :( Grepping for something seems to be trivial with :vimgrep and :grep but there's nothing simple like this for 'searchreplace' and i wonder why... Is it done intentionally or i'm just

star key separators

2007-02-25 Thread Daniel Nogradi
Hi list, Where are the separators defined for the star key? I mean if I press star in a C file or in a python file the star key will highlight the word under the cursor but the way it expands to a full word is different. For instance if I have int main( int argc, char **argv ) in a C file and

Re: star key separators

2007-02-25 Thread Mikolaj Machowski
On niedziela 25 luty 2007, vim@vim.org wrote: Hi list, Where are the separators defined for the star key? I mean if I press :help 'iskeyword' m.

Re: Best find and replace in files practices

2007-02-25 Thread Pavel Shevaev
On 2/25/07, Tim Chase [EMAIL PROTECTED] wrote: Grepping for something seems to be trivial with :vimgrep and :grep but there's nothing simple like this for 'searchreplace' and i wonder why... Is it done intentionally or i'm just missing something? Just missing the power of the

Re: Best find and replace in files practices

2007-02-25 Thread Yakov Lerner
On 2/25/07, Pavel Shevaev [EMAIL PROTECTED] wrote: On 2/25/07, Tim Chase [EMAIL PROTECTED] wrote: Grepping for something seems to be trivial with :vimgrep and :grep but there's nothing simple like this for 'searchreplace' and i wonder why... Is it done intentionally or i'm just missing

Re: Best find and replace in files practices

2007-02-25 Thread Pavel Shevaev
When vim is given 500 file arguments, it opens only the first one. Regarding the other 499 files, it just remembers the names, for the beginning, so you see the first tfile very quicky. Only when you explicitly visit/open some of the other files, vim will actually read its contents. Just try it

Re: Best find and replace in files practices

2007-02-25 Thread Yakov Lerner
On 2/25/07, Pavel Shevaev [EMAIL PROTECTED] wrote: When vim is given 500 file arguments, it opens only the first one. Regarding the other 499 files, it just remembers the names, for the beginning, so you see the first tfile very quicky. Only when you explicitly visit/open some of the other

Re: Best find and replace in files practices

2007-02-25 Thread A.J.Mechelynck
Pavel Shevaev wrote: On 2/25/07, Tim Chase [EMAIL PROTECTED] wrote: Grepping for something seems to be trivial with :vimgrep and :grep but there's nothing simple like this for 'searchreplace' and i wonder why... Is it done intentionally or i'm just missing something? Just missing the power

ANN: New version (4.3) of the taglist plugin

2007-02-25 Thread Yegappan Lakshmanan
Hi all, A new version (4.3) of the taglist plugin is available now. You can download this version from: http://vim.sourceforge.net/scripts/script.php?script_id=273 The taglist plugin is a source code browser plugin for Vim. For more information about this plugin, visit

Re: star key separators

2007-02-25 Thread A.J.Mechelynck
Daniel Nogradi wrote: Hi list, Where are the separators defined for the star key? I mean if I press star in a C file or in a python file the star key will highlight the word under the cursor but the way it expands to a full word is different. For instance if I have int main( int argc, char

Re: VimTips - Google Wiki Usefulness

2007-02-25 Thread Tom Purl
I do think that we can do the addition of new people who want to be able to edit the wiki manually. That should also filter out the spammers. There is only a delay between wanting to edit the wiki and being able to do it the first time. Not perfect, but it's something that we can setup

Project plugin does not(?) refresh directory structure

2007-02-25 Thread Jakub Vosahlo
Hi, Could someone more experienced help me out with the project plugin, please? I use it for work with ruby on rails. During the work I use rails scripts to generate new files and occasionally directories within the project structure. When I try to refresh the project (bound to \R command by

Re: star key separators

2007-02-25 Thread Daniel Nogradi
Hi list, Where are the separators defined for the star key? I mean if I press star in a C file or in a python file the star key will highlight the word under the cursor but the way it expands to a full word is different. For instance if I have int main( int argc, char **argv ) in a C

Re: 2html.vim 256 color support

2007-02-25 Thread calmar
On Sun, Feb 25, 2007 at 10:41:16AM +0800, Edward L. Fox wrote: Hi Sorry I sent you a private mail, but you never know it they arrive or land in somekind of spam-filter. the patch is attached here: it's just adding these colors: http://www.calmar.ws/vim/256-terminal-24bit-color-chart.html

How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Noah Spurrier
How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now. When I'm editing a document in Gvim, I find that Gvim always uses my home directory as the working directory. If I

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Bill McCarthy
On Sun 25-Feb-07 6:22pm -0600, Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? Try this: autocmd BufReadPost * lcd %:h -- Best regards, Bill

Completion deletes previously completed text

2007-02-25 Thread Bernhard Walle
Hello, e.g. I have a text file: -- some_very_long_string some_another_long_string ... -- I want to type some_very_long_string(some_another_long_string). Now I type 'some_very' and hit ctrl-p to complete it. After that I type '(' then 'some_another' and I hit ctrl-p again. Without leaving the

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Thor Andreassen
On Sun, Feb 25, 2007 at 06:50:41PM -0600, Bill McCarthy wrote: On Sun 25-Feb-07 6:22pm -0600, Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? Try this: autocmd BufReadPost * lcd %:h You could also try :set autochdir, see :help

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread A.J.Mechelynck
Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now. When I'm editing a document in Gvim, I find that Gvim always uses my home directory as the

Re: Completion deletes previously completed text

2007-02-25 Thread A.J.Mechelynck
Bernhard Walle wrote: Hello, e.g. I have a text file: -- some_very_long_string some_another_long_string ... -- I want to type some_very_long_string(some_another_long_string). Now I type 'some_very' and hit ctrl-p to complete it. After that I type '(' then 'some_another' and I hit ctrl-p

RE: VimTips - Google Wiki Usefulness

2007-02-25 Thread Suresh Govindachar
Tom Purl I do think that we can do the addition of new people who want to be able to edit the wiki manually. That should also filter out the spammers. There is only a delay between wanting to edit the wiki and being able to do it the first time. Not perfect, but it's something

delete html tags command?

2007-02-25 Thread Simon Jackson
is there something similar to 'dw' that would delete an entire tag and its contents or one just to delete the opening of a tag (just p instead of psome text/p?

Re: delete html tags command?

2007-02-25 Thread Cameron Simpson
On 25Feb2007 22:19, Simon Jackson [EMAIL PROTECTED] wrote: | is there something similar to 'dw' that would delete an entire tag and | its contents or one just to delete the opening of a tag (just p | instead of psome text/p? The first requires counting nested tags - beyod my ken. The second:

Re: delete html tags command?

2007-02-25 Thread A.J.Mechelynck
Simon Jackson wrote: is there something similar to 'dw' that would delete an entire tag and its contents or one just to delete the opening of a tag (just p instead of psome text/p? AFAIK, there is no single command to do this, but you can make one as a mapping: 1. Install the matchit plugin:

Artifacts across buffers when using BufRead au

2007-02-25 Thread Benjamin McMillan
I don't know if this is a bug, so for now I'm going to post it on this list. Maybe I'm just using the wrong option. I'm using the BufReadPost au to echo the filename to screen, but this is causing visual artifacts when I change buffers: some of the characters from the previous buffer appear in

Re: Caseless tag matching

2007-02-25 Thread Jeenu V
Hi Tony, That helped me a lot. Thanks, though a bit late. On 2/20/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Jeenu V wrote: I'm using ctags and I want to do case less matching for tags. I tried setting the 'ignorecase' and 'infercase', but that doesn't give me the actual tag I need to

Re: Artifacts across buffers when using BufRead au

2007-02-25 Thread A.J.Mechelynck
Benjamin McMillan wrote: I don't know if this is a bug, so for now I'm going to post it on this list. Maybe I'm just using the wrong option. I'm using the BufReadPost au to echo the filename to screen, but this is causing visual artifacts when I change buffers: some of the characters from the

GB18030 != CP936

2007-02-25 Thread Yongwei Wu
Hi Bram, My test shows when I use ++enc to open a file in GB18030, Vim uses CP936, which is not correct. GB18030 is a 1, 2, or 4 byte encoding, while CP936 is a 1 or 2 byte encoding. The iconv on my system works correctly. I test with gVim 7.0.201 on Windows XP. Please check. Thanks. Best

RE: VimTips - Google Wiki Usefulness

2007-02-25 Thread Denis Perelyubskiy
On Sun, 25 Feb 2007 18:57:00 -0800, Suresh Govindachar [EMAIL PROTECTED] said: What is wrong with just having a visual image based manual check as the last step of editing a wiki page? (I hope you know what I mean by visual image based manual check -- it is the scheme in which the

Re: VimTips - Google Wiki Usefulness

2007-02-25 Thread Denis Perelyubskiy
On Sun, 25 Feb 2007 15:43:06 -0600 (CST), Tom Purl [EMAIL PROTECTED] said: I do think that we can do the addition of new people who want to be able to edit the wiki manually. That should also filter out the spammers. There is only a delay between wanting to edit the wiki and being able

Re: VimTips - Google Wiki Usefulness

2007-02-25 Thread Denis Perelyubskiy
On Sun, 25 Feb 2007 23:06:54 -0800, Denis Perelyubskiy [EMAIL PROTECTED] said: On Sun, 25 Feb 2007 15:43:06 -0600 (CST), Tom Purl [EMAIL PROTECTED] said: I do think that we can do the addition of new people who want to be able to edit the wiki manually. That should also filter out the

Re: GB18030 != CP936

2007-02-25 Thread Yongwei Wu
Hi Bram, On 2/26/07, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Bram, My test shows when I use ++enc to open a file in GB18030, Vim uses CP936, which is not correct. GB18030 is a 1, 2, or 4 byte encoding, while CP936 is a 1 or 2 byte encoding. The iconv on my system works correctly. I test with

Re: GB18030 != CP936

2007-02-25 Thread A.J.Mechelynck
Yongwei Wu wrote: Hi Bram, On 2/26/07, Yongwei Wu [EMAIL PROTECTED] wrote: Hi Bram, My test shows when I use ++enc to open a file in GB18030, Vim uses CP936, which is not correct. GB18030 is a 1, 2, or 4 byte encoding, while CP936 is a 1 or 2 byte encoding. The iconv on my system works