Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels