On 18/12/08 13:03, Nicolas Aggelidis wrote:
> Thank you guys for your answers! i think the problem is solved!
>
> amenu<silent>&simple.Enable\ autochdir :set autochdir<cr>
> amenu<silent>&simple.Disable\ autochdir :set noautochdir<cr>
> amenu<silent>&simple.autochdir\ Status :verbose set autochdir?<cr>
>
>
> i have added a menu so that i can disable and enable autochdir with buttons.
>
> i have 2 questions concerning the menu:
>
> * is there any way to make an entry toggle-autochdir that will toggle
> the the autochdir option?
amenu <silent> &simple.Toggle\ autochdir :set autochdir!<CR>
(":set invautochdir" would also work, and you can shorten 'autochdir' to
'acd'
>
> *how can i present the state of autochdir in the status line?
>
> currently i have the following:
>
> set statusline=[FORMAT=%{&ff}]\ [TYPE=%Y]\
> [Line,Column]=[%04l,%04v][%p%%]\ [%L\ Lines]\ [FILE=%F%m%r%h%w]
e.g. add somewhere in your custom status line
%{&acd?'[acd]':''}
BTW your statusline looks wasteful of screen space. I use
if has("statusline")
set statusline=%<%f\ %h%m%r%=%k[%{(&fenc\ ==\
\"\"?&enc:&fenc).(&bomb?\",BOM\":\"\")}][U+%04B]\ %-12.(%l,%c%V%)\ %P
endif
>
> thanks in advance for your answers,
>
> nicolas
Best regards,
Tony.
--
Death is only a state of mind.
Only it doesn't leave you much time to think about anything else.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---