vim下怎么拷贝字符串到命令行

辧聪 2016-10-12 05:06:27

用的是putty, vim 插件. 拷贝黄色位置字符串,到黄色命令行位置
...全文
716 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
辧聪 2016-10-28
  • 打赏
  • 举报
回复
3楼可以,9 楼也了解过,需要安装vim插件,跟版本源有关,不方便实现
mhpmii 2016-10-26
  • 打赏
  • 举报
回复
一帮情况下选中就是复制,vim的配置文件有个鼠标模式选项,我忘了怎么配置,如果配置成某种模式,就不能用鼠标选了,要按住ctrl才能选
eziowayne 2016-10-24
  • 打赏
  • 举报
回复
引用 6 楼 mymtom 的回复:
楼上两位,PuTTY不支持右键菜单哦!
PuTTY支持右键菜单的,不过要按住Ctrl键才行。
大V小伙伴 2016-10-18
  • 打赏
  • 举报
回复
按i进入编辑状态,,,右键 粘贴
mymtom 2016-10-18
  • 打赏
  • 举报
回复 2
yw 然后 :CTRL+R 0 ================================================ :help cmdline-editing .... CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>* Insert the contents of a numbered or named register. Between typing CTRL-R and the second character '"' will be displayed to indicate that you are expected to enter the name of a register. The text is inserted as if you typed it, but mappings and abbreviations are not used. Command-line completion through 'wildchar' is not triggered though. And characters that end the command line are inserted literally (<Esc>, <CR>, <NL>, <C-C>). A <BS> or CTRL-W could still end the command line though, and remaining characters will then be interpreted in another mode, which might not be what you intended. Special registers: '"' the unnamed register, containing the text of the last delete or yank '%' the current file name '#' the alternate file name '*' the clipboard contents (X11: primary selection) '+' the clipboard contents '/' the last search pattern ':' the last command-line '-' the last small (less than a line) delete '.' the last inserted text ....
糊涂的小白 2016-10-18
  • 打赏
  • 举报
回复
引用 6 楼 mymtom 的回复:
楼上两位,PuTTY不支持右键菜单哦!
无须右键菜单。putty的默认摸索是:左键选中即复制,右键即粘贴(不会显示菜单,putty中点右键功能与在记事本中ctrl+v一样)
mymtom 2016-10-18
  • 打赏
  • 举报
回复
楼上两位,PuTTY不支持右键菜单哦!
糊涂的小白 2016-10-18
  • 打赏
  • 举报
回复
直接用鼠标最便捷:选中你要复制的字符串,然后在命令行输入模式下右键
yanjfwanghf 2016-10-12
  • 打赏
  • 举报
回复
选中要复制单词 在vim普通模式下输 ”+y 在命令行 Ctrl + V ?
cocoabird 2016-10-12
  • 打赏
  • 举报
回复
复制之后右键粘贴?

23,118

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧