gi与g; #
Vim中下面两个Mark的含义有何区别?
`^
`.
`^ To the position where the cursor was the last time when Insert mode was stopped.
`. To the position where the last change was made. The position is at or near where the change started.
前者针对的Insert mode的切换,后者针对的是文本的变化。像x,p等命令会改变文本,但不涉及Insert mode的切换。
前者可用gi命令来操作,后者由g;命令来操作。