Copy current file path in vim
place the following in .vimrc file to quickly copy current filepath:linenumber by pressing ,c , useful for copy spec path and further execute in shell.
nnoremap ,c :let @* = expand("%:p").":".line('.')<cr>
Written by sumit gupta
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#