vimfiles icon indicating copy to clipboard operation
vimfiles copied to clipboard

Suggestion:

Open dvidsilva opened this issue 12 years ago • 0 comments

I have this function that as soon as i enter a buffer it will change its working dir so when i use :tabe or :e I can search for files relative to the current one.

function! CHANGE_CURR_DIR()
    let _dir = expand("%:p:h")
        exec "cd " . _dir
    unlet _dir
endfunction
autocmd BufEnter * call CHANGE_CURR_DIR()
set statusline=%<%f%h%m%r%=%{&ff}\ %l,%c%V\ %P

dvidsilva avatar Jul 02 '13 19:07 dvidsilva