Learning note of vim (2)

作者: shaneZhang 分类: VIM专题 发布时间: 2019-11-24 23:56
Bottom Model
:! 【not save the content】
:w  【save the content to file】
:wq  【save the content to file and exit the vim】
:! ifconfig 【execute shell command in vim 】
:s/x/X 【replace x to X in the focus line】
:%s/x/X 【replace x to X in the file】
:%s/x/X/g 【replace x to X in the globle files】
:3,5 s/x/X 【replace x to X between 3 and 5 lines】
:set nonum 【hidden the vim line number】
:set nu 【show vim line number】

Visual Model

v character 【visual model】
shift + v  【line visual model】
control + v  【block visual model】

本页面支持繁体中文友好显示:Learning note of vim (2)

如果觉得我的文章对您有用,请随意打赏。如果有其他问题请联系博主QQ(909491009)或者下方留言!

发表回复