feature request: v:mousecol and v:mouseline

2006-10-21 Thread Hari Krishna Dara
When maps for mouse clicks are executed, can we have the location (in the form of line and column number) made available through v: variables? I just observed that getchar() works even with mouse clicks, but this is almost useless without knowing where the user clicked. Capturing mouse clicks

Re: feature request: v:mousecol and v:mouseline

2006-10-21 Thread A.J.Mechelynck
Hari Krishna Dara wrote: When maps for mouse clicks are executed, can we have the location (in the form of line and column number) made available through v: variables? I just observed that getchar() works even with mouse clicks, but this is almost useless without knowing where the user clicked.

completion marks buffer modified too soon

2006-10-21 Thread Hari Krishna Dara
When using |completion-function|, Vim is marking the buffer as modified, as soon as the popup is triggered. When a plugin offers matches using 'completefunc' the user should be able to cancel by pressing C-E and this shouldn't leave the buffer as modified. Here is a sample function to show what

Re: feature request: v:mousecol and v:mouseline

2006-10-21 Thread Bram Moolenaar
Hari Krishna Dara wrote: When maps for mouse clicks are executed, can we have the location (in the form of line and column number) made available through v: variables? I just observed that getchar() works even with mouse clicks, but this is almost useless without knowing where the user

Re: completion marks buffer modified too soon

2006-10-21 Thread Bram Moolenaar
Hari Krishna Dara wrote: When using |completion-function|, Vim is marking the buffer as modified, as soon as the popup is triggered. When a plugin offers matches using 'completefunc' the user should be able to cancel by pressing C-E and this shouldn't leave the buffer as modified. Here is

Re: Extra [No Name] Buffers from mksession

2006-10-21 Thread Bram Moolenaar
Bill McCarthy wrote: When I open a session created by mksession, a [No Name] buffer is created for each tab that is created. My 'sessionoptions' contains all the options except sesdir, slash and unix. I checked buffers with 'ls!' before saving the session. I startup with: gvim -S

Re: Fighting with comments - Close the gap between vimtutor and :help

2006-10-21 Thread vim
Gary Johnson wrote: I don't think that's true. Vim :help comprises two manuals: Vim User Manual - :help user-manual Vim Reference Manual - :help reference This is even discussed in :help 01.1. The User Manual is written in a different style than the Reference Manual and is more readable. I

Re: Quickfix behaviour

2006-10-21 Thread Marius Roets
On 10/20/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: The above problem with the quickfix window and the 'switchbuf' option set to 'usetab' is now fixed by patch 7.0.146. - Yegappan Thanks, I will check it out. Marius

Re: completion marks buffer modified too soon

2006-10-21 Thread Hari Krishna Dara
On Sat, 21 Oct 2006 at 1:59pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: When using |completion-function|, Vim is marking the buffer as modified, as soon as the popup is triggered. When a plugin offers matches using 'completefunc' the user should be able to cancel by pressing C-E

RE: Fighting with comments - Close the gap between vimtutor and :help

2006-10-21 Thread Java Bob
Gary Johnson wrote: I don't think that's true. Vim :help comprises two manuals: Vim User Manual - :help user-manual Vim Reference Manual - :help reference This is even discussed in :help 01.1. The User Manual is written in a different style than the Reference Manual and is more readable.

Re: Extra [No Name] Buffers from mksession

2006-10-21 Thread Bill McCarthy
On Sat 21-Oct-06 6:59am -0600, Bram Moolenaar wrote: This happens when the edited file already is in the buffer list. I'll fix it by using tabedit instead of tabnew | edit. Ah, thanks for explaining that. I knew that making that replacement solved the problem but didn't know why. I had used

Re: feature request: v:mousecol and v:mouseline

2006-10-21 Thread Hari Krishna Dara
On Sat, 21 Oct 2006 at 11:19am, Hari Krishna Dara wrote: On Sat, 21 Oct 2006 at 1:59pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: When maps for mouse clicks are executed, can we have the location (in the form of line and column number) made available through v: variables?

REQ: gq and swap file stuff?

2006-10-21 Thread Pero Brbora
Hi ... When there is no empty lines bellow the long line (at the end of file) you can't format the line using gq option... Also it would be less annoying when opening file and swap file is found (another vim is running in this case). Then you click on Quit and you have to press a key! IMHO

Re: REQ: gq and swap file stuff?

2006-10-21 Thread Kim Schulz
On Sat, 21 Oct 2006 22:40:32 +0200 Pero Brbora [EMAIL PROTECTED] wrote: Hi ... When there is no empty lines bellow the long line (at the end of file) you can't format the line using gq option... This one I completely agree with. I always start out by adding a lot of empty lines to the

Re: REQ: gq and swap file stuff?

2006-10-21 Thread Bill McCarthy
On Sat 21-Oct-06 3:40pm -0600, Pero Brbora wrote: When there is no empty lines bellow the long line (at the end of file) you can't format the line using gq option... What are you doing? If I use this test file: === testfile === vim: set tw=10 fo=tcq2: this

Re: REQ: gq and swap file stuff?

2006-10-21 Thread Benji Fisher
On Sat, Oct 21, 2006 at 10:40:32PM +0200, Pero Brbora wrote: Hi ... When there is no empty lines bellow the long line (at the end of file) you can't format the line using gq option... I agree with one of the other replies: gqq works for me. Also it would be less annoying when opening

Re: REQ: gq and swap file stuff?

2006-10-21 Thread Pero Brbora
I agree with one of the other replies: gqq works for me. Ok, my bad. It works for me too... :) I learned gqCR and didn't know about gqq - much better... Thanks _ Express yourself instantly with MSN Messenger! Download

How to use vim as sed?

2006-10-21 Thread Peng Yu
Hi, Suppose I need to regular expression replacement for a bunch of files. Of cause, I can use sed. However, it seems that sed is not fully compatible with vim. I'm more familiar with vim. I know the vim commands that I should use to do the replacements. I'm wondering if there is any automatic

Re: How to use vim as sed?

2006-10-21 Thread Bill McCarthy
On Sat 21-Oct-06 8:37pm -0600, Peng Yu wrote: Suppose I need to regular expression replacement for a bunch of files. Of cause, I can use sed. However, it seems that sed is not fully compatible with vim. I'm more familiar with vim. I know the vim commands that I should use to do the

Re: Fighting with comments - Close the gap between vimtutor and :help

2006-10-21 Thread Hal
On Oct 21, 2006, at 11:46 AM, Java Bob wrote: Gary Johnson wrote: I don't think that's true. Vim :help comprises two manuals: Vim User Manual - :help user-manual Vim Reference Manual - :help reference This is even discussed in :help 01.1. The User Manual is written in a different style

Re: Plain TeX support ?

2006-10-21 Thread Meino Christian Cramer
From: Benji Fisher [EMAIL PROTECTED] Subject: Re: Plain TeX support ? Date: Fri, 20 Oct 2006 15:31:33 -0400 On Mon, Sep 25, 2006 at 08:07:22PM +0200, Meino Christian Cramer wrote: [snip] After I wrote my first TeX-text without Emacs/AucTeX spontaneous I would say the following things

Terminating search in function

2006-10-21 Thread Meino Christian Cramer
Hi, I wrote this snippet: fun! Ffunchdr() let date = strftime( %F ) put='/*-*/' put='/**' put=' * desc' put=' *'

Re: bash syntax does not handle bitwise left shift

2006-10-21 Thread A.J.Mechelynck
Olaf Hering wrote: The shell syntax highlighting does not work for the bash 'left bitwise shifts'. I have uploaded the example script and screen show to http://www.aepfle.de/linux/vim/ The offending line is: (( of_disk_addr = ( (of_disk_scsi_chan16) | (of_disk_scsi_id8) |

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Alexey I. Froloff
* A.J.Mechelynck antoine.mechelynck@ [061021 08:01]: IMHO, the way to configure it is not by hacking Vim but (at least in console Vim) by having a properly-built termcap/terminfo which tells Vim which codes correspond to which keys. IIRC, only user can tell what will Meta+Key send and it has

Re: Paste as HTML

2006-10-21 Thread Bram Moolenaar
Igor Dvorkin wrote: Many windows apps support a clipboard pasting format of HTML. This is how you can copy code in Visual Studio 2005 and paste it into outlook and see syntax highlighting. I recommend something similar be done for VIM. Today, we have toHTML, that's reasonable, but ideally

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * A.J.Mechelynck antoine.mechelynck@ [061021 08:01]: IMHO, the way to configure it is not by hacking Vim but (at least in console Vim) by having a properly-built termcap/terminfo which tells Vim which codes correspond to which keys. IIRC, only user can tell what will

Re: Paste as HTML

2006-10-21 Thread Mathias Michaelis
Hello * What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word processing program in

Re: Paste as HTML

2006-10-21 Thread A.J.Mechelynck
Mathias Michaelis wrote: Hello * What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the

Re: Paste as HTML

2006-10-21 Thread Bram Moolenaar
Mathias Michaelis wrote: What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word

Re: Paste as HTML

2006-10-21 Thread Mathias Michaelis
Hello Tony To achieve this know, I only see one way: Convert your text to HTML, then save it as HTML, open it with a web browser, copy it from here into the clipboard and paste it into a word processing program. What about opening the HTML file directly as RTF in a word processor? I guess

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Martin Stubenschrott
On Sun, Oct 22, 2006 at 01:31:09AM +0400, Alexey I. Froloff wrote: Vim should _support_ Meta-Sends-Escape mode which is A Must Have for non-ascii 8-bit locales Patch attached. New option - 'eightbitmeta' ('em'), default on. If unset, two things happen: I like the idea, but did not test