Skip to content
vova edited this page Oct 29, 2013 · 55 revisions

Plugins:

This is a simple plugin that helps to end certain structures automatically. In Ruby, this means adding "end" after "if", "do", "def" and several other keywords.

This plugin was born as a personal need to have some little special features from other editors into my preferred one. The Eclipse IDE editor has an auto-complete for open-close pair of characters feature that I always wanted into Vim.

l9 is a Vim-script library, which provides some utility functions and commands for programming in Vim.

The matchit.vim script allows you to configure % to match more than just single characters. You can match words and even regular expressions. Also, matching treats strings and comments (as recognized by the syntax highlighting mechanism) intelligently.

This plugin started out as a set of personal mappings, but there was enough enjoyment among those I shared it with for me to clean it up and release it.

Plugin to comment and un-comment lines in different source files in both normal and visual mode

Surround.vim is all about "surroundings": parentheses, brackets, quotes, XML tags, and more. The plugin provides mappings to easily delete, change and add such surroundings in pairs.

With bufexplorer, you can quickly and easily switch between buffers.

The grep plugin integrates the grep, fgrep, egrep, and agrep tools with Vim and allows you to search for a pattern in one or more files and jump to them.

If syntax errors are detected, the user is notified and is happy because they didn't have to compile their code or execute their script to find them.

A snippet is a piece of often-typed text that you can insert into your document using a trigger word followed by a Tab.


Navigations:

The Command-T plug-in provides an extremely fast, intuitive mechanism for opening files with a minimal number of keystrokes. It's named "Command-T" because it is inspired by the "Go to File" window bound to Command-T in TextMate.(For those who has upgraded ubuntu to version 13.04 and got problems with his favorite text editor.)

Fast opening files

Fuzzy file, buffer, mru, tag, ... finder with regexp support.

The NERD tree : A tree explorer plugin for navigating the filesystem

Easy file navigation, enhanced syntax highlighting, and more.


Syntax highlight:


Fast keys:

  • Bufexplorer > Ctrl + b
  • Comments > comment Ctrl + c, uncomment Ctrl + x
  • Grep > Ctrl + f
  • Command-T > Alt + Shift + i
  • Fuzzyfinder > Alt + Shift + o
  • Ctrlp > Ctrl + p
  • Nerdtree > F2, more functions Shift + s m
  • vim-rails > Go to view gv, model gm, helper gh, controller gc, stylesheets gs, javascript gj
  • SnipMate > Snip name + Tab
  • Save file > Ctrl + s
  • Select all > Ctrl + a
  • Clearing highlighted search > press Esc
  • Tabs > New tab tt, next tab Ctrl + Tab, previous tab Shift + Tab, close tab Ctrl + q
  • Move line > up Alt + up, down Alt + down
  • Sort css style > press F3
  • Saving a session is simple > press F6. To open Vim with a saved session, call it with -S option. Enter in terminal: $ gvim -S last.vim

When you need to make changes to a system file, you can override the read-only permissions by typing :w!!, vim will ask for your sudo password and save your changes.

Time traveling in vim

For example :earlier 35s will go back 35 seconds in time. If you over shot your destination, you can move forward in time with :later 12s.

more commands... | how to use vim? | plugins

Clone this wiki locally