Skip to content

Commit

Permalink
vim: add nicer buffer movement maps
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Apr 29, 2013
1 parent 6336863 commit 4aa3572
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions vim/nancy/020-mappings.vim
Expand Up @@ -4,20 +4,32 @@

let mapleader = ';'

map <C-s> :call RemoveTrailingCrap()<cr>
nnoremap b! :b1<cr>
nnoremap b' :b2<cr>
nnoremap b# :b3<cr>
nnoremap b$ :b4<cr>
nnoremap b% :b5<cr>
nnoremap b& :b6<cr>
nnoremap b/ :b7<cr>
nnoremap b( :b8<cr>
nnoremap b) :b9<cr>
nnoremap b= :b10<cr>
nnoremap <silent> <leader>å :%s/\v\d+/\=submatch(0) + 1/g<CR> :normal gg<CR>
"nmap <leader>O :%w >> ~/vim_output<CR>
"nmap <leader>o :exec ':.w >> ' . eval(string( xclipboard_pipe_path ))<CR>

" searching {{{
nnoremap <silent> ! *:call HL_Search_Cword()<CR>
"nnoremap <silent> ! *:call HL_Search_Cword()<CR>
" :silent !printf '\e]12;\#ff0000'
nnoremap <silent> # #:call HL_Search_Cword()<CR>
"nnoremap <silent> # #:call HL_Search_Cword()<CR>
" :silent !printf '\e]12;\#56ff00'
nnoremap <silent> * *:call HL_Search_Cword()<CR>
"nnoremap <silent> * *:call HL_Search_Cword()<CR>
" :silent !printf '\e]12;\#ff33'
nnoremap <silent> N N:call HL_Search_Cword()<CR>
"nnoremap <silent> N N:call HL_Search_Cword()<CR>
" :silent !printf '\e]12;\#030407'
nnoremap <silent> n n:call HL_Search_Cword()<CR>
"nnoremap <silent> n n:call HL_Search_Cword()<CR>
" :silent !printf '\e]12;\#030407
" user interface {{{
nnoremap <CR> za
Expand Down

0 comments on commit 4aa3572

Please sign in to comment.