Download nhạc từ các trang nhạc lớn của Việt Nam

01 Tháng Mười Hai 2006
@ 11:23
(Tác giả:Phạm Đức Hải)

Trình soạn thảo văn bản.

Trên windows có rất nhiều trình soạn thảo khác nhau như office, wordpad, notepad... Trên *nix cũng vậy, nhưng trình soạn thảo ưa thích có lẽ là vi.

Trình soạn thảo này có lẽ là phổ biến nhất và thông dụng nhất trên các hệ thống Unix cũng tương tự như notepad của windows.

Để truy nhập vi trong của sổ terminal bạn đánh : vi

[root@duchai /]# vi

Trình soạn thảo sẽ hiện ra. Như bản Fedora tôi đang dùng thì nó đã thay thế vi bởi VIM :

VIM soạn thảo "thuận tay hơn" vi happy bạn dùng thử mà xem big grin

Để tạo 1 file mới bạn đánh : vi <tên file>

[root@duchai /]# vi hello

Bạn nhấn phím "i" để kích hoạt chế độ Insert, sau đó bạn đánh "Hello world!"

Để ghi lại file bạn bấm phím "ESC" để thoát khỏi chế độ Insert. Sau đó đánh ":qw" để lưu lại và thoát ra khỏi vi.

"hello" [New] 1L, 14C written
[root@duchai /]# more hello
hello world !
[root@duchai /]#

Chi tiết các lệnh của vi có lẽ phải thực hành nhiều một chút mới nhớ được.

Tham khảo :

http://www.ss64.com/bash/vi.html

http://www.eng.hawaii.edu/Tutor/vi.html

VI Editor Commands

Switch to Text or Insert mode:

   
Open line above cursor
O        
Insert text at beginning of line
I
Insert text at cursor
i
Insert text after cursor
a
Append text at line end
A
   
Open line below cursor
o        

Switch to Command mode:

Switch to command mode
<ESC>

Cursor Movement (command mode):

   
Scroll Backward 1 screen
<ctrl>b    
   
Scroll Up 1/2 screen
<ctrl>u    
Go to beginning of line
0
Go to line n
nG
Go to end of line
$
   
Scroll Down 1/2 screen
<ctrl>d
Go to line number ##
:##
   
Scroll Forward 1 screen
<ctrl>f    
   
Go to last line
G    
Scroll by sentence f/b ( )        
Scroll by word f/b w b Move left, down, up, right h j k l
Left 6 chars
6h
    Directional Movement Arrow Keys
Go to line #6
6G

Deleting text (command mode):

Change word
cw
Replace one character
r    
Delete word
dw
Delete text at cursor
x
Delete entire line (to buffer)
dd
   
Delete current to end of line
D
Delete 5 lines (to buffer)
5dd
       
Delete lines 5-10
:5,10d

Editing (command mode):

Copy line
yy
Copy n lines
nyy
Copy lines 1-2/paste after 3
:1,2t 3
Paste above current line
P

     
Paste below current line
p    
Move lines 4-5/paste after 6
:4,5m 6
       
Join previous line
J
Search backward for string
?string
Search forward for string
/string Find next string occurrence n
% (entire file) s (search and replace) /old text with new/ c (confirm) g (global - all)
:%s/oldstring/newstring/cg    
Ignore case during search
:set ic
Repeat last command
.
Undo previous command
u
Undo all changes to line
U

Save and Quit (command mode):

Save changes to buffer
:w
Save changes and quit vi
:wq
Save file to new file
:w file
   
Quit without saving
:q!
Save lines to new file
:10,15w file

Chuyên mục: Linux

Referred by:
insert text in javascript (www.google.com.vn) [Referral]
lenh append trong sql server 2000 (www.google.com.vn) [Referral]
*nix (www.google.com.vn) [Referral]
"Undo All Changes" in Java (www.google.com.vn) [Referral]
ubuntu quit command (www.google.com.vn) [Referral]
download line phim thuy linh (www.google.com.vn) [Referral]
Undo all changes trong java (www.google.com.vn) [Referral]
ubuntu i to insert to save (www.google.com.vn) [Referral]
hoang thuy linh savefile (www.google.co.th) [Referral]
ubuntu command (www.google.com.vn) [Referral]
quit and not save vi command (www.google.com.vn) [Referral]
quit ubuntu with command (www.google.com.vn) [Referral]
javascript insert text at current cursor (www.google.com.vn) [Referral]
basic command in backtrack (www.google.com.vn) [Referral]
" download line" (www.google.com.vn) [Referral]
" download line" (www.google.com.vn) [Referral]
insert javascript to blog (www.google.com.vn) [Referral]
http://google.com/ [Referral]
clip sex thùy linh (www.google.com.vn) [Referral]
" download line" (www.google.com.vn) [Referral]
ubuntu save file qw (www.google.com.vn) [Referral]
ns-2 + go VI de soan thao (www.google.com.vn) [Referral]
"append trong SQL" (www.google.com.vn) [Referral]
sex (www.google.com.vn) [Referral]
lines (www.google.com.vn) [Referral]
insert and delete a line in a file with java (www.google.com.vn) [Referral]
fedora (www.google.com.vn) [Referral]
Go to line n in vi (www.google.com.vn) [Referral]
"command in backtrack" (www.google.com.vn) [Referral]
sex hoang thuy linh (www.google.com.vn) [Referral]
cursor fedora (www.google.com.vn) [Referral]
line (www.google.com.vn) [Referral]
sex thuy linh (www.google.com.vn) [Referral]
moi truong soan thao kich ban ns2 (www.google.co.uk) [Referral]
unix vi editor commands (vn.search.yahoo.com) [Referral]
sex hoang thuy linh (www.google.com.vn) [Referral]
fedora basic command line (www.google.com.vn) [Referral]
hoang thuy linh (www.google.com.vn) [Referral]
dowload phim sex (www.google.com.vn) [Referral]
sex (www.google.com.vn) [Referral]
down load phim sex (www.google.com.vn) [Referral]
phim sex (www.google.com.vn) [Referral]

Họ tên
E-mail
(sẽ hiển thị gravatar theo email của bạn)
Trang chủ
Bộ gõ Tắt TELEX VNI
Ý kiến (Không dùng HTML)  

Nhập mã kiểm tra :(chống xì-pum ý mà):