Vi本质上是不及物动词,不能直接跟宾语。它需要适当的介词,如to、of、at等。每个动词后面到底加了什么介词,必须和动词短语联系起来。vt的性质是及物动词,可以直接跟宾语,不用介词搭配就可以直接使用。
I use gvim in windows. How do I copy text from the current pos开发者_如何转开发ition to the end of the line in vi and paste it in another file opened in vi?The normal-mode command to move to the end o
I need to paste some selected block in visual mode to outside of vim. Currently I need to select this block manually from mouse to paste outside of vim.
I want to delete say last 10 lines and move it to another file. What I currently do is: select last 10 lines in visual mode,
I\'m using vi(m) to edit a shell script and when I insert a comment and type , the new line came with a comment already.
While editing a file in Vim, I tried to do a global search and replace, but I accidentally hit enter after typing this:
I like switching my focus back and forth between the NERDTREE pane and a file and the command Ctrl-ww accomplishes this.I\'d lik开发者_开发知识库e to map this to <Leader>w but variations of map
I have vi insert mode problem. I cannot go into \"insert mode.\" I messed around with environmental variables in terminal; I believe I messed something up big time.
Generally on a unix system, there is a global vimrc file in the directory /etc or /etc/vim.You can also have a .vimrc file in your home directory that can customize your vi session.
I\'m using Mac Lion 10.7.1, MacVim Snapshot 61, Vim version 7.3 I want to save the session on quit and restore the last session on Vim start without any arguments.