Re: how to resize window continuously ?

2012-07-12 Thread Christian Brabandt
On Wed, July 11, 2012 19:33, Andy Wokula wrote: Am 06.06.2012 03:18, schrieb stardiviner: In vim, how to adjust window height or width continuously ? For example, press `C-w -` and `-` and `-` to decrease window height again and again, But this seems can not work in Vim. So is

Re: how to resize window continuously ?

2012-07-12 Thread Andy Wokula
Am 12.07.2012 08:05, schrieb Christian Brabandt: On Wed, July 11, 2012 19:33, Andy Wokula wrote: Am 06.06.2012 03:18, schrieb stardiviner: In vim, how to adjust window height or width continuously ? For example, press `C-w -` and `-` and `-` to decrease window height again and again,

Re: how to resize window (width) continuously ?

2012-07-12 Thread Andy Wokula
Am 12.07.2012 03:16, schrieb chris: Excerpts from [ Andy Wokula ] On [2012-07-11 19:33:24 +0200]: Am 06.06.2012 03:18, schrieb stardiviner: In vim, how to adjust window height or width continuously ? For example, press `C-w -` and `-` and `-` to decrease window height again and

End doesn't work in inoremap

2012-07-12 Thread sinbad
why doesn't the following mapping work. inoremap .ba EscEndi;ESCo if i type (.ba), i am expecting it to become (); __cursor should reach here. but i get the following (;) __cursor comes here -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: how to resize window continuously ?

2012-07-12 Thread Christian Brabandt
On Thu, July 12, 2012 10:19, Andy Wokula wrote: Am 12.07.2012 08:05, schrieb Christian Brabandt: On Wed, July 11, 2012 19:33, Andy Wokula wrote: Am 06.06.2012 03:18, schrieb stardiviner: In vim, how to adjust window height or width continuously ? For example, press `C-w -` and `-` and

Re: Cleaning up the buffer list

2012-07-12 Thread geoffrey . wood
On Thursday, 12 July 2012 00:38:04 UTC+1, Chris Jones wrote: I usually have a single Vim instance that stays up for weeks if not months at a time, such that I eventually have a large number of buffers as listed by the ‘:ls/:buffers’ command.. well over 100 at this point in time. Even though I

Re: Cleaning up the buffer list

2012-07-12 Thread Asis Hallab
2012/7/12 geoffrey.w...@thomsonreuters.com On Thursday, 12 July 2012 00:38:04 UTC+1, Chris Jones wrote: I usually have a single Vim instance that stays up for weeks if not months at a time, such that I eventually have a large number of buffers as listed by the ‘:ls/:buffers’ command..

Re: Vim on Vista: right-click 'Edit with Vim' problem

2012-07-12 Thread emallove
... when I try to open a file by right-clicking and selecting 'Edit with Vim', I get: gvimext.dll error Error creating process: Check if gvim is in your path! I do have C:\Vim\vim71\ in my path. Anyone have any suggestions? I ran into the same problem. A workaround is to start a new

Re: Cannot use vimdiff when started from cygwin

2012-07-12 Thread skeept
is it possible for you to turn off the HTML formatting in whatever client you're using? It isn't translating properly on the Google Groups interface. I don't know what it looks like in an email. Sorry about that, I am just using the page in google groups to write the message, google groups

Fwd: Vim under cygwin

2012-07-12 Thread Andrew Long
Begin forwarded message: From: Long, Andrew andrew.l...@virginmoney.com Subject: Vim under cygwin Date: 12 July 2012 10:18:32 GMT+01:00 To: andrew.l...@mac.com 0126792@XP037234 ~/NRock/Projects/dbJnlStats/working $ vim -gS Session.vim cygwin warning: MS-DOS style path detected:

Re: source a file of commands as a script

2012-07-12 Thread Ben Fritz
On Wednesday, July 11, 2012 10:53:42 PM UTC-5, Bee wrote: source a file of commands as a script I have a file that has commands to convert vCard email addresses to tab delimited. The file has many commands and works great. I also tried bracketing all the commands with function! ... endf

[Off-topic] Google groups interface and HTML

2012-07-12 Thread Ben Fritz
On Thursday, July 12, 2012 8:28:52 AM UTC-5, skeept wrote: gt; is it possible for you to turn off the HTML formatting in whatever client you#39;re using? It isn#39;t translating properly on the Google Groups interface. I don#39;t know what it looks like in an email. Sorry about that, I am

Re: End doesn't work in inoremap

2012-07-12 Thread Ben Fritz
On Thursday, July 12, 2012 3:35:14 AM UTC-5, sinbad wrote: why doesn#39;t the following mapping work. inoremap .ba EscEndi;ESCo if i type (.ba), i am expecting it to become You are triggering your mapping before typing the final ). So the sequence Vim sees is: ( - insert a

Re: End doesn't work in inoremap

2012-07-12 Thread Ben Fritz
On Thursday, July 12, 2012 12:37:53 PM UTC-5, Ben Fritz wrote: I actually expect you'd get this: ;) )__cursor here Oops, make that: ;( )__cursor here__ -- 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: [Off-topic] Google groups interface and HTML

2012-07-12 Thread Ben Fritz
On Thursday, July 12, 2012 12:29:09 PM UTC-5, Ben Fritz wrote: Now, that#39;s funny. I#39;ve never had problems with it before. I#39;m using the Google Groups interface as well, but somehow this list uses a plaintext while other lists I#39;m on use quot;rich textquot; editors. I#39;m not

Re: [Off-topic] Google groups interface and HTML

2012-07-12 Thread Bram Moolenaar
Ben Fritz wrote: On Thursday, July 12, 2012 8:28:52 AM UTC-5, skeept wrote: gt; is it possible for you to turn off the HTML formatting in whatever client you#39;re using? It isn#39;t translating properly on the Google Groups interface. I don#39;t know what it looks like in an email.

Re: vim: session of sessions

2012-07-12 Thread ping
On 07/11/2012 11:09 PM, Ben Fritz wrote: On Wednesday, July 11, 2012 5:36:02 PM UTC-5, ping wrote: On 7/11/2012 5:52 PM, Ben Fritz wrote: gt; On Wednesday, July 11, 2012 2:25:58 PM UTC-5, ping wrote: gt;gt; //my thought and need help on: gt;gt; how do I aggregate all vim sessions in one vim

Float printf, floor and float2nr differ

2012-07-12 Thread richard emberson
let p = 0.705882352941176 let pf = p * 255 echo pf echo printf(%.10f,pf) echo float2nr(pf) echo floor(pf) 180.0 180.00 179 179.0 I have a Vim script app that converts between RGB numbers and HSV floats. One would expect that going from RGB to HSV and back to RGB would result in the

Re: vim: session of sessions

2012-07-12 Thread Simon Ruderich
On Wed, Jul 11, 2012 at 03:25:58PM -0400, ping wrote: [snip] * switching beyond 9 windows is painful in screen, if you ever use it. I know you wanted to look at the Vim-side of the problem, but switching to windows 9 in GNU screen really is painful. The following mapping helps me handling my

vim : fold expansion and refresh

2012-07-12 Thread ping
guys: everytime I expand the fold , I notice the text got a little bit messed up somewhere, c-l quickly clean it nicely. so if I map l as following: :map l zoC-l it works fine, except I can't use its normal function (move right). how to solve this issue? my guess there should be a small

Re: vim : fold expansion and refresh

2012-07-12 Thread sc
On Thu, Jul 12, 2012 at 04:22:29PM -0400, ping wrote: guys: everytime I expand the fold , I notice the text got a little bit messed up somewhere, c-l quickly clean it nicely. so if I map l as following: :map l zoC-l it works fine, except I can't use its normal function (move right). how to

Re: vim : fold expansion and refresh

2012-07-12 Thread Chris Jones
On Thu, Jul 12, 2012 at 04:22:29PM EDT, ping wrote: everytime I expand the fold , I notice the text got a little bit messed up somewhere, c-l quickly clean it nicely. [..] Shot in the dark.. but does this happen under GNU/screen..? In a terminal? This Control+L business sounds suspiciously

Re: vim : fold expansion and refresh

2012-07-12 Thread Paul Isambert
ping songpingem...@gmail.com a écrit: guys: everytime I expand the fold , I notice the text got a little bit messed up somewhere, c-l quickly clean it nicely. so if I map l as following: :map l zoC-l it works fine, except I can't use its normal function (move right). how to solve this

Re: vim : fold expansion and refresh

2012-07-12 Thread Andy Wokula
Am 12.07.2012 22:55, schrieb sc: On Thu, Jul 12, 2012 at 04:22:29PM -0400, ping wrote: guys: everytime I expand the fold , I notice the text got a little bit messed up somewhere, c-l quickly clean it nicely. so if I map l as following: :map l zoC-l it works fine, except I can't use its

Re: vim : fold expansion and refresh

2012-07-12 Thread ping
this works! thanks! now I learned that foldclosed function. the expr literal param is a bonus to learn at well. regards ping On 07/12/2012 05:31 PM, Andy Wokula wrote: :nn expr l foldclosed(.)=1 ? zoC-L : l -- You received this message from the vim_use maillist. Do not top-post! Type

Re: vim : fold expansion and refresh [resolved]

2012-07-12 Thread ping
On 07/12/2012 05:45 PM, ping wrote: this works! thanks! now I learned that foldclosed function. the expr literal param is a bonus to learn at well. regards ping On 07/12/2012 05:31 PM, Andy Wokula wrote: :nn expr l foldclosed(.)=1 ? zoC-L : l -- You received this message from the

Re: vim: session of sessions

2012-07-12 Thread Thomas Adam
On 12 July 2012 21:12, Simon Ruderich si...@ruderich.org wrote: Btw. I haven't found a good way to perform the same in tmux, suggestions are very welcome. choose-window choose-tree -- Thomas Adam -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Overriding setlocal in session files

2012-07-12 Thread Tim Johnson
For a long time I have had the following in my .vimrc autocmd BufRead,BufNewFile *.js setlocal shiftwidth=2 tabstop=2 Thus, numerous session files have those settings. Now I have changed my .vimrc to autocmd BufRead,BufNewFile *.js setlocal shiftwidth=4 tabstop=4 *But* the now-desirable setting

Re: Cleaning up the buffer list

2012-07-12 Thread Chris Jones
On Thu, Jul 12, 2012 at 06:34:32AM EDT, geoffrey.w...@thomsonreuters.com wrote: [..] I have set hidden in my vimrc so I end up with a lot of buffers in the list. Good to know I'm not alone.. :-) Mind you, some might argue that you're not really supposed to use the :ls command at all.. so

Re: Cleaning up the buffer list

2012-07-12 Thread Chris Jones
On Thu, Jul 12, 2012 at 01:58:24AM EDT, Christian Brabandt wrote: On Thu, July 12, 2012 01:38, Chris Jones wrote: [..] Has anyone looked into buffer list manipulation before and could advise on a different approach suggest how I might be able to come up with something a bit less

Re: how to resize window (width) continuously ?

2012-07-12 Thread ping
On 7/11/2012 9:16 PM, chris wrote: Excerpts from [ Andy Wokula ] On [2012-07-11 19:33:24 +0200]: Am 06.06.2012 03:18, schrieb stardiviner: In vim, how to adjust window height or width continuously ? For example, press `C-w -` and `-` and `-` to decrease window height again and

Re: how to resize window (width) continuously ?

2012-07-12 Thread ping
On 7/12/2012 11:17 PM, ping wrote: On 7/11/2012 9:16 PM, chris wrote: Excerpts from [ Andy Wokula ] On [2012-07-11 19:33:24 +0200]: Am 06.06.2012 03:18, schrieb stardiviner: In vim, how to adjust window height or width continuously ? For example, press `C-w -` and `-` and `-` to

Re: Re: vim: use external program, but direct output to a new vsplitted buffer

2012-07-12 Thread Benjamin Fritz
On Thu, Jul 12, 2012 at 4:24 PM, ping songpingem...@gmail.com wrote: hi Ben: just came cross this tiny issue again, so shouldn't :','w !asciidoc exactly the same as: :','!asciidoc ? Nope! The first is using the :w command to pass some lines to an external command. The second is

Re: Overriding setlocal in session files

2012-07-12 Thread Ben Fritz
On Thursday, July 12, 2012 7:47:22 PM UTC-5, Tim Johnson wrote: For a long time I have had the following in my .vimrc autocmd BufRead,BufNewFile *.js setlocal shiftwidth=2 tabstop=2 Thus, numerous session files have those settings. Now I have changed my .vimrc to autocmd BufRead,BufNewFile