PIMP ZHNG YOUR VIM
  make your vim really powerful ah!
CALVIN CHENG
     www.calvinx.com
www.od-eon.com/blogs/calvin
1   What is Simi si vim?


         2   Installing vim



                    3   The Basics
4   git + pathogen + vim



        5   python + vim


                 6
                     Compile source
7   Funny vim
1
What is Simi si vim?
Simple, powerful, customizable text editor
2
Installing vim
Linux: binary via package managers or compile from source
 Mac OS X (unix-style OS): via package managers or compile from source
 Windows binary or compile from source
 or just hop over to http://www.vim.org/

Example:

            sudo aptitude install vim

            sudo pacman -S vim

            sudo port install vim
3
The Basics
Start point for beginners

vimtutor
Modes you will become familiar with


normal mode
visual mode
select mode
operator pending mode
insert mode
command-line mode
Customization (Where you begin ‘zhng-ing’)

.vimrc
.vim directory
4
git + pathogen + vim
What is pathogen.vim?

Manage your runtime paths
Clean organization of your vim plugins
No more manual plugin upgrades!
Getting infected with pathogen

 Install to ~/.vim/autoload/pathogen.vim

How:

  mkdir -p ~/.vim/{autoload,bundle}

  curl -so ~/.vim/autoload/pathogen.vim 
     https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
Getting infected with pathogen

Add this to your .vimrc file:

call pathogen#infect()
Managing plugins with git - super easy!


cd ~/.vim/bundle

git clone git://github.com/tpope/vim-fugitive.git
Some of my favorite plugins

Conque-Shell
IndentAnything
fugitive
nerdcommenter
nerdtree
python.vim
django.vim
vim-javascript
mxml.vim
5
python + vim
You know the drill...


cd ~/.vim/bundle

git clone https://github.com/vim-scripts/python.vim--Vasiliev.git python.vim
Not just Python syntax/indentation support
6
compile vim from source
Default binary package may not have all features

+clipboard
+X11
+python
+python3
+ruby

... etc
Take matters into your own hands!

Compile from source
Traditional compilation, download package, ./configure [option]
Or if you use linux OSes with powerful build tools (e.g. ABS for
Arch, emerge/ebuild for Gentoo)
Specify specific features/options to be enabled during
compilation, e.g. in PKGBUILD for arch
7
Funny vim
Great community, Great sense of humor


:help 42

:help!

:help quotes

:help holy-grail
Great community, Great sense of humor


#vim on irc freenode

http://vim.wikia.com
Stefan Talpalaru   Liviu Bogdan Chiributa        Chng Nai Yun   That’s Me! :-)




                                    + ........
Questions and Discussion welcome!

    calvin.cheng@od-eon.com

zhng your vim

  • 1.
    PIMP ZHNG YOURVIM make your vim really powerful ah!
  • 2.
    CALVIN CHENG www.calvinx.com www.od-eon.com/blogs/calvin
  • 3.
    1 What is Simi si vim? 2 Installing vim 3 The Basics
  • 4.
    4 git + pathogen + vim 5 python + vim 6 Compile source
  • 5.
    7 Funny vim
  • 6.
  • 7.
  • 9.
  • 10.
    Linux: binary viapackage managers or compile from source Mac OS X (unix-style OS): via package managers or compile from source Windows binary or compile from source or just hop over to http://www.vim.org/ Example: sudo aptitude install vim sudo pacman -S vim sudo port install vim
  • 11.
  • 12.
    Start point forbeginners vimtutor
  • 13.
    Modes you willbecome familiar with normal mode visual mode select mode operator pending mode insert mode command-line mode
  • 14.
    Customization (Where youbegin ‘zhng-ing’) .vimrc .vim directory
  • 16.
  • 17.
    What is pathogen.vim? Manageyour runtime paths Clean organization of your vim plugins No more manual plugin upgrades!
  • 19.
    Getting infected withpathogen Install to ~/.vim/autoload/pathogen.vim How: mkdir -p ~/.vim/{autoload,bundle} curl -so ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
  • 20.
    Getting infected withpathogen Add this to your .vimrc file: call pathogen#infect()
  • 21.
    Managing plugins withgit - super easy! cd ~/.vim/bundle git clone git://github.com/tpope/vim-fugitive.git
  • 22.
    Some of myfavorite plugins Conque-Shell IndentAnything fugitive nerdcommenter nerdtree python.vim django.vim vim-javascript mxml.vim
  • 23.
  • 24.
    You know thedrill... cd ~/.vim/bundle git clone https://github.com/vim-scripts/python.vim--Vasiliev.git python.vim
  • 25.
    Not just Pythonsyntax/indentation support
  • 27.
  • 28.
    Default binary packagemay not have all features +clipboard +X11 +python +python3 +ruby ... etc
  • 29.
    Take matters intoyour own hands! Compile from source Traditional compilation, download package, ./configure [option] Or if you use linux OSes with powerful build tools (e.g. ABS for Arch, emerge/ebuild for Gentoo) Specify specific features/options to be enabled during compilation, e.g. in PKGBUILD for arch
  • 30.
  • 31.
    Great community, Greatsense of humor :help 42 :help! :help quotes :help holy-grail
  • 32.
    Great community, Greatsense of humor #vim on irc freenode http://vim.wikia.com
  • 33.
    Stefan Talpalaru Liviu Bogdan Chiributa Chng Nai Yun That’s Me! :-) + ........
  • 34.
    Questions and Discussionwelcome! calvin.cheng@od-eon.com