Re: Cleaning up the buffer list

2012-07-13 Thread Vlad Irnov
On Jul 12, 10:54 pm, Chris Jones cjns1...@gmail.com wrote: 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

Re: vim: session of sessions

2012-07-13 Thread Simon Ruderich
On Thu, Jul 12, 2012 at 11:04:38PM +0100, Thomas Adam wrote: 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 Sorry, I wasn't precise enough. I'm looking for a way to use ^a ;

Re: Float printf, floor and float2nr differ

2012-07-13 Thread Andy Wokula
Am 12.07.2012 22:10, schrieb 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

Re: Cleaning up the buffer list

2012-07-13 Thread geoffrey . wood
On Friday, 13 July 2012 03:22:49 UTC+1, Chris Jones wrote: On Thu, Jul 12, 2012 at 06:34:32AM EDT, Geoff wrote: gt; You can also use :bd to unload the buffer and delete it from gt; the list once you#39;ve finished with it, to avoid leaving it gt; in the buffer list. Possibly a dangerous

Re: Cleaning up the buffer list

2012-07-13 Thread Vlad Irnov
On Jul 12, 10:54 pm, Chris Jones cjns1...@gmail.com wrote: 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

Determine the buffer that was last closed

2012-07-13 Thread Axel Bender
Is there a way to determine the number/name of the buffer that was last closed with :bd? -- 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

Change the command line

2012-07-13 Thread Axel Bender
Is there a way to change the content of the command line from within a function? -- 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: End doesn't work in inoremap

2012-07-13 Thread sinbad
On Thursday, July 12, 2012 11:08:44 PM UTC+5:30, Ben Fritz wrote: On Thursday, July 12, 2012 12:37:53 PM UTC-5, Ben Fritz wrote: gt; I actually expect you#39;d get this: gt; gt; ;) gt; )__cursor here gt; Oops, make that: ;( )__cursor here__ ok, i should have made it explicit.

Re: Change the command line

2012-07-13 Thread Tim Chase
On 07/13/12 07:10, Axel Bender wrote: Is there a way to change the content of the command line from within a function? I think you'd have to explain a bit more what you're trying to do and how your function is invoked. The content of the previous command-line is available in the : register, so

Re: Change the command line

2012-07-13 Thread Andy Wokula
Am 13.07.2012 14:10, schrieb Axel Bender: Is there a way to change the content of the command line from within a function? A very unspecific question. You can make the *result* of a function change the cmdline. I assume you want :h c_CTRL-\_e or :h c_CTRL-R_= -- Andy -- You

Re: Determine the buffer that was last closed

2012-07-13 Thread Andy Wokula
Am 13.07.2012 14:09, schrieb Axel Bender: Is there a way to determine the number/name of the buffer that was last closed with :bd? :au BufDelete * let g:last_deleted_buf = expand(abuf) -- Andy -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: Cannot use vimdiff when started from cygwin

2012-07-13 Thread skeept
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: Cleaning up the buffer list

2012-07-13 Thread Chris Jones
On Fri, Jul 13, 2012 at 06:31:40AM EDT, geoffrey.w...@thomsonreuters.com wrote: [..] I'm glad you asked actually - I set hidden a couple of years ago and I definitely had a good reason at the time, but I find I'm no longer sure what it was. [..] For instance, I start making changes to a

Re: End doesn't work in inoremap

2012-07-13 Thread Ben Fritz
On Friday, July 13, 2012 7:21:15 AM UTC-5, sinbad wrote: actually by removing the ESC in the mapping it worked as expected, not sure why. Because Esci moves the cursor to the left. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Cannot use vimdiff when started from cygwin

2012-07-13 Thread Ben Fritz
On Friday, July 13, 2012 8:16:44 AM UTC-5, skeept wrote: what I would like to have is if has(quot;win32quot;) and shell.find(#39;bash#39;) gt;= 0 quot;let $TMP = #39;c:\\htemp\\tmp#39; set shell=C:\Windows\System32\cmd.exe quot;set shellxquote=( endif my question now is how do

Re: Change the command line

2012-07-13 Thread Axel Bender
Thanks Andy. This one is on me... I want to change the command line in the way - a not existing function - setcmdline() would do. The function would keep running (a kind of command parser if you like) until the user hits e.g. CR. -- You received this message from the vim_use maillist. Do not

Re: Determine the buffer that was last closed

2012-07-13 Thread Axel Bender
So there's no builtin function that returns that value... Ok, thanks! Greetings Axel -- 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: End doesn't work in inoremap

2012-07-13 Thread Gautam Kotian (Googie)
On Fri, Jul 13, 2012 at 5:51 PM, sinbad sinbad.sin...@gmail.com wrote: actually by removing the ESC in the mapping it worked as expected, not sure why. Because in normal mode, END puts the cursor *on* the last character of the line; and i would begin inserting *before* the last character.

Re: vim: session of sessions

2012-07-13 Thread S. Cowles
On Wed, 11 Jul 2012, ping wrote: //what's my current issue then: now, it looks I easily run into a situation when I have 9+ screen sessions (or windows in GNU screen term) in a GNU screen instance, but still need some new ones. ... * switching beyond 9 windows is painful in screen, if you ever

Re: Cannot use vimdiff when started from cygwin

2012-07-13 Thread skeept
On Friday, July 13, 2012 10:13:22 AM UTC-5, Ben Fritz wrote: On Friday, July 13, 2012 8:16:44 AM UTC-5, skeept wrote: gt; gt; what I would like to have is gt; if has(amp;quot;win32amp;quot;) and shell.find(amp;#39;bashamp;#39;) amp;gt;= 0 gt; amp;quot;let $TMP =

Quickfix and Perl - Vim won't jump to my next compilation error

2012-07-13 Thread mascip
Hi all, i'm a Vim beginner (using version 7.3.46), beginner Perl programmer too. I'm using perl-support, and all works well, but one thing : i can't get Vim to jump to my compilation errors. Which it is supposed to do thanks to Quickfix. In my .pl file, i have the line use Vi::QuickFix; When i

Re: vim: session of sessions

2012-07-13 Thread ping
On 07/13/2012 12:58 PM, S. Cowles wrote: On Wed, 11 Jul 2012, ping wrote: //what's my current issue then: now, it looks I easily run into a situation when I have 9+ screen sessions (or windows in GNU screen term) in a GNU screen instance, but still need some new ones. ... * switching

vim: remember search ex cmd history across vim reload

2012-07-13 Thread ping
hi: I kind of forgot somewhere (maybe user-manual) I saw a way to make vim remember all search ex cmd history, across vim instances, even remember all history info after a vim reload. but I couldn't find out how. is it viminfo manipulation or something else? I need this since I find it might

scripting make and quickfix window behaviour

2012-07-13 Thread Marc Jessome
Hi, I'm writing a script that will allow for what I feel is a more comfortable :make + :copen behaviour. Essentially what I am writing is a function that will run :make!, and check if there are errors. If errors are present, it will open a new tab and :copen the quickfix at the bottom of that