Emacs学习了一些基本的操作,这里稍微做些整理,感觉自己还不够努力,以这样的速度估计到老也赶不上世界发展的速度。
emacs中最基本的两个键是ctrl和alt(以下称为C和M)
任何操作都是一些键的组合。想了一下一个纯文本的编辑器要实现多功能最好的就是勇这种shortcut的方式。
C - v :forward one screen
M - v :backward one screen
C - l :redisplay (make current cursor in the middle screen without any arguments)
They are the most useful shortcuts in emacs.
C - p :up line
C - n :next line
C - b :backward a character
C - f :next character
M - b :backward a word
M - f :next word
C - a :Move to beginnging of line
C - e :Move to end of line
M - a :Move to beginning of sentence
M - e :Move to end of sentence
M - < :Move to beginning of this text (press shift + comma to type <)
M - > :Move to end of this text
C - u :count a num (usually pass this num as a argument to another command)
C - g :quit all inputed commands
C - x 1 :Kill all window unless the one with cursor on
< delback > :Delete the character just before cursor
C - d :Delete the next the character after cursor
M - < del > :kill the word before cursor
M - d : delete the word after cursor
C - k :kill from cursor tp end of line
M - k :kill to the end of current sentence
Delete part
C - @/< space > : select a region
C - w : kill the words selected
difference between kill and delete
kill can be reinserted delete can not be reinserted
This kind of reinserted called yanking
C - Y :yanking(also called paste)
C - w :kill words select(also called cut)
C - _ :Undo (shift + - = _)
combination key
C - x C - f :open a file
C - x C - s :save a file
C - u 0 C - l :redisplay page using current cursor as first line
C - h k C - f :Open a new window to display help info for `C - f` command
C - x C -b :list all buffer
C - x s :save some buffers
M - x :following long commands
C - h m :open help doc
C - x f :set a line long(using in text mode)
M - q :re-fill paragraph
C - h v :some variables can customize emacs
C - h f :function name
C - h a :open a window contain all M - x commands(support reglex)
C - h i :online help doc
C - h r :manual
emacs中最基本的两个键是ctrl和alt(以下称为C和M)
任何操作都是一些键的组合。想了一下一个纯文本的编辑器要实现多功能最好的就是勇这种shortcut的方式。
C - v :forward one screen
M - v :backward one screen
C - l :redisplay (make current cursor in the middle screen without any arguments)
They are the most useful shortcuts in emacs.
C - p :up line
C - n :next line
C - b :backward a character
C - f :next character
M - b :backward a word
M - f :next word
C - a :Move to beginnging of line
C - e :Move to end of line
M - a :Move to beginning of sentence
M - e :Move to end of sentence
M - < :Move to beginning of this text (press shift + comma to type <)
M - > :Move to end of this text
C - u :count a num (usually pass this num as a argument to another command)
C - g :quit all inputed commands
C - x 1 :Kill all window unless the one with cursor on
< delback > :Delete the character just before cursor
C - d :Delete the next the character after cursor
M - < del > :kill the word before cursor
M - d : delete the word after cursor
C - k :kill from cursor tp end of line
M - k :kill to the end of current sentence
Delete part
C - @/< space > : select a region
C - w : kill the words selected
difference between kill and delete
kill can be reinserted delete can not be reinserted
This kind of reinserted called yanking
C - Y :yanking(also called paste)
C - w :kill words select(also called cut)
C - _ :Undo (shift + - = _)
combination key
C - x C - f :open a file
C - x C - s :save a file
C - u 0 C - l :redisplay page using current cursor as first line
C - h k C - f :Open a new window to display help info for `C - f` command
C - x C -b :list all buffer
C - x s :save some buffers
M - x :following long commands
C - h m :open help doc
C - x f :set a line long(using in text mode)
M - q :re-fill paragraph
C - h v :some variables can customize emacs
C - h f :function name
C - h a :open a window contain all M - x commands(support reglex)
C - h i :online help doc
C - h r :manual
没有评论:
发表评论