Dashboard > Development > Eclipse Plugins > The Vim Way
Development Log In   View a printable version of the current page.
The Vim Way
Added by Brandon Philips, last edited by Michael Morgan on Mar 16, 2005  (view change)
Labels: 
(None)

Good VIM reference

http://vh224401.truman.edu/~dbindner/mirror/

CVS Integration

http://www.vim.org/scripts/script.php?script_id=90

PHP Doc

http://www.vim.org/scripts/script.php?script_id=520

Working with Multiple Buffers

http://lanzarotta.tripod.com/vim.html

Open a new file:

:e filename

Create a new window:

:vsplit or :split

To switch between windows:

Ctrl + w w

Bash shell binding

Add this to your bashrc

set -o vi

Thanks Polvi!

Code folding

zf zo zc type thing.

Line Numbering

:set number

Check PHP Syntax

map <f9> :w<CR>:!php -l %<CR>

Toggle numbering

map <C-M> :set nonumber<CR>
map <C-N> :set number<CR>

Switching and minimizing between vertical buffers

map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_

Easier to read syntax highlighting colors

"------ this clears out the old colors before we begin
highlight Constant    NONE
highlight Delimiter   NONE
highlight Directory   NONE
highlight Error       NONE
highlight ErrorMsg    NONE
highlight Identifier  NONE
highlight LineNr      NONE
highlight ModeMsg     NONE
highlight MoreMsg     NONE
highlight Normal      NONE
highlight NonText     NONE
highlight PreProc     NONE
highlight Question    NONE
highlight Search      NONE
highlight Special     NONE
highlight SpecialKey  NONE
highlight Statement   NONE
highlight StatusLine  NONE
highlight Title       NONE
highlight Todo        NONE
highlight Type        NONE
highlight Visual      NONE
highlight WarningMsg  NONE

"----- these are the new superior colors
highlight Normal      ctermfg=white guifg=#dce6ff guibg=#0a0f46
highlight Comment     term=bold ctermfg=5 ctermbg=0 guifg=Purple guibg=Black
highlight Constant    term=underline ctermfg=6 guifg=#FF2f8f
highlight Delimiter   term=bold cterm=bold ctermfg=1 gui=bold guifg=Red
highlight Directory   term=bold ctermfg=DarkBlue guifg=Blue
highlight Error       term=standout cterm=bold ctermbg=1 ctermfg=2 gui=bold guifg=red
highlight ErrorMsg    term=standout cterm=bold ctermfg=1 gui=bold guifg=red
highlight Identifier  term=underline ctermfg=3 guifg=yellow
highlight LineNr      term=underline cterm=bold ctermfg=3 guifg=Brown
highlight ModeMsg     term=bold cterm=bold ctermfg=3 ctermbg=1 guifg=yellow2 guibg=red
highlight MoreMsg     term=bold cterm=bold ctermfg=2 gui=bold guifg=Green
highlight NonText     term=bold ctermfg=2 guifg=green3
highlight PreProc     term=underline ctermfg=14 guifg=cyan
highlight Question    term=standout cterm=bold ctermfg=2 gui=bold guifg=Green
highlight Search      term=reverse ctermbg=2 ctermfg=4 guibg=Yellow
highlight Special     term=bold ctermfg=5 guifg=SlateBlue
highlight SpecialKey  term=bold ctermfg=DarkBlue guifg=Blue
highlight Statement   term=bold ctermfg=2 gui=bold guifg=green3
highlight StatusLine  term=reverse cterm=bold ctermfg=3 ctermbg=4 guifg=wheat guibg=#2f4f4f
highlight StatusLineNC term=bold ctermfg=2 ctermbg=5 guifg=#071f1f guibg=#5f9f9f
highlight Title       term=bold cterm=bold ctermfg=4 gui=bold guifg=Blue
highlight Todo        term=bold ctermfg=red ctermbg=yellow guifg=red guibg=yellow1 gui=bold
highlight Type        term=underline cterm=bold ctermfg=3 guifg=yellow gui=bold
highlight Visual      term=reverse cterm=bold ctermfg=6 ctermbg=5 guifg=yellow guibg=blue
highlight WarningMsg  term=standout cterm=bold ctermfg=1 ctermbg=4 guifg=Red

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators