nano編輯器

The nano editor is designed to emulate the functionality and ease-of-use of the UW Pico text editor. There are four main sections of the editor. The top line shows the program version, the current filename being edited, and whether or not the file has been modified. Next is the main editor window showing the file being edited. The status line is the third line from the bottom and shows important messages. The bottom two lines show the most commonly used shortcuts in the editor.

Shortcuts are written as follows: Control-key sequences are notated with a '^' and can be entered either by using the Ctrl key or pressing the Esc key twice. Meta-key sequences are notated with 'M-' and can be entered using either the Alt, Cmd, or Esc key, depending on your keyboard setup. Also, pressing Esc twice and then typing a three-digit decimal number from 000 to 255 will enter the character with the corresponding value. The following keystrokes are available in the main editor window. Alternative keys are shown in parentheses:

^G (F1) Display this help text
^X (F2) Close the current file buffer / Exit from nano
^O (F3) Write the current file to disk
^R (F5) Insert another file into the current one
^W (F6) Search forward for a string or a regular expression
^\ (M-R) Replace a string or a regular expression
^K (F9) Cut the current line and store it in the cutbuffer
^U (F10) Uncut from the cutbuffer into the current line
^J (F4) Justify the current paragraph
^T (F12) Invoke the spell checker, if available
Invoke the linter, if available
Invoke formatter, if available
^C (F11) Display the position of the cursor
^_ (M-G) Go to line and column number
M-U Undo the last operation
M-E Redo the last undone operation
M-A (^6) Mark text starting from the cursor position
M-6 (M-^) Copy the current line and store it in the cutbuffer
M-] Go to the matching bracket
M-W (F16) Repeat the last search
Search next occurrence backward
Search next occurrence forward

^B (Left) Go back one character
^F (Right) Go forward one character
^Left (M-Space) Go back one word

Right(Space) Go forward one word
^A (Home) Go to beginning of current line
^E (End) Go to end of current line
^P (Up) Go to previous line
^N (Down) Go to next line
M-- (M-_) Scroll up one line without scrolling the cursor
M-+ (M-=) Scroll down one line without scrolling the cursor
^Up (M-7) Go to previous block of text
^Down (M-8) Go to next block of text
M-( (M-9) Go to beginning of paragraph; then of previous paragraph
M-) (M-0) Go just beyond end of paragraph; then of next paragraph
^Y (F7) Go one screenful up
^V (F8) Go one screenful down
M-\ (^Home) Go to the first line of the file
M-/ (^End) Go to the last line of the file
M-< (M-,) Switch to the previous file buffer
M-> (M-.) Switch to the next file buffer
^I (Tab) Insert a tab at the cursor position
^M (Enter) Insert a newline at the cursor position
^D (Del) Delete the character under the cursor
^H (Bsp) Delete the character to the left of the cursor
Cut backward from cursor to word start
Cut forward from cursor to next word start
M-T Cut from the cursor position to the end of the file
M-J Justify the entire file
M-D Count the number of words, lines, and characters
M-V Insert the next keystroke verbatim
^L Refresh (redraw) the current screen
^Z Suspend the editor (if suspension is enabled)
M-} (Tab) Indent the current line (or marked lines)
M-{ (Sh-Tab) Unindent the current line (or marked lines)

M-3 Comment/uncomment the current line (or marked lines)
^] Try and complete the current word
M-: Start/stop recording a macro
M-; Run the last recorded macro
^Q Search backward for a string or a regular expression
^S Save file without prompting
M-X Help mode enable/disable
M-C Constant cursor position display enable/disable
M-O Use of one more line for editing enable/disable
M-S Smooth scrolling enable/disable
M-$ Soft wrapping of overlong lines enable/disable
M-# Line numbering enable/disable
M-P Whitespace display enable/disable
M-Y Color syntax highlighting enable/disable
M-H Smart home key enable/disable
M-I Auto indent enable/disable
M-K Cut to end enable/disable
M-L Hard wrapping of overlong lines enable/disable
M-Q Conversion of typed tabs to spaces enable/disable
M-B Backup files enable/disable
M-F Reading file into separate buffer enable/disable
M-M Mouse support enable/disable
M-N No conversion from DOS/Mac format enable/disable
M-Z Suspension enable/disable

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子驾茴,更是在濱河造成了極大的恐慌,老刑警劉巖炬灭,帶你破解...
    沈念sama閱讀 216,997評論 6 502
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件荣赶,死亡現(xiàn)場離奇詭異训唱,居然都是意外死亡玫霎,警方通過查閱死者的電腦和手機(jī)凿滤,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,603評論 3 392
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來庶近,“玉大人翁脆,你說我怎么就攤上這事±鬼铮” “怎么了鹃祖?”我有些...
    開封第一講書人閱讀 163,359評論 0 353
  • 文/不壞的土叔 我叫張陵溪椎,是天一觀的道長普舆。 經(jīng)常有香客問我恬口,道長,這世上最難降的妖魔是什么沼侣? 我笑而不...
    開封第一講書人閱讀 58,309評論 1 292
  • 正文 為了忘掉前任祖能,我火速辦了婚禮,結(jié)果婚禮上蛾洛,老公的妹妹穿的比我還像新娘养铸。我一直安慰自己,他們只是感情好轧膘,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,346評論 6 390
  • 文/花漫 我一把揭開白布钞螟。 她就那樣靜靜地躺著,像睡著了一般谎碍。 火紅的嫁衣襯著肌膚如雪鳞滨。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,258評論 1 300
  • 那天蟆淀,我揣著相機(jī)與錄音拯啦,去河邊找鬼。 笑死熔任,一個(gè)胖子當(dāng)著我的面吹牛褒链,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播疑苔,決...
    沈念sama閱讀 40,122評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼甫匹,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了夯巷?” 一聲冷哼從身側(cè)響起赛惩,我...
    開封第一講書人閱讀 38,970評論 0 275
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎趁餐,沒想到半個(gè)月后喷兼,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,403評論 1 313
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡后雷,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,596評論 3 334
  • 正文 我和宋清朗相戀三年季惯,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片臀突。...
    茶點(diǎn)故事閱讀 39,769評論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡勉抓,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出候学,到底是詐尸還是另有隱情藕筋,我是刑警寧澤,帶...
    沈念sama閱讀 35,464評論 5 344
  • 正文 年R本政府宣布梳码,位于F島的核電站隐圾,受9級特大地震影響伍掀,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜暇藏,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,075評論 3 327
  • 文/蒙蒙 一蜜笤、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧盐碱,春花似錦把兔、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,705評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至暖混,卻和暖如春聘惦,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背儒恋。 一陣腳步聲響...
    開封第一講書人閱讀 32,848評論 1 269
  • 我被黑心中介騙來泰國打工善绎, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人诫尽。 一個(gè)月前我還...
    沈念sama閱讀 47,831評論 2 370
  • 正文 我出身青樓禀酱,卻偏偏與公主長得像,于是被迫代替她去往敵國和親牧嫉。 傳聞我的和親對象是個(gè)殘疾皇子剂跟,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,678評論 2 354

推薦閱讀更多精彩內(nèi)容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc閱讀 2,850評論 0 0
  • 車牌號的組成一般為:省份 + 地區(qū)代碼 + 5位數(shù)字/字母。車牌號碼查詢
    謝小帥閱讀 5,850評論 0 0
  • 愛對了人酣藻,你會有安全感曹洽,也會越來越有自信,一切都是那么美好辽剧,你不會去羨慕誰送淆,因?yàn)槟阌凶约旱纳睢?本文為作者原創(chuàng),...
    瀾繡閱讀 215評論 0 0