跳至正文

Vim 具名标记

  • Vim

ma                                                           将当前光标的位置命名为a(可以是其他字符)

a<span style="mso-tab-count:1;">      </span><span style="mso-tab-count:3;">                            </span><span style="mso-tab-count:3;">                            </span></span><span style="font-family:宋体;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;">跳转到标记</span><span lang="EN-US">a</span><span style="font-family:宋体;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;">处</span></p> <p><span lang="EN-US">‘a<span style="mso-tab-count:3;">                        </span><span style="mso-tab-count:4;">                                     </span></span><span style="font-family:宋体;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;">跳转到标记</span><span lang="EN-US">a</span><span style="font-family:宋体;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;">所在的行</span></p> <p><span lang="EN-US">:marks<span style="mso-tab-count:3;">                        </span><span style="mso-tab-count:3;">                            </span></span><span style="font-family:宋体;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;">显示标记列表</span><span lang="EN-US" style="font-size:11.0pt;font-family:CMTT10;mso-bidi-font-family:CMTT10; color:blue;mso-font-kerning:0pt;"></span></p> <p><span lang="EN-US">                                                               进行此次跳转之前的位置

‘”                                                              上次编辑文件时光标最后停留的位置

‘[                                                               最后一次修改的起始位置

‘]                                                               最后一次修改的结束位置

                                                               回到刚刚搜索到的地方

Ctrl-O                                                      回到早先停止光标的地方(大写O, 要按Shift)

Ctrl-I(可用Tab代替)                        回到后来停止光标的地方(大写I, 要按Shift)

 

上面的`”和Ctrl-O, Ctrl-I 的功能和别好用..

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注