Skip to content

Latest commit

 

History

History
79 lines (43 loc) · 1.23 KB

vim.md

File metadata and controls

79 lines (43 loc) · 1.23 KB

VIM must-haves && must-knows

Basic operations

Resize window

:resize +5 
:resize -5
:vertical resize +5
:vertical resize -5

Editing

EasyMotion (DROPPED)

git clone git@github.com:Lokaltog/vim-easymotion.git

Add into .vimrc

let g:EasyMotion_leader_key = '<leader>'

Set leader key:

let mapleader='\'

Enable easymotion:

\\w

Buffer Management

bufkill

cd ~/.vim/bundle
git clone git@github.com:vim-scripts/bufkill.vim.git

:bd close the buffer as well as the window/tab :BD close the current buffer but leave the window/tab there

Open files

fuzzyfinder

cd ~/.vim/bundle
git clone git@github.com:vim-scripts/L9.git
git clone git@github.com:vim-scripts/FuzzyFinder.git

Usage:

:FufFile, browse the dir

:FufFile **/FileName.java: find the target file

NERDTree

cd ~/.vim/bundle
git clone git@github.com:scrooloose/nerdtree.git

Source browsing

SrcExpl

git clone git@github.com:wesleyche/SrcExpl.git

:SrcExpl : enable preview window

Cscope

Config cscope

Download http://cscope.sourceforge.net/cscope_maps.vim and put to plugin dir

FileType

Markdown

git clone git@github.com:tpope/vim-markdown.git