• Vi, vim Editor

    Vi, vim Editor


    Vi is the standard file editor for Unix and Vim is the standard file editor for Linux

    For Red hat Linux vi and Vim both are same

    There are three mode of vi editor

    1. command mode
    2. insert mode
    3. save and Exit Mode
    1. Command mode is again divided into 3 mode
    1. Cursor movement
    2. Copy, paste, delete, undo
    3. Text search
    1. Cursor Movement

    J : Down

    K : UP

    L : RIGHT

    H : LEFT

    1. Copy, paste delete, undo

    dd : delete particular line

    yy : copy particular line

    u : Undo

    p : paste

    ndd : n is the number of line to be deleted

    nyy : n is the number of line to be copied

    1. Text Search

    /text

    example

    /then

    1. Insert Mode

    Option I, insert, a ,o, O

    i : insert mode start at the point where cursor is. Same is used with

    insert option

    a : insert mode start after one character

    o : insert mode start after one line

    O : insert mode start before one line

    1. Save and Exit

    :q : Quiet

    :q! : forcely quiet

    :wq! : save and forcely quiet

    :wq : save and exit

0 comments:

Leave a Reply

.

FEEDS FROM THIS BLOG

FEEDJIT Live Traffic Feed

My Zimbio   Blog Directory - OnToplist.com   Red Hat Enterprice Linux RHCE RHCT RHCA RHCSS  Powered by  MyPagerank.Net  Academic blogs & blog posts   BlogRankers.com  TopOfBlogs  BuzzCritic     Academics  Blog Directory  Hihera.com  Technology Blogs - Blog Rankings   Visit blogadda.com to discover Indian blogs  Academics Blogs  Computers (Linux) - TOP.ORG    Rallyshare    Yahoo bot last visit powered by MyPagerank.Net     The Weblog Review  blogarama - the blog directory  SEO services    Academic blogs & blog posts