尧图建网站 尧图建网站 YAOTU WEB BUILD 免费咨询
ARTICLE DETAIL

资讯详情

深耕网站建设与建站编程的一线实战洞察。

The GNU nano text editor (文本编辑器)

The GNU nano text editor (文本编辑器) The GNU nano text editor {文本编辑器}1. GNU nano2. Overview of nanos shortcutsReferencesThe GNU nano homepagehttps://www.nano-editor.org/GNU nano is a small and friendly text editor.1. GNU nanoThe GNU nano text editorhttps://www.nano-editor.org/dist/latest/nano.htmlSource Codehttps://git.savannah.gnu.org/cgit/nano.git/^表示键盘上的 Ctrl 键M表示键盘上的 Alt 键。2. Overview of nano’s shortcutshttps://www.nano-editor.org/dist/latest/cheatsheet.htmlFile handlingCtrlS (^S) Save current file - 保存CtrlO (^O) Offer to write file (Save as) - 另存为 / 写入当前文件至磁盘CtrlR (^R) Insert a file into current one - 插入另一个文件的内容到当前正在编辑的文件中‌CtrlX (^X) Close buffer, exit from nano - 关闭当前文件缓冲区 / 离开 nanoMoving around← \leftarrow←One character backward→ \rightarrow→One character forwardCtrl← \leftarrow←One word backward - 向后跳动一个单词Ctrl→ \rightarrow→One word forward - 向前跳动一个单词CtrlA To start of line - 跳到行首CtrlE To end of line - 跳到行尾CtrlP One line upCtrlN One line downCtrl↑ \uparrow↑To previous blockCtrl↓ \downarrow↓To next blockAltHome To first row in viewportAltEnd To last row in viewportCtrlY One page up - 跳到上一页CtrlV One page down - 跳到下一页Alt\ To top of bufferAlt/ To end of bufferEditingCtrlK Cut current line into cutbuffer - 剪切 (当前行或者被标记的区域)Alt6 Copy current line into cutbuffer - 复制 (当前行或者被标记的区域)CtrlU Paste contents of cutbuffer - 粘贴Ctrl] Complete current wordAlt3 Comment/uncomment line/regionAltU Undo last actionAltE Redo last undone actionSearch and replaceCtrlB Start backward searchCtrlF Start forward searchAltB Find next occurrence backwardAltF Find next occurrence forwardAltR Start a replacing sessionDeletionCtrlH Delete character before cursorCtrlD Delete character under cursorAltBsp Delete word to the leftCtrlDel Delete word to the rightAltDel Delete current lineSpecial movementAltG Go to a specified lineAlt] Go to complementary bracketAlt Scroll viewport to the leftAlt Scroll viewport to the rightAlt↑ \uparrow↑Scroll viewport upAlt↓ \downarrow↓Scroll viewport downCtrlL Center the current lineAlt← \leftarrow←Switch to preceding bufferAlt→ \rightarrow→Switch to succeeding bufferInformationCtrlC Report cursor position - 报告光标位置AltD Report line/word/character countsCtrlG Display help text - 查看帮助VariousAltA Set or unset the markAltC Turn constant position info on/offAltN Turn line numbers on/offAltP Turn visible whitespace on/offAltS Turn softwrapping on/offAltX Hide/unhide the help linesAltZ Hide/unhide the info barsOperationsCtrlT Execute some commandCtrlT CtrlS Run a spell checkCtrlT CtrlY Run a syntax checkCtrlT CtrlO Run a formatterTab Indent marked regionShiftTab Unindent marked regionCtrlJ Justify paragraph or regionAltJ Justify entire bufferAltT Cut until end of bufferAltV Enter next keystroke verbatimAlt: Start/stop recording of macroAlt; Replay macroverbatim [vɜː(r)ˈbeɪtɪm] adj. 一字不差的 (地)逐字的 (地) adv. 逐字的 n. 逐字报告References[1] Yongqiang Cheng (程永强), https://yongqiang.blog.csdn.net/
返回列表