LinuxSoftware

Coding and tramping in Aotearoa / New Zealand

Download

http://www.vim.org

Vim, the Coder's editor

vim.cleanser.jpg
With Vim you can edit very effectively. The most often used commands are just a single key stroke. To allow for this, you need to start Insert mode to enter text and return to Normal mode to execute commands. The big advantage is that you can keep your hands on the keyboard and work very fast. This takes a little time to get used to. It's a small investment that pays itself back soon

Vim-LinuxSoftware bundle

I've built up a bundle of plugins and configuration settings I use. Perhaps they might be of interest to you too?

To install the bundle: untar it, then rename dot.vim to .vim, dot.vimrc to .vimrc, and dot.gvimrc to .gvimrc, being careful to first rename your existing vim files if you have anything you want to keep.

Plugins

  • :A: Switch to alternate file http://www.vim.org/scripts/script.php?script_id=31

  • :CD: Change to the directory the current buffer is using http://www.vim.org/scripts/script.php?script_id=65

  • CSS color: CSS color preview http://www.vim.org/scripts/script.php?script_id=2150

  • DrawIt: ASCII art drawing mode http://mysite.verizon.net/astronaut/vim/index.html#DRAWIT http://www.vim.org/scripts/script.php?script_id=40

  • indent/python: My attempt at indenting Python to conform to PEP8 http://www.vim.org/scripts/script.php?script_id=3003

  • KeepCase: Case-persistant substitutions http://www.vim.org/scripts/script.php?script_id=6

  • MatchIt: Extended % matching http://www.vim.org/scripts/script.php?script_id=39

  • PythonMatch: Python keyword % matching http://www.vim.org/scripts/script.php?script_id=386

  • MRU: Manage Most Recently Used (MRU) files http://www.vim.org/scripts/script.php?script_id=521

  • NERDTree: A tree explorer plugin for navigating the filesystem http://github.com/scrooloose/nerdtree http://www.vim.org/scripts/script.php?script_id=1658

  • PyFlakes: on the fly Python checking http://github.com/kevinw/pyflakes-vim http://www.vim.org/scripts/script.php?script_id=2441

  • Surround: Delete/change/add parentheses/quotes/XML-tags/much more with ease http://github.com/tpope/vim-surround http://www.vim.org/scripts/script.php?script_id=1697

  • TagList: Source code browser http://vim-taglist.sourceforge.net http://www.vim.org/scripts/script.php?script_id=273

  • TComment: An extensible & universal comment plugin http://github.com/tomtom/vimtlib http://www.vim.org/scripts/script.php?script_id=1173

Configuration

  • vls-config.vim: I keep most of my configuration settings in this plugin file

  • vls-keys.vim: Custom keys

  • vls-toolbar.vim: Recently I've been using a custom toolbar which reminds me of some of the new features of Vim 7.0.

Screen shots

WikipediaIdevice.png

Showing: Python highlighting, Tags list of function name on the left, Pyflakes highlighting the misnamed "TemporaryDirPath" call,

RatePlan.png

Showing: C++ highlighting, the NERDTree file explorer, the H an C file (which :A will swap between)

MRU.png

Showing: The most recently used (MRU) files window, and also tabs.

DrawIt.png

Showing: DrawIt, and my visual block right mouse click menu for it.


See also my blog post: Updated my Vim plugins