Re: Trigger for yank

2011-10-20 Thread sinbad
On Oct 20, 10:13 am, Ben Fritz fritzophre...@gmail.com wrote: On Oct 20, 12:05 am, sinbad sinbad.sin...@gmail.com wrote: hi, is it possible when a text is yanked, perhaps an autocommand kind of mechanism. i want to be able to set a variable or call a function when a text is yannked. i

Re: Expression maps and normal

2011-10-20 Thread Andy Wokula
Am 19.10.2011 04:21, schrieb David Fishburn: On 1/29/2009 7:34 AM, Andy Wokula wrote: omap w wSIDcopyreg if the following is repeated with . (e.g. df_.) the expression will not be evaluated again: onoexprscript f f.sidGetchar(). SIDcopyreg onoexprscript F F.sidGetchar(). SIDcopyreg

Re: Trigger for yank

2011-10-20 Thread Ben Fritz
On Oct 20, 4:50 am, sinbad sinbad.sin...@gmail.com wrote: btw, how do you capture the register input and [range] input inside mapped function. [x]yy                  Yank [count] lines [into register x] [range]y :help v:register :help v:count :help v:count1 You can access the contents of

line drawing inside vim

2011-10-20 Thread Eric Smith
Is there a current script for simple drawing of lines or shapes while in vim? I tried http://www.vim.org/scripts/download_script.php?src_id=8798 which is DrawIT and received mutiple errors (not necesarilly due to an error in the script?). Thanks for any suggestions -- - Eric Smith -- You

Re: line drawing inside vim

2011-10-20 Thread Reid Thompson
On Thu, 2011-10-20 at 16:35 +0200, Eric Smith wrote: Is there a current script for simple drawing of lines or shapes while in vim? I tried http://www.vim.org/scripts/download_script.php?src_id=8798 which is DrawIT and received mutiple errors (not necesarilly due to an error in the

Re: line drawing inside vim

2011-10-20 Thread Tim Chase
On 10/20/11 09:35, Eric Smith wrote: Is there a current script for simple drawing of lines or shapes while in vim? I tried http://www.vim.org/scripts/download_script.php?src_id=8798 which is DrawIT and received mutiple errors (not necesarilly due to an error in the script?). While I've not

Re: line drawing inside vim [PS]

2011-10-20 Thread Tim Chase
I tried http://www.vim.org/scripts/download_script.php?src_id=8798 which is DrawIT and received mutiple errors (not necesarilly due to an error in the script?). I see Dr. Chip authored the DrawIT script. He's pretty active both in keeping his scripts up to date and participating here on the

Re: line drawing inside vim [PS]

2011-10-20 Thread Charles Campbell
Tim Chase wrote: I tried http://www.vim.org/scripts/download_script.php?src_id=8798 which is DrawIT and received mutiple errors (not necesarilly due to an error in the script?). I see Dr. Chip authored the DrawIT script. He's pretty active both in keeping his scripts up to date and

Re: Expression maps and normal

2011-10-20 Thread David Fishburn
On 10/20/2011 3:50 AM, Andy Wokula wrote: Am 19.10.2011 04:21, schrieb David Fishburn: On 1/29/2009 7:34 AM, Andy Wokula wrote: omap w wSIDcopyreg if the following is repeated with . (e.g. df_.) the expression will not be evaluated again: onoexprscript f f.sidGetchar(). SIDcopyreg

Re: Re: Replacing the cursor into the initial window after calling of split or drop.

2011-10-20 Thread Eddine
Hi Gary, Hi Vimmers. Thank you Gary, your command works perfectly, I can evaluate my code when I call F11/F12 and the cursor returns to my source window so it saves me moves. map F11 :write \| :split /tmp/eval.ml \| %d \|setlocal ft=omlet \| setlocal autowrite \| exe 'r!ocaml #' \| wincmd pCR

Tracing Vim into a log file.

2011-10-20 Thread Eddine
Hello Yet another question, I have a strange behavior in my Vim at work. I often edit logs from process still working and still writing the log I'm reading in VIm (I have set autoread so it reloads) and I often have a behavior where my file is like folded ; All the part from the line 1 to current

Re: Expression maps and normal

2011-10-20 Thread Benjamin R. Haskell
On Thu, 20 Oct 2011, David Fishburn wrote: [...] So basically we have a omap (expression map) on y which call YRMapsExpression: o y YRMapsExpression(SNR107_, y) When I hit yy, YRMapsExpression is called, and it tacks on the call to: nnoremap silent SIDyrrecord :call YRRecord3(

Can change X11 window title after vim started?

2011-10-20 Thread LiaoCaiYuan
dear all, in emacs, I can set it by (set-frame-name NewName) how can I do it in vim? -- 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 change X11 window title after vim started?

2011-10-20 Thread Tony Mechelynck
On 20/10/11 16:23, LiaoCaiYuan wrote: dear all, in emacs, I can set it by (set-frame-name NewName) how can I do it in vim? Whether or not it is possible at all depends on whether you are using gvim or Console Vim (and, in the latter case, in which terminal). See :help 'title'

Re: Expression maps and normal

2011-10-20 Thread Andy Wokula
Am 20.10.2011 22:33, schrieb David Fishburn: On 10/20/2011 3:50 AM, Andy Wokula wrote: Am 19.10.2011 04:21, schrieb David Fishburn: Hi Dave! You want mappings with parametrized left-hand-side (?) -- there is no such thing in Vim. Could you say more about the purpose of the additional

Re: Tracing Vim into a log file.

2011-10-20 Thread Tony Mechelynck
On 20/10/11 23:49, Eddine wrote: Hello Yet another question, I have a strange behavior in my Vim at work. I often edit logs from process still working and still writing the log I'm reading in VIm (I have set autoread so it reloads) and I often have a behavior where my file is like folded ; All

Re: Tracing Vim into a log file.

2011-10-20 Thread Marc Weber
Excerpts from Eddine's message of Thu Oct 20 23:49:19 +0200 2011: Entering command :0 Can't you just try c-l (which is same as :redraw?) I really don't know what happens. Neihter do I, but pressing c-l may be bearable. You can debug by vim -V20/tmp/log (viml only). And you can set cursor

Re: line drawing inside vim

2011-10-20 Thread sc
On Thursday, October 20, 2011 09:45:25 Tim Chase wrote: On 10/20/11 09:35, Eric Smith wrote: Is there a current script for simple drawing of lines or shapes while in vim? I tried http://www.vim.org/scripts/download_script.php?src_id=8798 which is DrawIT and received mutiple errors

Python: problem importing dbus (undefined symbol: PyExc_UserWarning)

2011-10-20 Thread Kazuo Teramoto
Hi. I'm trying to import dbus inside vim but I get a error: -- :python import dbus Traceback (most recent call last): File string, line 4, in module File /usr/lib/python2.7/site-packages/dbus/__init__.py, line 79, in module import dbus.types as types File

:bd makes syntax highlight of the next window unavailable

2011-10-20 Thread Peng Yu
Hi, Suppose that I open 3 .R files with gvim -o. All the three .R files are correctly syntax highlighted. However, if I use :bd to close one window, the next window's syntax highlight will be gone. If the closed window is the bottom one, then the new bottom window will lose the syntax highlight.