Skip to content

Commit

Permalink
Added VisIncr plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Oct 21, 2010
1 parent 4c27734 commit 9c88d4d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion vim/bundle/mac-classic
1 change: 1 addition & 0 deletions vim/bundle/visincr
Submodule visincr added at ef7f52
13 changes: 13 additions & 0 deletions vim/colors/demo_light.vim
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 12 additions & 14 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
" Folding cheet sheet
" Folding cheet sheet
" zR open all folds
" zM close all folds
" za toggle fold at cursor position
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.