Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func! GetVirtualEnv()
- let virtualenv = system("basename -- \"$(echo -n $VIRTUAL_ENV)\" | tr -d '\n'")
- if !empty(virtualenv)
- return "virtualenv: ".virtualenv
- endif
- return ""
- endfunc
- set statusline+=%{GetVirtualEnv()}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement