View
28
Download
3
Category
Preview:
DESCRIPTION
第 14 章. 文書編輯軟體. 本章重點. 14-1 圖形模式的 Gedit 文書編輯軟體 14-2 最易上手的 nano 文書編輯軟體 14-3 功能強大的 vim 文書編輯軟體 14-4 編輯軟體的編碼設定. 前言. 文書編輯可以說是操作電腦最基本的應用 , 舉凡修改設定檔、撰寫程式及建立文件 , 都需要用到它。 Linux 提供了齊全的文書編輯軟體 , 讓使用者可以依照自己的喜好來作選擇。在本章中 , 筆者將為您介紹 Gedit 、 nano 及 vim 這 3 個編輯軟體。. - PowerPoint PPT Presentation
Citation preview
14-1 Gedit 14-2 nano 14-3 vim 14-4
, , Linux , , Geditnano vim 3
14-1 Gedit , Gedit , Gedit GNOME , Windows , , , gedit Gedit
Gedit
Gedit ,
Gedit
root Gedit Gedit , X Window , , , , root Gedit
Gedit , 14-4
Linux , , , Gedit , Gedit
Gedit Linux , Gedit / ,
Gedit
Gedit
Nautilus Gedit , (), Nautilus
Nautilus
Nautilus , Gedit , Gedit , Nautilus , , , gedit ,
Nautilus ( "." ), Nautilus , Nautilus
Nautilus
Nautilus
14-4
, , , , Gedit , , Gedit , /
14-2 nano nano Linux , , , Linux , ( vim)nano pico , pico , Linux Linux pico , nano, pico
nano , , 14-4
nano nano ( nano , su - , root root , nano )
nano
nano nano , nano nano nano , nano, 10-6 , zhcon () , ,
nano nano 2 12 , , ( "^" , ) -- ^G ^G , ^V ,
nano
nano -- ^O ^O
, ^G , ^G ^C , ; ^T , ;
nano -- ^R ^R
, ,
nano -- ^Y ^V ^Y , ^V , -- ^K^U , , ^K, , ^U 3 ^K 3 (), ^U ^K ,
nano -- ^W , ^W
, ^W
nano -- ^C nano , , ^C, nano -- ^X nano , ^X, , , , nano , nano
nano nano , , , , , nano -w , nano
14-3 vim vim Linux , Unix vi , Linux vim 3 , normal mode vim , normal mode, , , ...
vim insert mode vim , , insert mode, , command-line mode normal mode command-line mode, , ,
vim
vim , Linux , , , , "i", , 14-4
vim vim
vim vim , vim , vim vim , vim ( vim, )
vim
vim , su - , root root , vim
vim vim normal mode, , , insert mode
vim
vim insert mode, , insert mode, , insert mode , ,
vim , vim, normal mode, command-line mode, "w "
vim
vim
vim ":wq", , vim, ":q!", vim
vim , vim , ( /tmp backup.txt), command-line mode, "e "
vim , , command-line mode "n "
vim , , command-line mode "n "
vim vim , , normal mode ,
normal mode insert mode, , , normal mode ( "^", , )
h l j k
^ b, ^ f ,
0 ( 0) $ ( + ) G w W "w", "."", " "/"
e E , "e" , "."", " "/" b , [[ C/C++/PHP , "{" , "{"
]] C/C++/PHP , "{" , 2 , 14-16 ^b ^f ,
^u ^d ^e, ^y,
, vim yy , , nyy n , , , 2 ( 3 ) yw
nyw , , 2 ( 3 ) (n ) p,
, , d , , , , , D, dd 2 ,
dw, , , , ndn , 3 , 3 , 1 , 4 , 3 , 1 , 4
ndd , 1 2 x, X,
nx , 3 , nX , 4 ()
/ ?, "/" "?", "/gz" "?gz", , vim gz , n N r insert mode, normal mode , , ,
, , , cc
( temp tmp), ":g/temp/s//tmp/g" ":%s/temp/tmp/g" , "temp" "tmp" "temp" , ":g/temp/s//tmp/gc" ": %s/temp/tmp/gc" "temp" , , "y" "n"
, , vim ^g^G, (), nGn , , 20
u undo , vim , undo , undo ^r redo undo vim
. , , , , , , , ..., , , normal mode
14-4 Linux UTF-8 , , UTF-8 Windows, Big5 Linux , , Big5 , Linux ,
, 10-2-1 , Big5 X Window nanovim , , // (BIG5) , Big5 LANG=zh_TW.Big5 , , , Big5 , Windows Big5
, 15-7 PieTTY , 15-9 UTF-8, Big5 , "Use font encoding"
Recommended