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,BufNewFi

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 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 invoking the ex

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 dec

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 again,

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 c

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

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: vim: session of "sessions"

2012-07-12 Thread Thomas Adam
On 12 July 2012 21:12, Simon Ruderich 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 the text you a

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 literal param is a bonus to learn at well. regards ping On 07/12/2012 05:31 PM, Andy Wokula wrote: :nn l foldclosed(".")>=1 ? "zo" : "l" -- You received this message from the "vim_u

Re: vim : fold expansion and refresh

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

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 zo it works fine, except I can't use its normal

Re: vim : fold expansion and refresh

2012-07-12 Thread Paul Isambert
ping 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 zo > it works fine, except I can't use its normal function (move right). > how to solve this issue? > my gues

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 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 zo > it works fine, except I can't use its normal function (move right). > h

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 zo 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 script/f

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

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 ori

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: > On Wednesday, July 11, 2012 2:25:58 PM UTC-5, ping wrote: >> //my thought and need help on: >> how do I aggregate all vim sessions in one vim instance, but

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: > > > 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. > > >

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's funny. I've never had problems with it before. I'm > using the Google Groups interface as well, but somehow this list uses a > plaintext while other lists I'm on use "rich text" editors. > I'm not sure if there's a h

Re: 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

Re: 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't the following mapping work. > > inoremap .ba i;o > > 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 parenthesis .ba

[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: > > 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 u

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! .

Fwd: Vim under cygwin

2012-07-12 Thread Andrew Long
Begin forwarded message: > From: "Long, Andrew" > 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: C:\winnt\profiles\0

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 grou

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 s

Re: Cleaning up the buffer list

2012-07-12 Thread Asis Hallab
2012/7/12 > 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 i

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 thoug

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-

doesn't work in inoremap

2012-07-12 Thread sinbad
why doesn't the following mapping work. inoremap .ba i;o 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 the text y

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 again

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,