Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Suggestion: #9

Open
dvidsilva opened this Issue · 0 comments

1 participant

Dvid Silva
Dvid Silva

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.