huangxz的笔记 https://bbs.21ic.com/?73035 [收藏] [复制] [RSS]

日志

vifm normal operation

已有 407 次阅读2017-10-5 08:14 |个人分类:linux|系统分类:职场生涯

copy the current filename and path to system clipboard

check the vifmrc:
" yank current directory path into the clipboard
nnoremap yd :!echo -n %d | xclip %i<cr>
 
" yank current file path into the clipboard

nnoremap yf :!echo -n %c:p | xclip %i<cr>
 
" yank current filename without path into the clipboard

nnoremap yn :!echo -n %c | xclip %i<cr>
 
" yank root of current file's name into the clipboard

nnoremap yr :!echo -n %c:r | xclip %i<cr>

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)