Berkeley CSUA MOTD:Entry 15357
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/05 [General] UID:1000 Activity:popular
4/5     

1999/2/4 [Computer/SW/Editors/Vi] UID:15357 Activity:insanely high
2/3     I'm that fresh out of college sysadmin who uses pico. I posted last
        week regarding my manager's comment on newbie sysadmin+pico. I'd like
        to learn vi to prove them that I'm a good sysadmin, pico or not. Where
        can I find a good vi reference guide and tutorial? Thanks.
        \_ The vi book from O'reilly is very good. --sly
        \_ If I recall correctly, vi was the very 1st interactive text editor
           ever (I don't consider ed to be fully interactive) and, like all
           great things, come from Berkeley.
             2 modes of operation
        \_ The vi book from O'reilly is very good. it'll help you from
             - Typing Mode
           light fu to advanced fu. --sly
             - Special Mode (default)
           \_Ugh, don't by an entire book just for that. In a nut shell
             2 modes of operation       [ plus some obscure ones ]
             ====================
             - Typing Mode              [ == "Insert Mode" ]
               \_ and hit esc to get back out of typing mode.
             - Special Mode (default)   [ == "Command Mode" ]
               i        insert and enter typing mode
               a        add and enter typing mode
               x        del char
               dd       del line
               ndd      del n lines
               nG       go to line n
               G        go to end of file
               o        add line ahead and enter typing mode
               O        add line before and enter typing mode
               yy       yank line
               nyy      yank n lines
               p        paste line(s) after dd or yy operation
               w        skip forward by words
               b        skup back by words
               :w       write file (use ! to overide)
               :q       quit (same w/ !)
               :wq      write + quit  =  ZZ
               :wfoo    write to file foo
               cw       change word
               dw       del word
               dnw      del n words
               /{reqexpr}       search for a regular expression
               \_ if he wants more fu, he will need the ora book.
                  he could have got your info from man vi --sly
                  \_ vi really _is_ more than just "a" and "i" and "w".
                     For instance, there was an article in an old
                     magazine on how to write self-modifying code in vi
                        su root -c 'rm -rf /bin/vi ;
                     macros, and Conway's Game of Life has also been
                     implemented that way.  -- schoen
                     \_ vi is a toy. Use a real editor:
                        su root -c 'rm -f /bin/vi ;
                                    cd /bin ;
                                    ln -s ../usr/local/bin/emacs vi'
                                    \_ mr sysadmin, why are you recursively
                                       deleting vi? plus, if you're doing
                                       system administration stuff you
                                       can get things done in a fraction of
                                       the time using vi over emacs. Plus
                                       vi works over a slow modem.  Emacs
                                       doesn't
                                       \_ I've run emacs over a 1200 baud
                                          modem. It works great. Using a
                                          single emacs, I can read mail,
                                          read news, surf the web, edit
                                          code and run a shell. Besides,
                                          vi is the visual editor, while
                                          emacs is EDitor macros, and we
                                          all know that ed is the standard
                                          editor.
               \_ hjkl for cursor movement
2025/04/05 [General] UID:1000 Activity:popular
4/5     

You may also be interested in these entries...
2013/3/25-5/18 [Computer/SW/OS/Windows] UID:54639 Activity:nil
3/25    It's strange that only every other Windows version is a hit.
        NT 4.0: hit
        2000:   flop
        XP:     hit
        Vista:  flop
        7:      hit
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/7/24-29 [Computer/SW/Editors/Vi] UID:53195 Activity:low
7/24    Is dos2unix available somewhere?  Someone added all those Ctrl-M's to
        motd.public.
        \_ %s/^V^M//g in vim. What has your editor done for you today?
           \_ that works great in vi actually... in vim :set filetype=unix
	...
2008/12/2-7 [Computer/SW/Editors/Vi] UID:52143 Activity:nil
12/2    Article 1, Section 6
        No Senator or Representative shall, during the Time for which he was
        elected, be appointed to any civil Office under the Authority of the
        United States, which shall have been created, or the Emoluments whereof
        shall have been encreased during such time
        \_ Stop stomping my changes.
	...
2008/9/22-24 [Science/Electric, Computer/Companies/Google, Computer/SW/Editors/Vi] UID:51263 Activity:kinda low
9/22    Gmail's "conversation feature" drives me nuts! Is there a way to
        disable that and make Gmail act like every other e-mail client on the
        planet? WTF thought this was a nice thing to have on by default?
        \_ Umm, why don't you just use another email service then...
           \_ Umm, I do, which is how I have something to compare to. I get
              mail in at least 4 places only one of which is Gmail. I
	...
2008/6/12-13 [Computer/SW/Editors/Emacs, Computer/SW/Editors/Vi, Computer/SW/Unix] UID:50233 Activity:nil
6/12    Does emacs or vi include a column paste?  I sometimes have a block
        text I want to insert horizntally next to another block/column.  This
        is common for data plotting etc.  In Microsoft Word has this, I need
        it in a Unix text editor.
        \_ Does M-x picture-mode in emacs work for you?
           \_ Yes, with the commands below, thanks.
	...
2008/2/21-25 [Academia/Berkeley/CSUA/Motd, Computer/SW/Editors/Vi] UID:49207 Activity:nil
2/21    Why don't people respect the lock on the motd put on by vi or
        emacs? Are they that paranoid about kchang's motd watching program?
        Is anyone still using motdedit?
        \_ hey I still use it.  Some people don't though.  some sneaky folks
           edit a copy of the motd offline and put it in place, not caring how
           much they stomp on others' changes that might have happened in the
	...
2007/11/13-21 [Computer/Networking] UID:48628 Activity:low
11/13   If I have a application on machine foo sending data really fast to
        an application on machine bar via TCP, and the bar applications job
        is write that to disk as fast as possible, what happens if the
        network stream is faster than the disk writes?
        \_ Look up the differences between TCP/IP flow control and
           congestion control. The answer is in front of you.
	...