gg moves to the beginning of the buffer.
G moves to the end of the buffer.
: followed by a line number themoves to that line number . typing / followed by a pharse searches FORWARD for the pharse.
typing ? followed by a pharse searches BACKWORD for the pharse.
After a search type n to find the next occurrence in the same direction
or N to search in the opposite direction.typing % while the cursor is on a(,),[,],{,or} locates its matching pair.
To substitute new for the first old on a line type :s/old/new
To substitute new for all ‘old’s on a line type :s/old/new/g
To substitute phrases between two line #’s type :#,#s/old/new/g
To substitute all occurrences in the file type :%s/old/new/g
To ask for confirmation each time add ‘c’ :%s/old/new/gcTo save part of a file type :#,# w filename
spaceemacs 学习笔记
本文标题:spaceemacs 学习笔记
文章作者:Smile921
发布时间:2016-11-01, 13:45:31
最后更新:2017-03-13, 13:49:30
原始链接:http://smile921.github.io/201611spaceemacs-学习笔记/
许可协议: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。