English 中文(简体)
如何用Vim取代曲线和边界结束之间的所有信件? [复制]
原标题:How can replace all the letters between the cursor and end of the word boundary with Vim? [duplicate]
  • 时间:2012-01-12 11:31:12
  •  标签:
  • vim
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
In Vim: How do I delete a word and go into insert mode?

Vim 我定期结束银chem的yan线,并背后。 然后,我需要取代外地名称。 例如,我有:

`field_name` YEAR(4) NOT NULL,

如果我有<代码>f>>>>的曲线,则 那么,我如何能够取代那里与边界一词之间的所有信函?

I have found that you can use de to delete everything between there and the word boundary, but it doesn t drop into insert mode after the delete so its not truly a replacement operation.

我想要的是,通过你操作<条码>。 (干 t——我受审)。

你们是否知道实现这一目标的关键影响?

最佳回答

应做这项工作——删除并删除。

问题回答

我认为指挥是:<代码>ce。

标准:变化至 2. 采用字句和公式添加数据。

采用指挥方式的Tryciw,将删除该词并插入方式。

In your case both will work. The difference between ce and cw is, that ce looks for the end of the next word. So in case that you cursor is on a blank before field_name, ce would delete the blank and fild_name while cw would only delete the blank space.





相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...

热门标签