- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
gvim(国外英文资料)
gvim(国外英文资料)
There are quite a few options available for customization in VIM, as a beginner, we dont need to know so much. Below, the yunnan fox lists some of the most commonly used configurations that you can add to your own. Vimrc, depending on your needs.
1 basic setup
The set nocp
This command specifies that VIM work in incompatible mode. Before VIM, there was a very popular editor called vi. Many of the operations of VIM are similar to vi, but there are also many operations that are different from vi. If the : set cp command opens the compatibility mode switch, VIM will try to mimic the operation mode of vi as much as possible.
There may be a lot of people who like the most orthodox vi mode of operation, which is a lot less convenient for beginners.
As an example, the VIM allowed in Insert mode to use the direction key move the cursor, and vi in Insert mode is unable to move the cursor, you must use the ESC to return to Normal mode.
For another example, use u vi command to undo a previous operation, press the u again, will cancel the undo the action itself, namely we often say repeat (redo). In VIM, you can use the u command to undo the multi-step operation, and the shortcut to repeat is Ctrl + R.
Using compatibility mode, VIM will abandon these new features and try to emulate the various operations of vi. It is only in incompatible mode that the VIM itself can be better played. Bram is highly recommended to use VIMs incompatibility mode, which is recommended by the yunnan fox. Be sure to include the first line in your.vimrc: set nocp.
The set ru
This command opens the status bar scale for VIM. By default, the VIMs status bar at the bottom of the screen scale, it can real-time display the current cursor location in the file row number and column number, as well as the corresponding to the percentage of the entire file. Opening the ruler can be handy for editing the file.
The set HLS
When searching, highlight the text you find. The function of this command has
文档评论(0)