Given this situation:cd ~/templn -s /var/lib/alsa alsacd alsapwd -> /home/<username>/temp/alsaBut if I open some file in the directory output of pwd, the vim statusline gives me:/var/lib/alsa/asound.stateHow can I make it show the pwd result, and not follow the link?I'm using:set statusline=%F%=%m\ %y\ \%r\ %1*\ \%l\:\%c\ \%2*\ \ \%p%%\ \ 
Vim - statusline and links
linux;vim
@Gnouc's answer goes into the right direction, but you must not invoke an external command from within the statusline evaluation! This will spawn a new process on every cursor move and typed character, and drag down Vim's performance (as you've experienced).Better split this into two parts: an :autocmd that updates a variable whenever the current buffer changes, and a very efficient consumption of that variable in the statusline itself:set statusline=%{exists('b:actualCwd')?b:actualCwd:getcwd()}/%f%=%m\ %y\ \%r\ %1*\ \%l\:\%c\ \%2*\ \ \%p%%\ \ autocmd BufEnter * let b:actualCwd = system('echo -n $(pwd -L)')