Re: E255 on sign command

2010-09-07 Thread Vincent B.
Hi, I made the patch for graphical file loading in MacVim, the implementation rely directly in Cocoa for image loading, and I don't think xpm is supported by cocoa. You may try to convert your xpm files to png files which would load without any problem. GVim win32 (not the cygwin one) doesn't

Re: Quick way to highlight a report file

2010-09-07 Thread Christian Brabandt
[Fixing quotation. Please don't top poste.] On Tue, September 7, 2010 6:32 am, C K Kashyap wrote: On Mon, Sep 6, 2010 at 2:46 PM, Christian Brabandt cbli...@256bit.org wrote: call matchadd('WildMenu', '\_^.*\n\zs\%([^ ]* \)\{3\}\zs[^ ]* ') Thank you very much Christian ...

delete buffer without closing a splitted window

2010-09-07 Thread Reuven Sayag
Hi, is there a way to delete a buffer (:bd) while in vertical split (:vsp) in a way that will keep the split as it is? I have many opened buffers in the background but vim just leaves one window after the split. Thanks, Reuven. -- You received this message from the vim_use maillist. Do not

disable file locks ?

2010-09-07 Thread Aaron Lewis
Hi, Is it possible to disable file locks on command ? I'm suffering from a KDE service menu , using `konsole -e vim %f` to edit a file , and when konsole is closed , vim is kinda closed unexpected , thus file being edited is still locked. So if i could pass a parameter , that

vim equivalent of save-excursion in emacs

2010-09-07 Thread Oivvio Polite
I came up with this mapping to reformat the current paragraph imap leader. Esc{V}!parCRi when the command is done the cursor will be at the beginning of the paragraph rather than where ever it was when the command was issued. In emacs I solve this with save-excursion. What do I do in vim?

Re: vim equivalent of save-excursion in emacs

2010-09-07 Thread Oivvio Polite
On Tue, Sep 07, 2010 at 11:47:03AM +0200, Oivvio Polite wrote: I came up with this mapping to reformat the current paragraph imap leader. Esc{V}!parCRi when the command is done the cursor will be at the beginning of the paragraph rather than where ever it was when the command was

Re: problem about selection by mouse

2010-09-07 Thread Pan Xiaoku
help me ...thanks 2010/9/6 Pan Xiaoku panxia...@gmail.com Hello,everyone, Somtimes I want to select something by my mouse,but ,when I release the left key ,the content selected is invalid. Sometimes it is right. Please help me !Thanks! -- You received this message from the vim_use

Re: problem about selection by mouse

2010-09-07 Thread Aaron Lewis
Somtimes I want to select something by my mouse,but ,when I release the left key ,the content selected is invalid. Sometimes it is right. Please help me !Thanks! More description please ? -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0

Re: Determine whether vim is loading or whether the VimEnter event was already fired

2010-09-07 Thread anwoku
On 4 Sep., 08:23, Tom Link micat...@gmail.com wrote: Hi, Is there a general/standard way to determine whether vim is loading (before VimEnter) or whether the startup was already completed? Something like v:loading (similar to v:dying) maybe? I.e. how could I distinguish whether a

Re: vim equivalent of save-excursion in emacs

2010-09-07 Thread Oivvio Polite
nmap leader. ma{V}!parCR`a imap leader. Escma{V}!parCR`ai oops, that should be: nmap leader. ma{V}:!parCR`a imap leader. Escma{V}:!parCR`ai -- http://pipedreams.polite.se/about/ -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the

Re: \zs in regex not working with :syn match ...

2010-09-07 Thread Ben Fritz
On Sep 3, 4:51 am, Jürgen Krämer jottka...@googlemail.com wrote: there is a note in :help syntax.txt at line 3567 (Vim 7.3.3):   - The start of a match cannot be in a line other than where the pattern     matched.  This doesn't work: a\nbms=e.  You can make the highlighting     start in

Re: problem about selection by mouse

2010-09-07 Thread Ben Fritz
On Sep 5, 8:19 pm, Pan Xiaoku panxia...@gmail.com wrote: Hello,everyone, Somtimes  I want to select something by my mouse,but ,when I release  the left key ,the content selected is invalid. Sometimes it is right. Please help me !Thanks! We simply cannot help with a problem description as

Re: highlight lines longer than 80 chars for a specific file types.

2010-09-07 Thread Ben Fritz
On Sep 4, 6:17 pm, bill lam cbill@gmail.com wrote: try (untest): au FileType cpp       match ErrorMsg '\%80v.\+' au FileType java      match ErrorMsg '\%100v.\+' This will almost work, except that matches are window-local. So loading another buffer of a different filetype into the

Re: Getting buffers positions, improving viewports layout

2010-09-07 Thread Sven Guckes
* Pablo Giménez pablog...@gmail.com [2010-09-06 19:47]: 2010/9/6 Sven Guckes guc...@guckes.net: here are the screenhots for reference:  http://www.guckes.net/tmp/pablo_gimenez.bad_Layout.jpg  http://www.guckes.net/tmp/pablo_gimenez.goodLayout.jpg mind you, i will remove these pictures

Re: E255 on sign command

2010-09-07 Thread Andrew Long
On 7 Sep 2010, at 03:54, Vincent B. wrote: Hi, I made the patch for graphical file loading in MacVim, the implementation rely directly in Cocoa for image loading, and I don't think xpm is supported by cocoa. You may try to convert your xpm files to png files which would load without any

Re: screenshots - flickr | 10KB limit

2010-09-07 Thread Sven Guckes
* Ben Fritz fritzophre...@gmail.com [2010-09-07 16:51]: 1. Resize the images to make them smaller. 2. Decrease the quality on the jpg files, or use a different image format These would probably be a good idea even if you post the images to an external site. yup.. and if resizing and

Re: Quick way to highlight a report file

2010-09-07 Thread C K Kashyap
Thank you very much Christian ... this is so very useful. On Tue, Sep 7, 2010 at 12:27 PM, Christian Brabandt cbli...@256bit.org wrote: [Fixing quotation. Please don't top poste.] On Tue, September 7, 2010 6:32 am, C K Kashyap wrote: On Mon, Sep 6, 2010 at 2:46 PM, Christian Brabandt

Re: Getting buffers positions, improving viewports layout

2010-09-07 Thread Pablo Giménez
2010/9/7 Ben Fritz fritzophre...@gmail.com: On Sep 6, 12:34 pm, Pablo Giménez pablog...@gmail.com wrote: Thanks Sven. It is ok if I attach a 99.4 KB zip file? Otherwise I have to wait for later tonigh to upload them to my site. That would probably be better, but the best option (if you

Re: Getting buffers positions, improving viewports layout

2010-09-07 Thread Benjamin R. Haskell
On Tue, 7 Sep 2010, Sven Guckes wrote: * Pablo Giménez [2010-09-06 19:47]: 2010/9/6 Sven Guckes: here are the screenhots for reference:  http://www.guckes.net/tmp/pablo_gimenez.bad_Layout.jpg  http://www.guckes.net/tmp/pablo_gimenez.goodLayout.jpg mind you, i will remove these

Re: external compiler output into window/buffer/quickfix from vim

2010-09-07 Thread Gary Johnson
On 2010-09-06, Jeri Raye wrote: [...] To fix this, first of all I would put all the compiler options into 'makeprg' and set 'makeprg' once rather than each time you compile.    :set makeprg=vcom\ -work\ work\ -2002\ -explicit\ % Then to compile your file, just execute    :make

Re: delete buffer without closing a splitted window

2010-09-07 Thread Gary Johnson
On 2010-09-07, Reuven Sayag wrote: Hi, is there a way to delete a buffer (:bd) while in vertical split (:vsp) in a way that will keep the split as it is? I have many opened buffers in the background but vim just leaves one window after the split. You can't just close (or delete) a buffer yet

Re: Getting buffers positions, improving viewports layout

2010-09-07 Thread Pablo Giménez
2010/9/7 Benjamin R. Haskell v...@benizi.com: On Tue, 7 Sep 2010, Sven Guckes wrote: * Pablo Giménez [2010-09-06 19:47]: 2010/9/6 Sven Guckes: here are the screenhots for reference:  http://www.guckes.net/tmp/pablo_gimenez.bad_Layout.jpg  

Re: disable file locks ?

2010-09-07 Thread Gary Johnson
On 2010-09-07, Aaron Lewis wrote: Hi, Is it possible to disable file locks on command ? I'm suffering from a KDE service menu , using `konsole -e vim %f` to edit a file , and when konsole is closed , vim is kinda closed unexpected , thus file being edited is still locked.

Re: Determine whether vim is loading or whether the VimEnter event was already fired

2010-09-07 Thread ZyX
Ответ на сообщение «Re: Determine whether vim is loading or whether the VimEnter event was already fired», присланное в 14:36:29 07 сентября 2010, Вторник, отправитель anwoku: Thanks, it appears that `vim_starting' is available at least from version 5.8. Текст сообщения: On 4 Sep., 08:23,

Re: delete buffer without closing a splitted window

2010-09-07 Thread Christian Brabandt
Hi Gary! On Di, 07 Sep 2010, Gary Johnson wrote: On 2010-09-07, Reuven Sayag wrote: Hi, is there a way to delete a buffer (:bd) while in vertical split (:vsp) in a way that will keep the split as it is? I have many opened buffers in the background but vim just leaves one window after

Re: Quick way to highlight a report file

2010-09-07 Thread Benjamin R. Haskell
On Tue, 7 Sep 2010, Christian Brabandt wrote: [...] By the way, typing this might become awkward, especially if you need to highlight different columns. So here is a small script, that defines the :HiCol command to highlight a specific column. Use :HiCol nr to have it highlight column

convenient settings for /etc/motd etc. that has multi-character color codes

2010-09-07 Thread Rahul
Is there a convenient way to edit /etc/motd (or for that matter any other file that has color codes / multibyte characters in it)? The usual problem is that many if the file has a color code (say, ^[[33m^[[1m ) then this occupies multiple characters in the editor but zero characters when finally

RE: vim equivalent of save-excursion in emacs

2010-09-07 Thread John Beckett
Oivvio Polite wrote: I came up with this mapping to reformat the current paragraph imap leader. Esc{V}!parCRi Of course the par tool can do all sorts of clever things, but if all you want is wrapping and perhaps a little more, the Vim commands are good. To format the current paragraph type:

Re: convenient settings for /etc/motd etc. that has multi-character color codes

2010-09-07 Thread Simon Ruderich
On Tue, Sep 07, 2010 at 01:26:32PM -0700, Rahul wrote: Is there a convenient way to edit /etc/motd (or for that matter any other file that has color codes / multibyte characters in it)? The usual problem is that many if the file has a color code (say, ^[[33m^[[1m ) then this occupies multiple

produce key information in vimrc

2010-09-07 Thread livim
Hi ! Can I produce key information in vimrc? Such as I want to put CR in a function in vimrc. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: Can I make :cwindow only show the match item.

2010-09-07 Thread 777
It work ! Thank you very much. 2010/9/8 Gary Johnson garyj...@spocom.com: On 2010-09-08, 777 wrote: Hello All:             When I use pc-lint with vim. I use make cwindows to get a quickfix windows.             But I find :cw show all complier output, don't like clist only some the match

Re: produce key information in vimrc

2010-09-07 Thread sc
On Tuesday 07 September 2010 19:44:32 livim wrote: Hi ! Can I produce key information in vimrc? Such as I want to put CR in a function in vimrc. perhaps :h usr_41 would be a good starting place for you sc -- You received this message from the vim_use maillist. Do not top-post! Type

Re: disable file locks ?

2010-09-07 Thread Aaron Lewis
Hi, Gary Vim doesn't lock files. Why do you think Vim locks files? Ah , should be swap files .. ;-) You might be seeing the effect of a Vim swap file that was left when Vim was terminated. That is a feature. It allows you to recover a file that was being edited when Vim terminated

How can map , .

2010-09-07 Thread 777
Hello All: I want to map c-, c-. but it can't work. why?Thanks. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: convenient settings for /etc/motd etc. that has multi-character color codes

2010-09-07 Thread Christian Brabandt
On Wed, September 8, 2010 1:16 am, Simon Ruderich wrote: On Tue, Sep 07, 2010 at 01:26:32PM -0700, Rahul wrote: Is there a convenient way to edit /etc/motd (or for that matter any other file that has color codes / multibyte characters in it)? The usual problem is that many if the file has a

Re: problem about selection by mouse

2010-09-07 Thread Christian Brabandt
On Wed, September 8, 2010 2:25 am, Pan Xiaoku wrote: Sorry ,I'll descripe my problem detailed. I want to select a sentence by my house to copy ,following I press the left key ,then the selected content is highlighted,but when I release the lett key ,,the highlitht is disappeared. Thanks!

Re: How can map , .

2010-09-07 Thread Christian Brabandt
On Wed, September 8, 2010 6:02 am, 777 wrote: Hello All: I want to map c-, c-. but it can't work. why?Thanks. First check, that vim is seeing those chars. In Insert mode press C-V followed by your desired keys. If that does not show anything, vim does not 'see' your keys (as was the