Re: Search 2 string and copy string inbetween in a new file

2010-09-21 Thread Christian Brabandt
On Mon, September 20, 2010 9:09 pm, Tim Chase wrote: Christian gives a workable solution for a certain line-format, assuming your search-items are on their own lines, and the contents between them are also on their own line(s). It gets a little trickier when you have them inline:

Re: Find mappings for ctrl

2010-09-21 Thread Oivvio Polite
On Tue, Sep 21, 2010 at 12:40:25AM +0400, ZyX wrote: There are no mappings starting with Ctrl, you can have only mappings starting with C-something (C-something sends one character). Mappings starting with either Space and escape can be viewed using `map Space | map Esc' (if you want to

Re: Find mappings for ctrl

2010-09-21 Thread Asis Hallab
Use: map c-w cheers 2010/9/21 Oivvio Polite myli...@polite.se On Tue, Sep 21, 2010 at 12:40:25AM +0400, ZyX wrote: There are no mappings starting with Ctrl, you can have only mappings starting with C-something (C-something sends one character). Mappings starting with either Space and

Re: narrow region with a filter ?

2010-09-21 Thread Davido
I would like to to this : :g/pattern/NR to edit the matching lines in a new buffer. Not exactly what you want but IIRC there is a plugin that hides all text in folds that doesn't match a certain pattern. Maybe it was this one? http://www.vim.org/script.php?script_id=158 It

Re: What *exactly* does :behave mswin do?

2010-09-21 Thread Ben Fritz
On Sep 20, 10:35 pm, Vivek Bhat vivekbh...@gmail.com wrote: On Tue, Sep 21, 2010 at 8:11 AM, Brian Sullivan bmsulli...@gmail.comwrote: I've seen lots of references to it, and even had it enabled on my Windows installations of Vim.  But I can't find in the documentation exactly what

Re: What *exactly* does :behave mswin do?

2010-09-21 Thread Brian Sullivan
Thanks, guys! :help :behave got me exactly the information I was looking for. I was just typing :help and / searching for behave, which didn't get me what I wanted, obviously. Brian On Sep 21, 8:18 am, Ben Fritz fritzophre...@gmail.com wrote: On Sep 20, 10:35 pm, Vivek Bhat

Re: What *exactly* does :behave mswin do?

2010-09-21 Thread Gary Johnson
On 2010-09-21, Brian Sullivan wrote: On Sep 21, 8:18 am, Ben Fritz fritzophre...@gmail.com wrote: On Sep 20, 10:35 pm, Vivek Bhat vivekbh...@gmail.com wrote: On Tue, Sep 21, 2010 at 8:11 AM, Brian Sullivan bmsulli...@gmail.comwrote: I've seen lots of references to it, and even

copy paste problem in vim 7.3

2010-09-21 Thread Hussain
Hello all, I have compiled vim 7.3 on slackware 13.0 with --enable-gui=motif --with-x --with-features=huge Up to now I have two problems: 1- Although I can copy from an xterm window to vim window, I cannot copy from vim window to an xterm window. 2- In toolbar only upper

Re: Mappings that never go away

2010-09-21 Thread ZyX
Ответ на сообщение «Mappings that never go away», присланное в 19:58:17 21 сентября 2010, Вторник, отправитель Bill: I do not see any errors in `yypVr-', but if you want to delete mapping in currently running session, use `unmap ,u'. If you want to determine where it comes from, use `verbose

Re: Mappings that never go away

2010-09-21 Thread sc
On Tuesday 21 September 2010 10:58:17 Bill wrote: This n00b wants to delete a map in my _gvimrc (vim72 on Windows). I made this underlining map = map ,u yypVr- But vim says this is Not an editor command: yypVr- OK, so I deleted it in my _gvimrc but it now follows me around like a puppy.

Folding depth

2010-09-21 Thread Pablo Giménez
Hi vimers. Is there any way to limit the depth for folding. I mean if I don't want folders to be created for more than 3 levels of folding is it possible to specify it so no matter the folding methos I use the depth will be limited to a certain amount? thanks -- Un saludo Best Regards Pablo

Re: Folding depth

2010-09-21 Thread Nikhilesh S
On Tue, Sep 21, 2010 at 07:57:10PM +0100, Pablo Giménez wrote: Hi vimers. Is there any way to limit the depth for folding. How about 'fdn'? BTW, helpgrep is very useful, I found this using :helpgrep fold.*depth -- Nikhilesh S http://www.nikhilesh.info -- You received this message from the

Re: Folding depth

2010-09-21 Thread ZyX
Ответ на сообщение «Folding depth», присланное в 22:57:10 21 сентября 2010, Вторник, отправитель Pablo Giménez: You said `no matter the folding methods I use', so you have probably discovered `foldnestmax' option. I think that for any method it is possible only with the custom script. The

Proper way to iunmap

2010-09-21 Thread Tim Johnson
Using vim 7.2 Huge version with GTK2 GUI on Ubuntu 10.04 I'd like to make use of ~/.vim/ftplugin/php/php.vim - that is, the php.vim that is included in the `piv' package. There is much to recommend it, however, the following characters: ({[' are remapped in php.vim and they interfere with my own

Re: Proper way to iunmap

2010-09-21 Thread Gary Johnson
On 2010-09-21, Tim Johnson wrote: Using vim 7.2 Huge version with GTK2 GUI on Ubuntu 10.04 I'd like to make use of ~/.vim/ftplugin/php/php.vim - that is, the php.vim that is included in the `piv' package. There is much to recommend it, however, the following characters: ({[' are remapped in

Re: Proper way to iunmap

2010-09-21 Thread ZyX
Ответ на сообщение «Proper way to iunmap», присланное в 01:07:48 22 сентября 2010, Среда, отправитель Tim Johnson: There are three ways of doing this without directly modifying the source: 1. Contact the authors and make them add `unique' to `map' arguments. 2. Use the after directory. If I am

Re: Proper way to iunmap

2010-09-21 Thread Tim Johnson
* ZyX zyx@gmail.com [100921 13:46]: Ответ на сообщение Proper way to iunmap, присланное в 01:07:48 22 сентября 2010, Среда, отправитель Tim Johnson: There are three ways of doing this without directly modifying the source: 1. Contact the authors and make them add `unique' to `map'

to or till (f or t) a non-ascii character

2010-09-21 Thread Ramana Kumar
I have set up some abbreviations to turn certain ASCII strings into appropriate Unicode counterparts, for example from '==' to '='. This works wonderfully. One problem, however, is when I now have a Unicode character sitting in my buffer, I can't jump to it easily using the insert-mode 't' and

why use let str = a:str in a function

2010-09-21 Thread Bee
why use let str = a:str in a function Looking at some functions, I have seen let str = a:str Why not just use a:str everywhere? Other than typing convenience. -- 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

Re: why use let str = a:str in a function

2010-09-21 Thread Benjamin R. Haskell
On Tue, 21 Sep 2010, Bee wrote: why use let str = a:str in a function Looking at some functions, I have seen let str = a:str Why not just use a:str everywhere? Other than typing convenience. I'm presuming it's mainly typing convenience, but one reason that comes to mind is having a copy of

Re: to or till (f or t) a non-ascii character

2010-09-21 Thread BC
A related but different issue is getting those characters into the command line buffer, for example if I want to search for a a string containing Unicode characters. My abbreviations won't work in that buffer... is there a way to get them to work? Or what about yanking/putting text between the

Re: to or till (f or t) a non-ascii character

2010-09-21 Thread BC
Annoyingly, I see that Google Groups changed the '=' I had pasted in (from Vim) to =. Strange, because it appeared correctly in the text box. -- 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

Re: to or till (f or t) a non-ascii character

2010-09-21 Thread BC
On Sep 21, 8:21 pm, BC bruce.armstr...@gmail.com wrote: Annoyingly, I see that Google Groups changed the '=' I had pasted in (from Vim) to =. Strange, because it appeared correctly in the text box. Ok, I give up. I don't know why the OP's unicode characters are showing up, but not mine.

Re: to or till (f or t) a non-ascii character

2010-09-21 Thread Ramana Kumar
I haven't seen any Unicode characters from you BC, but if you're using google's text box to send these messages that could be the issue. My original message was sent with gmail web interface, which might (don't know for sure) be more accepting than googlegroups web interface. I got the characters

Toggle line numbering?

2010-09-21 Thread Izaak Khaliq
How to set line number to always on 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: Toggle line numbering?

2010-09-21 Thread Ramana Kumar
set number On Wed, Sep 22, 2010 at 12:33 PM, Izaak Khaliq izaakha...@gmail.com wrote: How to set line number to always on 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

Re: Toggle line numbering?

2010-09-21 Thread Izaak Khaliq
Thanks On Wed, Sep 22, 2010 at 10:35 AM, Ramana Kumar ramana.ku...@gmail.comwrote: set number On Wed, Sep 22, 2010 at 12:33 PM, Izaak Khaliq izaakha...@gmail.com wrote: How to set line number to always on in vimrc? -- You received this message from the vim_use maillist. Do not

Re: why use let str = a:str in a function

2010-09-21 Thread Bee
On Sep 21, 3:30 pm, Israel Chauca F. israelvar...@fastmail.fm wrote: On Sep 21, 2010, at 5:02 PM, Bee wrote: why use let str = a:str in a function Looking at some functions, I have seen let str = a:str a:vars are read-only, read  :h a:var  for more details. Thank you, I missed the

Re: to or till (f or t) a non-ascii character

2010-09-21 Thread Benjamin R. Haskell
On Wed, 22 Sep 2010, Ramana Kumar wrote: I have set up some abbreviations to turn certain ASCII strings into appropriate Unicode counterparts, for example from '==' to '='. This works wonderfully. From equals, equals, greater-than, to equals, greater-than? Must be something about the web

Re: why use let str = a:str in a function

2010-09-21 Thread Benjamin R. Haskell
On Tue, 21 Sep 2010, Bee wrote: On Sep 21, 3:30 pm, Israel Chauca F. wrote: On Sep 21, 2010, at 5:02 PM, Bee wrote: why use let str = a:str in a function Looking at some functions, I have seen let str = a:str a:vars are read-only, read  :h a:var  for more details. Thank you, I missed

Re: to or till (f or t) a non-ascii character

2010-09-21 Thread Ramana Kumar
From equals, equals, greater-than, to equals, greater-than?  Must be something about the web interface. Oh don't worry, all your supposedly Unicode characters also came out in ASCII here. Personally, I find external-to-Vim methods for entering Unicode characters to be much better.  For

Re: Toggle line numbering?

2010-09-21 Thread Zsolt Udvari
Or a shorter version: se nu Zsolt 2010/9/22 Izaak Khaliq izaakha...@gmail.com: How to set line number to always on 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