Last Updated: February 25, 2016
·
1.239K
· timusg

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>