[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [VI] Faneblade og working directory



Jeg har nu prøvet at indsætte følgende i min .vimrc:

function! SaveCurrentWorkingDirectory()
    let t:cwd = getcwd()
endfunction

function! RestoreCurrentWorkingDirectory()
    silent! exec ":cd" t:cwd
endfunction

if has("autocmd")
    filetype plugin on

    autocmd TabLeave :call SaveCurrentWorkingDirectory()
    autocmd TabEnter :call RestoreCurrentWorkingDirectory()
endif

Som vist burde virke :-)
Men det gør det ikke. Jeg prøvede at udskifte autocmd linjerne med:

    autocmd TabLeave :call confirm("Leave")
    autocmd TabEnter :call confirm("Enter")

Men de bliver ikke kaldt. Funktionerne virker hvis jeg kalder dem manuelt.
Hvad kan der være galt ?


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-06-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *