글
vim 갖다 붙이기 ex mode
우분투
2012. 12. 31. 16:50
You can use one of the following to copy from the clipboard in Vim:
"+p
"*p
SHIFTINSERT
Which one you use depends on your environment.
If you're using gVim or MacVim, you'll want "+p
If you're using Vim from the command line, you'll want "*p
If you're in insert mode or ex mode (I think) you use SHIFTINSERT
백북에서 insert는 fn Enter
By insert I mean the key over by HOME, PAGE UP, and DELETE
Explanation:
"
means you're going to specify a register- there are 26 custom registers - 1 for each letter
- there are many other registers (see this)
+
or"
refers to the unnamed buffer, which represents the system clipboardp
is the normal put command
More info on buffers:
If you want, you can store different text in different buffers.
To yank 3 lines to the buffer named x use this:
"x3yy
To paste the contents of the buffer named y above the cursor:
"yP
'우분투' 카테고리의 다른 글
리눅스 디렉토리 구조 훔쳐보기 (0) | 2011.11.13 |
---|---|
웹브라우저에서 디렉토리 리스트가 보일때 index 를 없애려면, Robot.txt 작성법 (1) | 2011.11.04 |
vi vim 으로 source code과 navigation을 해 보자. close tag까지 - grep (0) | 2011.10.18 |
[How To] Solution for sudo: must be setuid root problem (0) | 2011.10.02 |
포트번호로 아파치 가상 호스트 설정하기 Virtual hosting과 동작하지 않을 때 (2) | 2011.10.01 |