Skip to content

Instantly share code, notes, and snippets.

@fwon
Created July 20, 2014 09:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fwon/338555c57c98c56b9adc to your computer and use it in GitHub Desktop.
Save fwon/338555c57c98c56b9adc to your computer and use it in GitHub Desktop.
7 组导航快捷键
使用下列快捷键方便在文字中快速定位:
跳至行首 – Control+A
跳至行尾 – Control+E
跳至下一行 – Control+N
跳至上一行 – Control+P
删除上一个单词 – Control+W
删除当前光标位置到行首的文字 – Control+U
删除当前光标位置到行尾的文字 – Control+K
当然,使用最基本的方向键导航是完全可以的。
3 组用于命令行中剪切和粘贴的快捷键
命令行拥有独特的剪切和粘贴方式,称为“kill”和“yank”:
剪切当前光标位置到行首的文字 – Control+U
剪切当前光标位置到行尾的文字 – Control+K
在光标当前位置粘贴最近一次剪切的内容 – Control+Y
由于这几个 kill 和 yank 命令并不会影响剪切板的内容,所以可以当作“第二剪切板”来使用,甚至在许多图形界面的 Mac OS X 应用中同样有效。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment