" Windows
"------------------------
" :split
" :vsplit
" <C-W>n new
" <C-W>s split
" <C-W>v vsplit
" <C-W>c close
" <C-W>o others
map <C-w>] <C-w>w
map <C-w>[ <C-w>p
" Tabs
" -------------------------
" :tabnew
" :tabedit NAME
" :tabn
" :tabp
" :tabc
" :tabo (others)
map <C-t>] :tabn<CR>
map <C-t>[ :tabp<CR>
map <C-t>n :tabnew<CR>
map <C-t>c :tabc<CR>
map <C-t>o :tabo<CR>
" Shell
"----------------------------
" :! COMMAND
" :! bash - exit to leave
" C-z - shell
" fg - return
" Shell
" "--------------------------
" :sh - enter
" C-d - return
map <C-j> :%!python -m json.tool<CR>
:term
if using Nik's .vimrc will split and run bash. Use:res[ize] 20
to make the window smaller.:ConqueTerm bash
:ConqueTermSplit
:ConqueTermTab
:ConqueTermVSplit
<C-n> <C-p>
- scroll through matches based on 'wildmode'
:python print 'test'
:ruby puts 'test'
<C-g>
- Current file status:e
- edit file in curent window:cd [NAME]
- Change working directory:f [NAME]
- Rename file:w [NAME]
- write to file:r [NAME]
- Read file and insert after current file:Explore
- file browser:E
- edit/explore current dir:q
- quit
|topics|
- please cursor and <C-]> to naviagte. to return:help
:help quickref
:[letter][TAB]
- cycle through commands
:! COMMAND
<C-z>
- pause and go to shellfg
- return
:e NAME
- Open file
<C-w>n
- :new horizontal split (editing a new empty buffer)<C-w>s
- :split window horizontally (editing current buffer)<C-w>v
- :vsplit window vertically (editing current buffer)<C-w>c
- :close window<C-w>o
- close all windows, leaving :only the current window open<C-w>w
- go to next window<C-w>p
- go to previous window<C-w><Up>
- go to window above<C-w><Down>
- go to window below<C-w><Left>
- go to window on left<C-w><Right>
- go to window on right<C-w -N>
- decrease by line<C-w +N>
- increase by line:res +N
- resize:res -N
- resize<C-w_>
- maximize window<C-w=>
- make all equal
:tabnew
:tabc[close]
:tabc[close] index
:tabo[nly]
:tabn[ext] index
:tabf[irst]
:tabl[ast]
[N] gt
- go to tab N
:e
- edit file:hide
- close current window:only
- only keep this window open:ls
- list all buffers:b[N]
- open buffer N:bn
- next buffer:bp
- prev buffer:b [N]
- cycle through files in buffer by name
0
- front of line$
- end of line[N]G
- go to line:[N]
- go linew
- jump word(
- move block up)
- move block down[[
- move section up]]
- move section down<C-b>
back one screen<C-f>
forward one screen<C-u>
- up half screen<C-d>
- down one screen
Also see [http://vim.wikia.com/wiki/Using_marks]
za
- toggle folding at current indent sectionzA
- toggle folding include any parent indents:delmarks a
- Delete mark a:marks
- List all marksm[k]
- mark line'[k]
- move to mark k'a-z
- same file'A-Z
- beteween files
i
- insertci"
orci'
- clear text within " and insertI
- insert at beginninga
- appendA
- append to endo
- open blank line belowO
- open blank line afterea
- append end of word
[N]<<
- shift line[N]>>
- shift linev
- select multiV
- select lines>
- shift<
- shiftd
- delete marked~
- switch caseyy
- copy lineyw
- copy wordJ
- join next line with current
ci"
orci'
- clear text within " and insertx
- delete char forwardX
- deletes char backwardsdd
- cut linedw
- cut cursor till end of wordd^
- cut cursor till start of lineD
- cut from cursor till end of lineyy
- copy a line[N]yy
- copy N linesp
- paste after cursorP
- paste before cursor[N]dd
- cut next N lines.
- repeast last commandu
- undo
:w
- write:q
- quit:wq
- write and quit:q!
- throw away changes
/pattern
- search for pattern?pattern
- search backward for patternn
- repeat search in same directionN
- repeat search in opposite direction:%s/old/new/g
- replace all old with new throughout file:%s/old/new/gc
- replace all old with new throughout file with confirmations