Ian's vim configuration (part of dotfiles).
./install.sh
- scrooloose/nerdtree - Tree explorer
<ctrl>n
Toggle show/hide<ctrl>ww
Toggle between buffer and tree panest
Open the selected file in a new tabR
Refresh the root directory listing
- ctrlpvim/ctrlp.vim - Fuzzy file, buffer, MRU finder
<ctrl>p
Open file menu<ctrl>\c
Paste from clipboard<ctrl>f
Switch modes
- [SirVer/ultisnips][ultisnipsUrl] - Code snippet manager
- scrooloose/nerdcommenter - Commenting
\cc
to comment a line\cu
to uncomment a line
- tpope/vim-surround - Quoting/parenthesizing
cs[sorrounding][replacement]
Replace enclosing characters
- [mbbill/undotree][undotreeUrl] - Undo history visualizer
:UndotreeToggle
- junegunn/goyo.vim - Distraction-free writing
:Goyo
- [tpope/vim-fugitive][fugitiveUrl] - Git wrapper
:Gstatus
Status:Gblame
Blame:Gbrowse
Open current file on GitHub:Git [command]
All git commands
- Chiel92/vim-autoformat - Code formatting
:Autoformat
or:Autoformat js
- plasticboy/vim-markdown
]]
Go to next header[[
Go to previous header
- godlygeek/tabular - Lines up text with tabs
:Tabularize /[pattern]
- [valloric/youcompleteme][ycmUrl] - Code-completion engine
- vim-airline/vim-airline - Status/tabline
- vim-scripts/sql.vim--Stinson - Better SQL syntax highlighting
- fatih/vim-go - Go development plugin
i
InsertI
Insert at beginning of the current linea
AppendA
Append at the end of the current line:set paste
Paste-insert mode
<LeftArrow>
Left<DownArrow>
Down<UpArrow>
Up<RightArrow>
RightW
Forward/right word navigationB
Backward/left word navigation<Home>
or<Fn><LeftArrow>
Go to beginning of the line<End>
or<Fn><RightArrow>
Go to end of the line123G
Go to line123
gf
Go to file<ctrl>wgf
Go to file in a new tabgd
Go to local definition
u
Undo<ctrl>r
Redo
v
Start character selectionviw
Select inner word<shift>v
Start line selectionv<shift>(arrow)
Select line chunks in the direction of the arrow
y
Copy (yank)p
Paste"0p
Paste from yank register instead of default registera<space><ctrl-r>"
Append, add a space, and paste
d
Cutdd
Delete line (or cut in highlight mode)d$
Delete from cursor to end of line
c$
Change from cursor to end of linecw
Change word
<ctrl>>
Indent<ctrl><
Deindent.
Repeat indent/deindent
<enter>
New line below cursoro
New line below cursor and switch to input modeO
New line above cursor and switch to input mode
t
Open NERDTree file in new tab<ctrl>t
Open ctrlp or fzf file in new tabgt
Go to next tab#gt
Go to numbered tabgT
Go to previous tab
:e (file)
Edit a file, if no file is passed, the current file is reloaded:b<tab>
Switch between buffers<ctrl>o
Jump to previous buffer<ctrl>i
Jump to next buffer:ls
List buffers:wq
Write modifications and quit buffer:q
Quit buffer:q!
Quit buffer and ignore modifications:qa
Quit all buffers
:noh
Turn off search highlighting:%s/<find>/<replace>/g
Find and replace in all lines
za
Toggle 1-level foldzA
Toggle all-level foldzr
Unfold all 1-levelzR
Unfold allzm
Fold all 1-levelzM
Fold all
zg
Add word to dictionary:set nospell
Turn off spell checking
ย
Created by Ian Walter.
[undotreeUrl]: [fugitiveUrl]: https://github.com/tpope/vim-fugitive [goyoUrl]: [undotreeUrl]: https://github.com/mbbill/undotree