vim tips
vim tips

vim tips

流浪 posted @ 2007年8月16日 01:23 in Vim tips with tags vimtips 粘贴 , 5094 阅读

在网页上复制了一些内容,在vim下用命令完成粘贴:

"+p

想在vim中用命令复制一些内容,粘贴在网页中,也同样可以选中后用:

"+y

复制到系统剪贴板中。

在vim中“+”寄存器用的是系统剪贴板。

Avatar_small
zhu 说:
2007年8月16日 03:16

嘿,好像不如点 VIM 中的粘贴更快一点           

Avatar_small
流浪 说:
2007年8月16日 03:24
引用来自:zhu @ 2007年08月15日 07:16PM

嘿,好像不如点 VIM 中的粘贴更快一点           

我从终端打开的vim,终端的工具栏被我屏弊了。没命令搞不定。

Avatar_small
galeki 说:
2007年8月16日 06:21

确实按3个键有点麻烦,可以自己map一下:

map ^C "+y
map ^Q "+p

这样和在win的习惯差不多,ctrl-c是复制,ctrl-q是粘贴,ctrl-v默认是vim的列选择命令,覆盖不了。

Avatar_small
lyanry 说:
2007年8月16日 06:48

成 bbs 了。

灌水。

Avatar_small
流浪 说:
2007年8月16日 18:36
引用来自:lyanry @ 2007年08月15日 10:48PM

成 bbs 了。

灌水。

Avatar_small
Angluca 说:
2010年2月09日 22:47

我觉得完全没有必要写在VIMRC里浪费快捷键,也不要用WIN模式的,VIM本身就有复制和粘贴的快捷键
CTRL+DEL 复制
SHIFT+DEL 粘贴
跟TERMINATAL一样..好使得很

Avatar_small
Angluca 说:
2010年2月09日 23:21

@Angluca: 抱歉- -..把DEL改成INSERT..囧

Avatar_small
PSEB 11th Question P 说:
2022年8月19日 21:42

The Punjab Board Class 11th Important Model Question Paper 2023 would be helpful to those who desire to succeed in the Class 11 Punjab Board Exam. Due to a more precise indication of the assignments and tests they will be expected to complete during the academic year, students will be better equipped to handle the Punjab Board 11th Grade. PSEB 11th Question Paper 2023 It will be important for students to participate in its creation, and a well-designed Subjects Wise Important Model Question Paper 2023 will work to make it as interactive as possible by including students in the process of making it.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter