GNU NANO各种命令 Linux

Overview of nano's shortcuts      

The editor's keystrokes and their functions         

Cheatsheet for GNU nano (nano-editor.org)

File handling
Ctrl+S   Save current file
Ctrl+OOffer to write file ("Save as")
Ctrl+RInsert a file into current one
Ctrl+XClose buffer, exit from nano

Editing
Ctrl+K   Cut current line into cutbuffer
Alt+6Copy current line into cutbuffer
Ctrl+UPaste contents of cutbuffer
Alt+TCut until end of buffer
Ctrl+]Complete current word
Alt+3Comment/uncomment line/region
Alt+UUndo last action
Alt+ERedo last undone action

Search and replace
Ctrl+Q   Start backward search
Ctrl+WStart forward search
Alt+QFind next occurrence backward
Alt+WFind next occurrence forward
Alt+RStart a replacing session

Deletion
Ctrl+HDelete character before cursor      
Ctrl+DDelete character under cursor
Alt+BspDelete word to the left
Ctrl+Del   Delete word to the right
Alt+DelDelete current line

Operations
Ctrl+T   Execute some command
Ctrl+JJustify paragraph or region
Alt+JJustify entire buffer
Alt+BRun a syntax check
Alt+FRun a formatter/fixer/arranger
Alt+:Start/stop recording of macro
Alt+;Replay macro
Moving around
Ctrl+B   One character backward
Ctrl+FOne character forward
Ctrl+One word backward
Ctrl+One word forward
Ctrl+ATo start of line
Ctrl+ETo end of line
Ctrl+POne line up
Ctrl+NOne line down
Ctrl+To previous block
Ctrl+To next block
Ctrl+YOne page up
Ctrl+VOne page down
Alt+\To top of buffer
Alt+/To end of buffer

Special movement
Alt+G    Go to specified line
Alt+]Go to complementary bracket
Alt+Scroll viewport up
Alt+Scroll viewport down
Alt+<Switch to preceding buffer
Alt+>Switch to succeeding buffer

Information
Ctrl+C   Report cursor position
Alt+DReport line/word/character count
Ctrl+GDisplay help text

Various
Alt+ATurn the mark on/off
TabIndent marked region
Shift+Tab   Unindent marked region
Alt+VEnter next keystroke verbatim
Alt+NTurn line numbers on/off
Alt+PTurn visible whitespace on/off
Alt+XHide or unhide the help lines
Ctrl+LRefresh the screen
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值