Permalink
Browse files

Added VisIncr plugin.

  • Loading branch information...
1 parent 4c27734 commit 9c88d4dc4231686b489c9128046e3a98d61bcda0 @nelstrom committed Oct 21, 2010
View
@@ -64,3 +64,6 @@
[submodule "vim/bundle/vim-rake"]
path = vim/bundle/vim-rake
url = http://github.com/tpope/vim-rake.git
+[submodule "vim/bundle/visincr"]
+ path = vim/bundle/visincr
+ url = http://github.com/vim-scripts/VisIncr.git
View
@@ -10,3 +10,7 @@ if &background == "dark"
endif
set guifont=Inconsolata:h18
colorscheme mac_classic
+if exists('*HexHighlight()')
+ " http://www.vim.org/scripts/script.php?script_id=2937
+ nmap <leader>h :call HexHighlight()<Return>
+endif
Submodule visincr added at ef7f52
@@ -0,0 +1,13 @@
+set background=light
+highlight clear
+if exists("syntax_on")
+ syntax reset
+endif
+let g:colors_name = "Demo light"
+" TODO: Override default 'TODO' colors
+
+highlight Normal guibg=#FFE3F4 guifg=#111111
+highlight CursorLine guibg=#FCF2F9
+"highlight Folded guibg=#cc0000
+
+highlight Todo guifg=#cc0000 guibg=NONE
File renamed without changes.
File renamed without changes.
View
@@ -1,4 +1,4 @@
-" Folding cheet sheet
+" Folding cheet sheet
" zR open all folds
" zM close all folds
" za toggle fold at cursor position
@@ -133,10 +133,6 @@ nmap <silent> <leader>w :set wrap!<CR>
nmap <silent> <leader>s :set spell!<CR>
nmap <silent> <leader>n :silent :nohlsearch<CR>
command! -nargs=* Wrap set wrap linebreak nolist
-if exists('*HexHighlight()')
- " http://www.vim.org/scripts/script.php?script_id=2937
- nmap <leader>h :call HexHighlight()<Return>
-endif
" Mappings {{{1
" Speed up buffer switching {{{2
@@ -175,7 +171,8 @@ map <leader>ew :e <C-R>=expand("%:p:h") . "/" <CR>
map <leader>es :sp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>ev :vsp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>et :tabe <C-R>=expand("%:p:h") . "/" <CR>
-
+" Shortcuts for visual selections {{{2
+nmap gV `[v`]
" Easily modify vimrc {{{1
nmap <leader>v :e $MYVIMRC<CR>
" http://stackoverflow.com/questions/2400264/is-it-possible-to-apply-vim-configurations-without-restarting/2400289#2400289
@@ -313,15 +310,16 @@ vmap <D-/> ,c<space>gv
map <D-/> ,c<space>
" Move selection {{{2
-" Move current line down/up
-map <C-Down> ddp
-map <C-Up> dd<Up>P
-" Move visually selected lines down/up
-vmap <C-Down> xp`[V`]
-vmap <C-Up> x<Up>P`[V`]
+ " Move current line down/up
+ map <C-Down> ]e
+ map <C-Up> [e
+ " Move visually selected lines down/up
+ vmap <C-Down> ]egv
+ vmap <C-Up> [egv
" Move visual selection back/forwards
-vmap <C-Left> x<BS>P`[v`]
-vmap <C-Right> x<Space>P`[v`]
+set ww+=<,>
+vmap <C-Left> x<Left>P`[v`]
+vmap <C-Right> x<Right>P`[v`]
" Modelines: {{{1
" vim: nowrap fdm=marker
" }}}

0 comments on commit 9c88d4d

Please sign in to comment.