On 07/04/09 18:33, Henry Bush wrote:
>
> I want to save the title of the konsole window when i enter vim, then
> return it back afterwards. The code in my .vimrc atm looks like:
>
>    let $ORIGKONSOLETITLE = system("dcop $KONSOLE_DCOP_SESSION sessionName")
>    autocmd BufReadPost * :silent !dcop $KONSOLE_DCOP_SESSION renameSession %
>    autocmd VimLeave * :!dcop $KONSOLE_DCOP_SESSION renameSession
> $ORIGKONSOLETITLE
>
> But my title doesn't get changed on exit. Bizarrely, if I swap
> $ORIGKONSOLETITLE for $PWD it works.
>
> Does anyone have any clue what might be going on here? The only
> difference between variables seems to be whitespace at the end (which
> I don't seem to be able to get rid of, at least by putting a sed at
> the end of the command on the "let" line).
>
> All suggestions gratefully received :-)

Hm. Maybe all that fancy footwork isn't necessary.

- Make sure you use as Console Vim a version built with +x11 (for 
instance, a GUI-enabled binary).
- Check the output of ":version" for the +title feature.
- See also
        :help +title
        :help +x11
        :help 'title'
        :help 'titlestriing'
        :help 'titlelen'


Best regards,
Tony.
-- 
If a 6600 used paper tape instead of core memory, it would use up tape
at about 30 miles/second.
                -- Grishman, Assembly Language Programming

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to