Re: Setting titleold does not work
Hi, Ryan wrote: I've tried to set the title as shown in the docs: set title let titlestring = titlestring let titleold = titleold The title string works just fine. But, the title old does not appear to work. I am using xterm in Yakuake Version 2.9.6 KDE Dev Platform 4.4.5 The title after a quit is Yakuake. to me this seems to be correct. :help 'titleold' says that this option is *only* used if the original title cannot be restored. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: empty bufname('%') for quick fix, location list and preview window.
On Tuesday, May 14, 2013 2:45:16 PM UTC-5, Christian Brabandt wrote: Anyway, I am not aware of any option you can check to differentiate between quickfix and location lists. You could try to check the w:quickfix_title variable, it could give a clue. I did this differently. In an ftplugin file for qf type, I actually store off the current window number, call :copen, and check to see whether the current window number is still the same. Note you need to have a guard variable to prevent recursion. if buftype=='quickfix' if !exists('s:processing') let listbufnr = bufnr(%) let numwindows = winnr('$') let curwin = winnr() let s:processing = 1 copen call setbufvar(listbufnr, 'errorlist_type', (curwin == winnr() ? quickfix' : 'location')) close the quickfix list if it was closed when we began if numwindows != winnr('$') cclose endif return to quickfix/location list exe curwin 'wincmd w' unlet s:processing endif endif Now b:errorlist_type holds the type of quickfix list. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Setting titleold does not work
On Tuesday, 14 May, 2013 at 23:48:26 BST, Ryan wrote: I've tried to set the title as shown in the docs: set title let titlestring = titlestring let titleold = titleold Shouldn't you be setting it instead of letting it? -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: vim: drawing a real graph from VIM (drawit , asciio, shaape, ...)
This is actually really fantastic. I suck at drawing, but I do not suck at Vim. :) On Mon, May 13, 2013 at 2:03 PM, ping songpingem...@gmail.com wrote: look at [this](http://pinggit.github.**io/tech/2013/04/29/ascii-art-** shaape/ http://pinggit.github.io/tech/2013/04/29/ascii-art-shaape/) , and you will know what I'm going to talk here... so I am a [drawit])(http://www.vim.org/**scripts/script.php?script_id=**40http://www.vim.org/scripts/script.php?script_id=40) lover, but I never thought that my asciiart produced by drawit, can be further piped into another brother tool [shaape](https://github.com/** christiangoltz/shaape https://github.com/christiangoltz/shaape), to generate a **REAL** more decent picture, like [these]( http://pinggit.github.**io/tech/2013/04/29/ascii-art-**shaape/http://pinggit.github.io/tech/2013/04/29/ascii-art-shaape/) examples the asciiart source files are in [here]( http://pinggit.github.**io/docs/asciiart-network-**topology.txthttp://pinggit.github.io/docs/asciiart-network-topology.txt ) and [here](http://pinggit.github.**io/docs/flow-chart.txthttp://pinggit.github.io/docs/flow-chart.txt ). it works so nice that just as if Dr. chip and christiangoltz are working together in the same project: drawing a real, graphic picture/chat from inside VIM! the only pity is, there is no (yet) an [asciio](http://search.cpan.** org/dist/App-Asciio/lib/App/**Asciio.pmhttp://search.cpan.org/dist/App-Asciio/lib/App/Asciio.pm) equivalence in vim... just for fun. :D regards ping -- -- 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.**phphttp://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@**googlegroups.comvim_use%2bunsubscr...@googlegroups.com . For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Setting titleold does not work
On 2013-05-15, Paul wrote: On Tuesday, 14 May, 2013 at 23:48:26 BST, Ryan wrote: I've tried to set the title as shown in the docs: set title let titlestring = titlestring let titleold = titleold Shouldn't you be setting it instead of letting it? let name is the same as set name. See :help :let- Regards, Gary -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: empty bufname('%') for quick fix, location list and preview window.
Thanks. That is one of a way to do it. another way I notice it to parse the `ls` result. I have something like this in my environment (MacVim). 16 a- [Location List] line 0 17 %a- [Quickfix List] line 1 Do you get the same results? Thanks. On May 15, 2013, at 11:18 AM, Ben Fritz fritzophre...@gmail.com wrote: On Tuesday, May 14, 2013 2:45:16 PM UTC-5, Christian Brabandt wrote: Anyway, I am not aware of any option you can check to differentiate between quickfix and location lists. You could try to check the w:quickfix_title variable, it could give a clue. I did this differently. In an ftplugin file for qf type, I actually store off the current window number, call :copen, and check to see whether the current window number is still the same. Note you need to have a guard variable to prevent recursion. if buftype=='quickfix' if !exists('s:processing') let listbufnr = bufnr(%) let numwindows = winnr('$') let curwin = winnr() let s:processing = 1 copen call setbufvar(listbufnr, 'errorlist_type', (curwin == winnr() ? quickfix' : 'location')) close the quickfix list if it was closed when we began if numwindows != winnr('$') cclose endif return to quickfix/location list exe curwin 'wincmd w' unlet s:processing endif endif Now b:errorlist_type holds the type of quickfix list. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: empty bufname('%') for quick fix, location list and preview window.
Hi Zhao! On Mi, 15 Mai 2013, Zhao Cai wrote: Thanks. That is one of a way to do it. another way I notice it to parse the `ls` result. I have something like this in my environment (MacVim). 16 a- [Location List] line 0 17 %a- [Quickfix List] line 1 Do you get the same results? Not necessarily, since those strings can be localized. regards, Christian -- Erst wenn es um unbedeutenden Kleinkram geht, werden Auseinandersetzungen wirklich bitter. -- Henry A. Kissinger -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.