Beruflich Dokumente
Kultur Dokumente
Editing Command
^wc Close window
^ww Move between active window
^w= Equal size for active window
^w_ Maximize the window
:tabnew Blank tab
:tab newtabfile Openfile in new tab
:tabe help Open help in new tab
:tabn x Move to tab number x
CTRL-PGUP/PGDOWN cycling to other tab
:!cmd Run cmd in console
:!xxx Run xxx (as window command) in console
Control Command
gg Scroll to top
G Scroll to bottom
xG Scroll to line X
% matching parenthesis (ex: ( will match with )
:ls list all buffers
:buffers same as above (list all buffers)
:sbuffer x open buffer in new window
:bnext go to next buffer
:bprevious go to previous buffer
:bfirst go to the first buffer
:blast go to the last buffe
:bdelete x delete buffer no x
:bwipe delete all unlisted buffer
:buffers! display all unlisted (closed buffer)
type gf after you select a specific file, vi will search the file for
gf you. (for example gf.php)
:find filename search filename
Page 1
Sheet1
^x^p code completion when you type only part of the word
omnifunc code completion (on version 7.0) – must have
^x^o omnixxx installed
:vimgrep texttosearch ../*.php search text in all file and directory
Misc Stuff
:pwd where are you now ? this will display your current directory
:cd c:\test\blablbla\ go to directory specified
:!dir dir command
:find filename search the file in current directory
:helptags c:\vim\_vimfiles\doc add local help on help
Vi Resources
http://rayninfo.co.uk/vimtips.html Tips and tricks about Vi
http://www.geocities.com/volontir/ Tips and tricks
http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/
VIM Color scheme
http://www.vim.org/scripts/index.php VIM Script collection
http://www.vim.org/tips/index.php tips frim vim
Page 2