问问题
324 次
1 回答
3
:%w !pastebinit
会将整个缓冲区发送到pastebinit
并回显粘贴的 url。
您可以使用范围:
:.w !pastebinit
:10,24w !pastebinit
或视觉选择:
vjjj
:'<,'>w !pastebinit
见:help :w_c
。
您可以使用以下命令将其转换为实用的自定义命令:
" Mac OS X
command! -range=% Paste silent execute <line1> . "," . <line2> . "w !pastebinit | tr -d '\\n' | pbcopy"
" Other Unices
command! -range=% Paste silent execute <line1> . "," . <line2> . "w !pastebinit | tr -d '\\n' | xclip -i -selection clipboard"
于 2016-10-18T16:30:19.077 回答