Home
VIMанаVi IMproved
Contents
1. VIM Vi IMproved Andrew E Bruno Center for Computational Research Introduction e Emacs is a hideous monstrosity but a functional one On the other hand vi is a masterpiece of elegance Sort of like a Swiss Army knife versus a rapier The Cult of vi History of vi e vi was originally written by Bill Joy in 1976 while at Berkeley e Bill Joy is a co founder of Sun Microsystems and creator of csh among many others vi is based off ex and ed the orignal line editor for Unix written by Ken Thompson vi has many ports and clones VIM is a vi clone written by Bram Moolenaar that adds many advanced features VIM Vi IMproved First public release was in 1991 VIM is included with almost every Linux distribution and shipped with every copy of Mac OS X Also has gui version called gVim VIM Basics e VIM is a modal editor e Three basic modes of operation insert visual command e By default VIM is run in command mode Each mode is accessed by pressing a key and ESC returns to command mode e To insert text type 1 e Visual mode allows you to highlight text v e Type vi or vim in the shell to start e Type vimtutor on command line e User manual help e Even will explain the meaning of life help 42 e Edit file vi file txt Save file w e To quit type q e Editing multiple files buffers vi file1 file2 e Switch between buffers next prev 1s Editing e vi GoogleScholar php e To move around use the curs
2. or keys or the home row e move to beginning and end of the line e C f C b page up and down e 12g 12 lt Enter gt goto a line e gg G Move to top and bottom of file Cut and Paste e VIM adds mode called visual mode e In command mode type vV to select regions of text e Copy y Paste p or yy copy whole line e x to delete char under cursor e dw dd delete entire word and delete line e cw c change word and change to end of line e D delete to end of line Useful Feature e Search for words or search from end of file e Indent block of text gt e u undo e sh drop to shell e run command e w php 1 check syntax e r read in file Viewports e VIM supports multiple viewports e Sp will split the current window into two e VSP vertical split current window e Ctrl w j jump down Ctrl w k jump up etc e Ctrl w _ will expand current window Ctrl w reset Example Custom Settings e Notabs set expandtab Set the tabstop and shift width set ts 4 set sw 4 Change background scheme set bg dark or set bg light e Show line numbers set number Show line and column number of cursor set ruler Show matching bracket parenthesis set showmatch Syntax highlighting syntax on Automatic indentation set ai Auto completion Ct 1 p Insert repeated characters 80 a ESC Enter Resources e VIM http www vim org e Nice VIM cheat sheets http www viemu com a_vi_vim_graphical_cheat_sheet_tu
3. torial html
Download Pdf Manuals
Related Search
Related Contents
Spreading Wings S1000+ PLP 50 Haustyp 2 - d - Full Control Networks Manuel d`utilisation ADALINK MANUEL D`UTILISATION - Cours-info LX640I Product Overview LX640I/650I/645I/660I series are AirLive WMM-3000AP Quick Setup Guide Copyright © All rights reserved.
Failed to retrieve file