[vi] Cara menggunakan Editor VI pada Console Terminal Linux

VI salah satu Text Editor yang biasanya menjadi default text editor pada banyak distro Linux, jadi gak ada salahnya belajar cara menggunakan VI yang benar. Berikut tutorialnya yang penulis temukan disalah satu web.

STARTING vi

     vi filename    edit a file named "filename"
     vi newfile     create a new file named "newfile"

ENTERING TEXT

     i            insert text left of cursor
     a            append text right of cursor

MOVING THE CURSOR

     h            left one space
     j            down one line
     k            up one line
     l            right one space

BASIC EDITING

     x         delete character
     nx        delete n characters
     X         delete character before cursor
     dw        delete word
     ndw       delete n words
     dd        delete line
     ndd       delete n lines
     D         delete characters from cursor to end of line
     r         replace character under cursor
     cw        replace a word
     ncw       replace n words
     C         change text from cursor to end of line
     o         insert blank line below cursor
                  (ready for insertion)
     O         insert blank line above cursor
                  (ready for insertion)
     J         join succeeding line to current cursor line
     nJ        join n succeeding lines to current cursor line
     u         undo last change
     U         restore current line

MOVING AROUND IN A FILE

     w            forward word by word
     b            backward word by word
     $            to end of line
     0 (zero)     to beginning of line
     H            to top line of screen
     M            to middle line of screen
     L            to last line of screen
     G            to last line of file
     1G           to first line of file
     <Control>f   scroll forward one screen
     <Control>b   scroll backward one screen
     <Control>d   scroll down one-half screen
     <Control>u   scroll up one-half screen
     n            repeat last search in same direction
     N            repeat last search in opposite direction

CLOSING AND SAVING A FILE

     ZZ            save file and then quit
     :w            save file
     :q!           discard changes and quit file

sumber http://www.washington.edu/computing/unix/vi.html

Tulisan yang mungkin se-ide



Blog ini adalah peserta Open Copy Community, anda bebas meng-copy isi artikel ini dengan tetap mencantumkan link sumber.


Blog ini adalah DO FOLLOW BLOG, silahkan tinggalkan komentar dan jangan lupa masukan url blog anda, siapa tahu bisa meningkatkan PAGE RANK blog anda.


Comments

5 Responses to “[vi] Cara menggunakan Editor VI pada Console Terminal Linux”

  1. sugank on August 19th, 2009 8:19 am

    hemz…..nice artikel….
    pas yg q cari neh…

  2. The Petarung on October 27th, 2009 12:32 am

    thanks…sy lagi belajar vi jg nih.

  3. Catering on March 13th, 2010 6:30 am

    bagus artikelya…!!!

  4. Rias Pengantin on March 13th, 2010 6:32 am

    Ini yg dicari Trims yach…!!!!

  5. Catering on March 14th, 2010 4:02 am

    Terima kasih informasinya…!!!

Leave a Reply




Add to Technorati Favorites

eXTReMe Tracker
- Copyright © 2007 komunitaskami.com • Powered by WordPress • Using Silhouette theme created by Brian Gardner

Links to my site