Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: #9

Open
dvidsilva opened this issue Jul 2, 2013 · 0 comments
Open

Suggestion: #9

dvidsilva opened this issue Jul 2, 2013 · 0 comments

Comments

@dvidsilva
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant