copy absolute path of opened file in vi code example Example: vim display the path Pressing 1 followed by Ctrl+G shows the full path of the current file.