linuor's vimrc files.
- git
- GNU global
git clone https://github.com/linuor/vimrc.git vimrc
cd vimrc
./install.sh
- Plugin 'gmarik/Vundle.vim' " Plugin manage
- Plugin 'scrooloose/nerdtree' " Tree explorer
- Plugin 'Townk/vim-autoclose' " Inserts matching bracket, paren, brace or quote
- Plugin 'tpope/vim-surround' " Modify surroundings
- Plugin 'vim-scripts/matchit.zip' " extended % matching for HTML, LaTeX, and many other languages
- Plugin 'vim-scripts/YankRing.vim' " Maintains a history of previous yanks, changes and deletes
- Plugin 'terryma/vim-multiple-cursors' " Sublime Text style multiple selections for Vim
- Plugin 'sukima/xmledit' " XML/HTML tags will be completed automatically
- Plugin 'kien/ctrlp.vim' " Fuzzy file, buffer, mru, tag, etc finder.
- Plugin 'ervandew/supertab' " Perform all your vim insert mode completions with Tab
- Plugin 'drmingdrmer/xptemplate' " Code snippets engine for Vim, with snippets library.
- Plugin 'vim-scripts/OmniCppComplete' " C/C++ omni-completion with ctags database
- Plugin 'Lokaltog/vim-easymotion' " An easy way to jump to a word
- Plugin 'majutsushi/tagbar' " browsing the tags of source files ordered by classes
- Plugin 'vim-scripts/indent-motion' " Vim motions to the start and end of the current indentation-delimited block
- Plugin 'mattn/emmet-vim' " expanding abbreviation like zen-coding.
- Plugin 'mileszs/ack.vim' " run ack (a better grep) from vim, and shows the results in a split window
- Plugin 'MarcWeber/vim-addon-mw-utils' " interpret a file by function and cache file automatically
- Plugin 'scrooloose/nerdcommenter' " plugin for intensely orgasmic commenting
- Plugin 'bling/vim-airline' " status/tabline for vim
- Plugin 'tpope/vim-repeat' " enable repeating supported plugin maps with '.'
- Plugin 'tpope/vim-fugitive' " a Git wrapper
- Plugin 'airblade/vim-gitgutter' " shows a git diff in the 'gutter' (sign column)
- Plugin 'tomasr/molokai' " molokai color schema
- Plugin 'nathanaelkane/vim-indent-guides' " visually displaying indent levels in code
<leader>
is mapped to;
cd
cd into the direction of current buffer<leader>x
toggle window to max/normal
" new tab
map <C-t><C-t> :tabnew<CR>
" close tab
map <C-t><C-w> :tabclose<CR>
" Bash like keys for the command line
cnoremap <C-A> <Home>
cnoremap <C-E> <End>
cnoremap <C-K> <C-U>
" <leader>pp toggles paste mode
nmap <leader>pp :set paste!<BAR>set paste?<CR>
" Writing Restructured Text (Sphinx Documentation) {
" Ctrl-u 1: underline Parts w/ #'s
noremap <C-u>1 yyPVr#yyjp
inoremap <C-u>1 <esc>yyPVr#yyjpA
" Ctrl-u 2: underline Chapters w/ *'s
noremap <C-u>2 yyPVr*yyjp
inoremap <C-u>2 <esc>yyPVr*yyjpA
" Ctrl-u 3: underline Section Level 1 w/ ='s
noremap <C-u>3 yypVr=
inoremap <C-u>3 <esc>yypVr=A
" Ctrl-u 4: underline Section Level 2 w/ -'s
noremap <C-u>4 yypVr-
inoremap <C-u>4 <esc>yypVr-A
" Ctrl-u 5: underline Section Level 3 w/ ^'s
noremap <C-u>5 yypVr^
inoremap <C-u>5 <esc>yypVr^A
"}
nmap <leader>qo :copen<CR>
nmap <leader>qc :cclose<CR>
nmap <leader>qg :Gtags<SPACE>
nmap <leader>qf :Gtags -f %<CR>
nmap <leader>qn :cn<CR>
nmap <leader>qp :cp<CR>
nmap <leader>g :GtagsCursor<CR>
<leader>nn
to toggle the tree window<leader>nb
map to :nerdtreefrombookmark<leader>nf
map to :nerdtreefind?
toggle help in tree windowo
O
open dir or filex
X
close dirt
open file in tab
<leader>yy
map to :YRShow<leader>yp
prev yanked item<leader>yn
next yanked item
<C-T>
map to :CtrlpBuffer<C-F>
<C-B>
shift between modes in ctrlp window<C-J>
<C-K>
move up and down in ctrlp window
<leader>tt
map to :TagbarToggle?
toggle help in tagbar window<CR>
Jump to tag definitionp
As above, but stay in Tagbar windowP
Show tag in preview window<C-N>
Go to next top-level tag<C-P>
Go to previous top-level tag<Space>
Display tag prototypev
Hide non-public tags+
Open fold-
Close foldo
Toggle fold*
Open all folds=
Close all foldszj
Go to next foldzk
Go to previous folds
Toggle sortc
Toggle autoclose optionx
Zoom window in/outq
Close window
Old text Command New text ~
"Hello *world!" ds" Hello world!
[123+4*56]/2 cs]) (123+456)/2
"Look ma, I'm *HTML!" cs"<q> <q>Look ma, I'm HTML!</q>
if *x>3 { ysW( if ( x>3 ) {
my $str = *whee!; vllllS' my $str = 'whee!';
<C-N>
next one<C-P>
prev one<C-X>
ignore one
triggered by super tab already.
<Leader><Leader>w
to trigger the word motion |w|.
<leader>]
<leader[>
forward and backward
<C-Y>,
Expand Abbreviationv_<C-Y>,
Wrap with Abbreviation
:Ack[!] [options] {pattern} [{directory}]
<leader>cc
comment a line<leader>c$
comment to the end of line<leader>c<space>
toggle comment
<leader>i
toggle indent guides