Re: verbose map doesn't always shows the mapping

2012-03-26 Thread Christian Brabandt
On Tue, March 27, 2012 08:46, Jeri Raye wrote: > I have certain mappings defined in a file > +-- mapping file --+ > " F8 is Select all > noremap gggHG > inoremap gggHG > cnoremap gggHG > onoremap gggHG > snoremap gggHG > xnoremap ggVG > > > inoremap > inoremap > inoremap > inoremap >

verbose map doesn't always shows the mapping

2012-03-26 Thread Jeri Raye
Hi, I have certain mappings defined in a file +-- mapping file --+ " F8 is Select all noremap gggHG inoremap gggHG cnoremap gggHG onoremap gggHG snoremap gggHG xnoremap ggVG inoremap inoremap inoremap inoremap +-- mapping file --+ I recently discovered the command :verbose map W

Re: :set nu -> how to copy lines with line numbers?

2012-03-26 Thread Bee
Tim Chase wrote about using: :redir @a :sil! '<,'># :redir END :help :# :help :number I added that to my vim notes file. It has another advantage, I normally have relative line numbers on. Using '<,'># prints the lines with absolute numbers. I use the + register (if your vim is compiled w

Re: how to use like notepad++ ???

2012-03-26 Thread danguria
Hello Ben Fritz. I'm sorry about that you told me. I didn't know "how to ask questions the smart way". It's second time to post this groups. Next time, I'll be better. On 3월22일, 오전12시07분, Ben Fritz wrote: > On Wednesday, March 21, 2012 6:36:52 AM UTC-5, danguria wrote: > > Hello vim_use group m

Re: how to use like notepad++ ???

2012-03-26 Thread danguria
thanks every one. It really helpful.^^ -- 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: buggy behavior when changing 'virtualedit' inside scripts?

2012-03-26 Thread Aaron Bohannon
I apologize. I couldn't reproduce my problem either...because I apparently left out a critical piece when condensing my much larger example. The real problem seems to also involve 'opfunc'. If you source the following function definitions and mappings, you will see that -$ and +$ inexplicably be

Re: A function to display all Functional keys F1 ~ F12

2012-03-26 Thread numbch...@gmail.com
This works good. Thanks. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): Evanescence Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 http://stardiviner.dyndns-blog.com/author.html On Mon, Mar 26, 2012 at 10:37 P

RE: :set nu -> how to copy lines with line numbers?

2012-03-26 Thread John Beckett
Paul Nguyen wrote: > On my Windows VIM GUI, :set nu, and then hold down Ctrl-Shift > while highlighting the desired text with the mouse. This > yanks the line numbers into the buffer. :help gui-mouse-modeless Never heard of that, although it turns out that I do use it when output is displayed. F

Re: :set nu -> how to copy lines with line numbers?

2012-03-26 Thread Paul Nguyen
hi, I thought I'd contribute my 2 cents. I've used VIM for umpteen years, and have found that if the solution to a VIM issue is too complex, I might use it once or twice but then forget it. I've developed many scripts, plugins, and methods, only to find that...they become forgotten after

Re: Update Vim after it suspended?

2012-03-26 Thread howard Schwartz
On Mon, 26 Mar 2012, Tim Chase wrote: I'd just create a mapping something like : nnoremap :suspendecho 'Doing something after Amazing, this seems to work. The ``something after'' does seem to execute after vim reanimates when put back in the forground. So it acts like an autocommand trig

Re: Update Vim after it suspended?

2012-03-26 Thread Ben Fritz
On Monday, March 26, 2012 10:24:53 AM UTC-5, howardb21 wrote: > Let's say i suspend an instance of vim with ctrl-Z or :suspend > Is there any way to use autocommands to update vim when I restart it with > fg on the command line? > > Once put to sleep it will not know what might have happened, for

Re: relativenumber is very very slow.

2012-03-26 Thread Alejandro Exojo
El Domingo, 11 de marzo de 2012, Yichao Zhou escribió: > Why 'relativenumber' will cause vim so lag even if I just type. Also > I found that 'relativenumber' will cause mouse scrolling must slower > than 'number'. I think it should not be so slow since it do not do > many thing. There must be so

Re: Update Vim after it suspended?

2012-03-26 Thread Tim Chase
On 03/26/12 10:24, howard Schwartz wrote: Let's say i suspend an instance of vim with ctrl-Z or :suspend Is there any way to use autocommands to update vim when I restart it with fg on the command line? I'd just create a mapping something like :nnoremap :suspendecho 'Doing something after

Update Vim after it suspended?

2012-03-26 Thread howard Schwartz
Let's say i suspend an instance of vim with ctrl-Z or :suspend Is there any way to use autocommands to update vim when I restart it with fg on the command line? Once put to sleep it will not know what might have happened, for instance in viminfo after it went to sleep. Only method I can think o

Re: Bash's vi command line editing mode

2012-03-26 Thread Ven Tadipatri
Hi Christian, For some reason :q! doesn't work for me. I tried the :cq that Gary & Taylor suggested, and it worked perfectly. It looks like I can also delete the lines, then save the buffer with :wq and that works too. You're right-it looks like bash just executes the file with the timestamp

Re: A function to display all Functional keys F1 ~ F12

2012-03-26 Thread Marcin Szamotulski
On 16:25 Mon 26 Mar , Christian Brabandt wrote: > On Mon, March 26, 2012 16:13, Marcin Szamotulski wrote: > > I was trying to make it a bit better using the following loop: > > > > for i in range(1,12) > > redir! >= map > > exe "silent ".(a:bang == "!" ? 'verbose' : '') . " map" > >

Re: A function to display all Functional keys F1 ~ F12

2012-03-26 Thread Christian Brabandt
On Mon, March 26, 2012 16:13, Marcin Szamotulski wrote: > I was trying to make it a bit better using the following loop: > > for i in range(1,12) > redir! >= map > exe "silent ".(a:bang == "!" ? 'verbose' : '') . " map" > redir end > if map !~ 'No mapping found' > echomsg ma

Re: A function to display all Functional keys F1 ~ F12

2012-03-26 Thread Marcin Szamotulski
On 10:04 Mon 26 Mar , Charles Campbell wrote: > Marcin Szamotulski wrote: > > On 17:51 Mon 26 Mar , stardiviner wrote: > > > >> Sometimes I will forget which functional key do what in script map. > >> So I want a function to display all functional keys from F1 to F12. > >> The maps cont

Re: A function to display all Functional keys F1 ~ F12

2012-03-26 Thread Charles Campbell
Marcin Szamotulski wrote: On 17:51 Mon 26 Mar , stardiviner wrote: Sometimes I will forget which functional key do what in script map. So I want a function to display all functional keys from F1 to F12. The maps content can from command :verbose map. Those content can be displayed in any

Re: netrw and line highlighting

2012-03-26 Thread Charles Campbell
sc wrote: On Sun, Mar 25, 2012 at 06:25:29PM -0400, Aaron Bohannon wrote: Hi, I started using netrw in tree mode. In tree mode (and all of its other single-column modes), it highlights the entire line containing the cursor. That's cool, but the problem is that when I hit 'o' or

Re: A function to display all Functional keys F1 ~ F12

2012-03-26 Thread Marcin Szamotulski
On 17:51 Mon 26 Mar , stardiviner wrote: > Sometimes I will forget which functional key do what in script map. > So I want a function to display all functional keys from F1 to F12. > The maps content can from command :verbose map . > Those content can be displayed in any style, like a new wind

Re: buggy behavior when changing 'virtualedit' inside scripts?

2012-03-26 Thread Bram Moolenaar
Aaron Bohannon wrote: > Consider this line of text: "abc def". If the cursor is on "d" and > you type "Dix" in normal mode, the result will depend on the > value of 'virtualedit'. > > * when ve="", you get "abcx " > * when ve="onemore", you get "abc x" > * when ve="all", you get "abc x" > > Yo

A function to display all Functional keys F1 ~ F12

2012-03-26 Thread stardiviner
Sometimes I will forget which functional key do what in script map. So I want a function to display all functional keys from F1 to F12. The maps content can from command :verbose map . Those content can be displayed in any style, like a new window, or same buffer with :echomsg. I just want to dis

Re: Horizontal Ruler in interface?

2012-03-26 Thread rameo
On Sunday, March 25, 2012 12:21:43 PM UTC+2, coot_. wrote: > On 11:16 Sun 25 Mar , Marcin Szamotulski wrote: > > On 03:00 Sun 25 Mar , rameo wrote: > > > On Saturday, March 24, 2012 2:22:26 PM UTC+1, volker@gmx.de wrote: > > > > On Sat, 24 Mar 2012 14:06:30 +0100 > > > > Christian Braba