Skip to content

Commit

Permalink
Added folding cheet sheet for noobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Mar 18, 2010
1 parent 79be99f commit 926b0da
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vimrc
@@ -1,3 +1,6 @@
" Folding cheet sheet
" zR open all folds
" zM close all folds
" An example for a vimrc file. {{{1
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
Expand Down Expand Up @@ -188,14 +191,15 @@ nmap <D-]> >>
vmap <D-[> <gv
vmap <D-]> >gv
" Move selection {{{2
" Bubble current line down/up
" Move current line down/up
map <C-Down> ddp
map <C-Up> dd<Up>P
" Bubble visually selected lines down/up
" Move visually selected lines down/up
vmap <C-Down> xp`[V`]
vmap <C-Up> x<Up>P`[V`]
" Bubble visual selection back/forwards
" Move visual selection back/forwards
vmap <C-Left> x<BS>P`[v`]
vmap <C-Right> x<Space>P`[v`]
" Modelines: {{{1
" vim: nowrap fdm=marker
" }}}

0 comments on commit 926b0da

Please sign in to comment.