Re: Making vim fast

2006-09-26 Thread A.J.Mechelynck
[EMAIL PROTECTED] 寫: A.J.Mechelynck [EMAIL PROTECTED] 写于 2006-09-26 08:35:38: I don't know about reverting to 6.4 but it's always a tradeoff between features and speed. Best regards, Tony. My experience is that the feature does not affect running speed too much. Only for startup speed. I'd

Patch 7.0.110

2006-09-26 Thread Bram Moolenaar
Patch 7.0.110 Problem:Amiga: Compilation problems when not using libnix. Solution: Change a few #ifdefs. (Willy Catteau) Files: src/memfile.c *** ../vim-7.0.109/src/memfile.cTue Mar 7 00:27:12 2006 --- src/memfile.c Sun Sep 17 15:50:00 2006 *** *** 517,523

Re: Convert2HTML Again

2006-09-26 Thread Bram Moolenaar
Michael Schaap wrote: A.J.Mechelynck wrote: I second the motion; and since the font actually used is the first one found from the font-family item, I suggest (all on one line): +execute normal! A\npre { font-family: 'Courier New', monospace; color: . s:fgc . ;

Re: Convert2HTML Again

2006-09-26 Thread Edd Barrett
The suggestion from Benji Fisher to add a variable to allow people to use another font sounds good to me. Make sure it's properly documented, especially about using more than one name and quotes around the name. Great, Ill add this in as soon as I can, but university work is coming in hard

Re: vim bof audio available anyone ?

2006-09-26 Thread Christian MICHON
Thanks in advance then :) On 9/25/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Christian Michon wrote: I remember there was some audio recording of vim BOF/sane 2004. Has anyone attended yesterday's BOF session with an audio recording device ? It would be nice to hear it for those/us who

Re: vim is scrambling my files

2006-09-26 Thread jinxjinx
:verbose set makeprg? makeef? autowrite? autowriteall? makeprg=make makeef= noautowrite noautowriteall :verbose setlocal filetype? filetype=c Las set from /usr/share/vim/vim64/filetype.vim :version VIM - Vi IMproved 6.4 (2005 Oct 15, compiled May 23 2006 12:03:57) Included patches:

Re: vim is scrambling my files

2006-09-26 Thread Peter Hodge
Just my 2c worth, is it a display problem that goes away when you press CTRL+L? regards, Peter --- jinxjinx [EMAIL PROTECTED] wrote: :verbose set makeprg? makeef? autowrite? autowriteall? makeprg=make makeef= noautowrite noautowriteall :verbose setlocal filetype? filetype=c

Re: vim is scrambling my files

2006-09-26 Thread A.J.Mechelynck
[quoted text reordered] jinxjinx wrote: A.J.Mechelynck wrote: jinxjinx wrote: when i do a save and then a make, for somereason my file gets scrambled. vim adds a colum of letters. and i get all these compile errors. so i quit without saving, and the extra letters go away! what could be going

Re: per-window search highlighting/colors

2006-09-26 Thread A.J.Mechelynck
Brian Lewis wrote: I'm editing a file and open a preview window. When I search with /, I'd like the main window to show highlighted matches, but for the preview window not to. nohlsearch seems to be global, so I can't :setl nohlsearch in the preview window to get what I want. Maybe there's a

Re: --enable-gui argument... no GUI support

2006-09-26 Thread Akbar
smart install gtk2-devel Loading cache... Updating cache... [100%] warning: [EMAIL PROTECTED] is already installed Computing transaction... Saving cache... I have two computer. I installed ubuntu 6.06 in other computer that I have

Re: taglist() bugs related to 'tags'

2006-09-26 Thread Bram Moolenaar
Hari Krishna Dara wrote: I am observing that the taglist() function is not sensitive to the changes in 'tags' value. It also seems to cache the value of 'tags' as of the time the function is called for the first time. To reproduce the problem (you need to have patch 96 applied, otherwise

Re: --enable-gui argument... no GUI support

2006-09-26 Thread Akbar
I have the same problem. Installing vim 7.0 source in Suse 10.1, I always get --enable-gui argument... no GUI support I have xorg-x11-devel installed. I have installed libgnome-devel. No luck. Any idea? In Ubuntu 6.06, installing vim 7.0 is easy. On 5/28/06, Bohdan Ganický [EMAIL PROTECTED]

Re: make some commands local

2006-09-26 Thread Daniel Nogradi
Thanks for the reply, actually these 2 commands are just examples from what I really would like to do. In more detail, I have a function: function! ReFold() syn off | syn on set foldmethod=expr set foldexpr=0 syn region myFold start='{' end='}' transparent fold

Re: Many GVIM locale problems fixed; one remains

2006-09-26 Thread Yongwei Wu
On 9/26/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yongwei Wu wrote: Some time ago I complained about UTF-8 related problems in Windows GVIM URL:http://tech.groups.yahoo.com/group/vim/message/72622. Today I installed Steve Hall's build of GVIM 7.0.106, and gladly find that some of the

Re: abbreviations + indent + movement commands

2006-09-26 Thread Benji Fisher
On Mon, Sep 25, 2006 at 08:29:02PM +0200, Kim Schulz wrote: On Sat, 23 Sep 2006 17:08:39 +0200 Luc Hermitte [EMAIL PROTECTED] wrote: [snip] I guess it is in the mark for place of last change, but I just cant get iabbrev to execute my movement command (other than using left right up

Re: Many GVIM locale problems fixed; one remains

2006-09-26 Thread Bram Moolenaar
Yongwei Wu wrote: Some time ago I complained about UTF-8 related problems in Windows GVIM URL:http://tech.groups.yahoo.com/group/vim/message/72622. Today I installed Steve Hall's build of GVIM 7.0.106, and gladly find that some of the problems are fixed. No hacking to menu_zh_cn.utf-8.vim is

Re: Piping messages from ex commands into a new tab

2006-09-26 Thread Charles E Campbell Jr
Tom Carr wrote: I'm trying to pipe messages from ex commands (e.g. :map , :version) into a new tab. I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I was hoping for a better way. Ideally I would type something like :tabmesages :map and it would show :map in a new tab,

Re: escape button to alt space

2006-09-26 Thread Andrea Spadaccini
Ciao Horvath, I try to remap the escape button to alt+space combination to come back from insert mode to command mode. I don't know the solution to your specific problem, but I suggest you to use CTRL-C, because it works exactly like Esc in this context. HTH, -- [ Andrea Spadaccini - a.k.a.

Visual Studio 2005 and gvim

2006-09-26 Thread Stavros Tsolakos
Hi all. I am forced to work with VS2005, but I have been using vim for the last 5 years now and I find using another editor quite impossible. I have noticed that the plugin VisVim.dll does not work with VS2005. I have found some messages in the archive about integrating gvim itself with VS,

escape button to alt space

2006-09-26 Thread Horvath Adam
Hi, I try to remap the escape button to alt+space combination to come back from insert mode to command mode. :map M-Space Esc It works, but: after hitting alt+space the cursor jump to the beginning of the next line. Why? It's really disturbing. How can I correct? Thanks, Adam

Re: Piping messages from ex commands into a new tab

2006-09-26 Thread Benji Fisher
On Mon, Sep 25, 2006 at 10:21:23PM +0100, Tom Carr wrote: I'm trying to pipe messages from ex commands (e.g. :map , :version) into a new tab. I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I was hoping for a better way. Ideally I would type something like :tabmesages :map

Re: Piping messages from ex commands into a new tab

2006-09-26 Thread Charles E Campbell Jr
Tom Carr wrote: I'm trying to pipe messages from ex commands (e.g. :map , :version) into a new tab. I've found http://vim.sourceforge.net/tips/tip.php?tip_id=95, but I was hoping for a better way. Ideally I would type something like :tabmesages :map and it would show :map in a new tab,

Re: per-window search highlighting/colors

2006-09-26 Thread Brian Lewis
On Tue, 26 Sep 2006 10:16:22 -0400 Benji Fisher [EMAIL PROTECTED] wrote: On Tue, Sep 26, 2006 at 12:27:39AM -0500, Brian Lewis wrote: I'm editing a file and open a preview window. When I search with /, I'd like the main window to show highlighted matches, but for the preview window not to.

RE: Single-File Vim?

2006-09-26 Thread Gene Kwiecinski
Is there a binary compiled for Windows which allows me to run Vim without any of the runtime files? Long story short, I want something I can keep online or on a USB key and just copy to the desktop of any computer I sit at. I saw the entire thread so far, and while there are lots of possible

Re: Visual Studio 2005 and gvim

2006-09-26 Thread Thore B . Karlsen
On Tue, 26 Sep 2006 13:13:46 +0300, Stavros Tsolakos [EMAIL PROTECTED] wrote: Hi all. I am forced to work with VS2005, but I have been using vim for the last 5 years now and I find using another editor quite impossible. I have noticed that the plugin VisVim.dll does not work with VS2005. I

Re: Piping messages from ex commands into a new tab

2006-09-26 Thread Christian Ebert
* Benji Fisher on Tuesday, September 26, 2006 at 09:53:32 -0400: fun! TabMessage(cmd) redir = message silent execute a:cmd redir END tab split put=message endfun In case one wishes to have /only/ the command output in the tab, and no delay by messages: function! TabMessage(cmd)

Re: How can I do a grep on all vim buffer ?

2006-09-26 Thread Tim Chase
How can I do a grep on all vim buffer ? Something like :set hidden :bufdo g/pattern/# is what I usually use for this. It iterates over each buffer and prints each line (along with its line number) that matches pattern. -tim

Re: per-window search highlighting/colors

2006-09-26 Thread Benji Fisher
On Tue, Sep 26, 2006 at 12:27:39AM -0500, Brian Lewis wrote: I'm editing a file and open a preview window. When I search with /, I'd like the main window to show highlighted matches, but for the preview window not to. nohlsearch seems to be global, so I can't :setl nohlsearch in the preview

Error messages using netrw not understood

2006-09-26 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All Using Vim 7 on an OSX machine, with passwordless ssh setup and working properly - if I start gvim then :e scp://targetmachine/ It shows 'Error detected while processing BufEnter Auto commands for *: E472: Command failed Hit return

Re: Visual Studio 2005 and gvim

2006-09-26 Thread Aaron Griffin
On 9/26/06, Thore B. Karlsen [EMAIL PROTECTED] wrote: On Tue, 26 Sep 2006 13:13:46 +0300, Stavros Tsolakos [EMAIL PROTECTED] wrote: I was thinking about writing a plugin from scratch, adding similar functionality with VisVim.dll to VS2005. I believe that it could be nothing more than

RE: [BUG]

2006-09-26 Thread Bram Moolenaar
Max Dyckhoff wrote: Addendum: You actually have to drag with the mouse. Just double clicking on a word will not cause this erroneous behaviour. [1-4]-clicking and then dragging will make it happen. Max -Original Message- From: Max Dyckhoff [mailto:[EMAIL PROTECTED] Sent:

Re: Visual Studio 2005 and gvim

2006-09-26 Thread Sergey Khorev
Stavros Tsolakos wrote: Where can I find the source code for VisVim.dll? Do you believe that this is possible? You can find source code in ftp://ftp.vim.org/pub/vim/extra/vim-7.0-extra.tar.gz Moreover I'm pretty sure it's possible to write such plugin in VBScript because new VS is very

Re: per-window search highlighting/colors

2006-09-26 Thread Yakov Lerner
On 9/26/06, Brian Lewis [EMAIL PROTECTED] wrote: On Tue, 26 Sep 2006 10:16:22 -0400 Benji Fisher [EMAIL PROTECTED] wrote: On Tue, Sep 26, 2006 at 12:27:39AM -0500, Brian Lewis wrote: I'm editing a file and open a preview window. When I search with /, I'd like the main window to show

enable multi-byte?

2006-09-26 Thread Robert Hicks
I did a standard install of Vim7 on HP/UX and multi-byte was not enabled. I looked at my Windows version and multi-byte is enabled. What would determine for me if I need to enable it? Robert

Detecting when in omnicomplete

2006-09-26 Thread Karl Guertin
I'm playing around with keybindings and omnicompletion and I'd like a special set of keybindings when pumvisible() and it's an omnicomplete match. I can mostly do this by setting a buffer variable in all my mappings that would cause me to enter/exit omnicomplete, but I keep missing edge cases. Is

Re: enable multi-byte?

2006-09-26 Thread Yakov Lerner
On 9/26/06, Robert Hicks [EMAIL PROTECTED] wrote: I did a standard install of Vim7 on HP/UX and multi-byte was not enabled. I looked at my Windows version and multi-byte is enabled. What would determine for me if I need to enable it? in :version, see whether you have +multi_byte or

Re: enable multi-byte?

2006-09-26 Thread Yakov Lerner
On 9/26/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 9/26/06, Robert Hicks [EMAIL PROTECTED] wrote: I did a standard install of Vim7 on HP/UX and multi-byte was not enabled. I looked at my Windows version and multi-byte is enabled. What would determine for me if I need to enable it? in

Re: Detecting when in omnicomplete

2006-09-26 Thread David . Fishburn
If you have a look at ftplugin/sql.vim it does this. I override the ctrl-left|right keys. When pumvisible() is false I want to do the default Vim behaviour. When it is true I want to perform special SQL actions. I was only able to do this via a mapping which called a function. But that does

Re: How can I do a grep on all vim buffer ?

2006-09-26 Thread Bill McCarthy
On Tue 26-Sep-06 8:46am -0600, KLEIN Stéphane wrote: How can I do a grep on all vim buffer ? The following, not fully tested, uses vimgrep on all loaded and named buffers: -- function! s:bufvim( arg ) let a = let i = 1 while

Re: Detecting when in omnicomplete

2006-09-26 Thread Karl Guertin
On 9/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If you have a look at ftplugin/sql.vim it does this. sql.vim does have different functionality based on whether the popup menu is visible or not, but I don't see where it distinguishes between omnicomplete and keyword completion. E.g. if

Re: --enable-gui argument... no GUI support

2006-09-26 Thread Charles E Campbell Jr
Akbar wrote: I have the same problem. Installing vim 7.0 source in Suse 10.1, I always get --enable-gui argument... no GUI support I have xorg-x11-devel installed. I have installed libgnome-devel. No luck. Any idea? I suspect that you do the following after unpacking the vim 7.0 source

Re: enable multi-byte?

2006-09-26 Thread Robert Hicks
Yakov Lerner wrote: On 9/26/06, Robert Hicks [EMAIL PROTECTED] wrote: I did a standard install of Vim7 on HP/UX and multi-byte was not enabled. I looked at my Windows version and multi-byte is enabled. What would determine for me if I need to enable it? in :version, see whether you have

Strange behavior when set cot=longest and set ignorecase

2006-09-26 Thread Karl Guertin
Vim 7.0.35 vim --noplugin -u NONE -U NONE :set cot=menu,longest :set ignorecase If you do a keyword complete on words with mixed case, the initial state is blown away. E.g. say you have 'context','convex','Convent' and type 'conC-NC-P', you're left with nothing on the line. With every other

Re: [vim] fixing the f-args bug wrt '\\ '

2006-09-26 Thread Bram Moolenaar
Yakov Lerner wrote: On 8/9/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Actually, this text was written by by Yakov. I replied to that. I'm going to fix the f-args bug mentioned in the todo (because I got bitten by it). I made a testcase (it's below), here is the table:

Re: Single-File Vim?

2006-09-26 Thread Christian MICHON
On 9/26/06, Gene Kwiecinski [EMAIL PROTECTED] wrote: Hope you don't mind if I pass along your critique above (name/email redacted, natch; I try to respect other peoples' privacy) to another private list, as U3 was a topic about a month or so ago. Someone liked the idea of being able to put

Re: --enable-gui argument... no GUI support

2006-09-26 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: Akbar wrote: I have the same problem. Installing vim 7.0 source in Suse 10.1, I always get --enable-gui argument... no GUI support I have xorg-x11-devel installed. I have installed libgnome-devel. No luck. Any idea? I suspect that you do the following after

Getting the output of some commands into a buffer

2006-09-26 Thread Meino Christian Cramer
Hi, there are several commands like :map or :version which put a lot of valuable informations (at least for a newbie like me) into a temporary something (buffer seems the wrong nameing to me here). I would like to get the output of those commands into a real

Meta/Alt-confusion and no end

2006-09-26 Thread Meino Christian Cramer
Hi, As VIM insists on getting Meta/Alt-keys as binary codes and not as a ESC-key-combination I tried first to revert the rest of my environment, which handles ESC-key-combinations well to what vim exspects. zsh and mrxvt have option to switch between both (would a solution for vim, too!).

Re: Getting the output of some commands into a buffer

2006-09-26 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, there are several commands like :map or :version which put a lot of valuable informations (at least for a newbie like me) into a temporary something (buffer seems the wrong nameing to me here). I would like to get the output

Re: taglist() bugs related to 'tags'

2006-09-26 Thread Hari Krishna Dara
On Tue, 26 Sep 2006 at 11:03am, Bram Moolenaar wrote: Hari Krishna Dara wrote: I am observing that the taglist() function is not sensitive to the changes in 'tags' value. It also seems to cache the value of 'tags' as of the time the function is called for the first time. To reproduce

Re: Meta/Alt-confusion and no end

2006-09-26 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, As VIM insists on getting Meta/Alt-keys as binary codes and not as a ESC-key-combination I tried first to revert the rest of my environment, which handles ESC-key-combinations well to what vim exspects. zsh and mrxvt have option to switch between both

Vim 7.0 Problems with gtk+ gui

2006-09-26 Thread Surya Kiran Gullapalli
Hello, Sorry for cross posting. I thought its a problem with gtk+ and it occurs when i use vim gui version with gtk+ gui. I've compiled vim against gtk+-2.10 on SuSE linux 9.1. Gvim does not display plain text file correctly. When starting, the following message appears: [EMAIL

Re: Vim 7.0 Problems with gtk+ gui

2006-09-26 Thread A.J.Mechelynck
Surya Kiran Gullapalli wrote: Hello, Sorry for cross posting. I thought its a problem with gtk+ and it occurs when i use vim gui version with gtk+ gui. I've compiled vim against gtk+-2.10 on SuSE linux 9.1. Gvim does not display plain text file correctly. When starting, the following message