1fb7caebfe6f129d1719d721879e4ff3d03e6c9d
software/vim.md
... | ... | @@ -235,6 +235,12 @@ save file as new file in dir of current buffer |
235 | 235 | `'` add a closing quote |
236 | 236 | `<enter>` finish editing the macro |
237 | 237 | |
238 | +## insert full path of current file |
|
239 | +``` |
|
240 | +"%p |
|
241 | +:put=expand('%:p') |
|
242 | +``` |
|
243 | + |
|
238 | 244 | [using_spellcheck]: https://www.linux.com/learn/using-spell-checking-vim |
239 | 245 | [faq]: http://vim.wikia.com/wiki/Vim_buffer_FAQ |
240 | 246 | [vanilla vim]: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins |