Vim edit a symlink -
i want edit file (:e) symlink , make vim follow it. dont want default behavior or anything.
i know using resolve , expand can full link.
:echo resolve(expand("~/.vimrc")) prints full link.
i want able this
:e resolve(expand("~/.vimrc")) note: want follow symlink because of context, editing other files in folder , stuff that.
you can insert vimscript expression command-line via <c-r> , expression register =:
:e <c-r>=resolve(expand("~/.vimrc"))<cr><cr> alternatively, files, there's rather obscure backtick expansion of vimscript:
:e `=resolve(expand("~/.vimrc"))`<cr>
Comments
Post a Comment