Ollie Rutherfurd  committed b32b2ac

assorted mapping clean-up and additions

  • Participants
  • Parent commits 72b623a
  • Branches default

Comments (0)

Files changed (2)

 91190e67720f852c17602504d5225d4e675b6499 bundle/gundo
 78fffa609b3e6b84ef01ee4c9aba6d7435d7b18e bundle/indent-object
 9990a767695c78a44611ce33fb2dbc25c83d8827 bundle/javascript
-12f692f4369526f408e724fa74a0da527ebe2f2f bundle/nerdtree
+30f6bcc30caf76bc1213f5c3d4001ba5d5fbe7fc bundle/nerdtree
 fa3563dda862c1dc46ddac32d8a9f939e9077379 bundle/rainbow
 cdffdd43816ddaeee858ae42da3ab6ddcfa25d19 bundle/repeat
 bf563cc7777ae473901b1d7f5d274f83b6e77630 bundle/snipmate
 set writebackup " equivlent to jEdit's two-stage save
 set ignorecase                  " by default when searching
-set nohlsearch
+set hlsearch
 set incsearch
 set smartcase
 set infercase
 let g:netrw_hide=1
 let g:netrw_list_hide='.*\.py[oc]$,.*\.swp$'
+inoremap <C-BS> <C-w>
+inoremap jj <esc>
 " remap k,j for screenlines vs physical lines
 nnoremap k gk
 nnoremap j gj
 nnoremap gk k
 nnoremap gj j
-map <C-j> <C-W>j
-map <C-k> <C-W>k
-map <C-h> <C-W>h
-map <C-l> <C-W>l
-map <A-PageDown> <C-W>w
-map <A-PageUp> <C-W>W
+" like help says, logical
+nnoremap Y y$
-map <silent> <C-l> :nohlsearch<CR>
+" A+arrow indents
+nnoremap <A-Left> <<
+nnoremap <A-Right> >>
+vnoremap <A-Left> <<
+vnoremap <A-Right> >>
+" easier navigation between splits
+nnoremap <C-j> <C-W>j
+nnoremap <C-k> <C-W>k
+nnoremap <C-h> <C-W>h
+nnoremap <C-l> <C-W>l
+nnoremap <A-PageDown> <C-W>w
+nnoremap <A-PageUp> <C-W>W
+" Copy the entire buffer into the system clipboard
+map <leader>ya :%y+<CR>
+" Yank a visual selection into the system clipboard
+map <leader>yv :y+<CR>
+map <leader>ys :y+<CR>
 " Open a Quickfix window for the last search
 nnoremap <silent> <leader>/ :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR>'
-map <C-o> :Explore!<CR>
+nnoremap <C-o> :Explore!<CR>
 " tab navigation (next tab) with alt left / alt right arrow keys
 nnoremap  <a-right>  gt
 set hidden
+nnoremap <leader>h :set hlsearch!<cr>
 nnoremap <F5> :GundoToggle<CR>
 nnoremap <leader>f :NERDTreeToggle<CR>
 nnoremap <leader>ev <c-w>v:edit $MYVIMRC<cr>
 nnoremap <leader>sv :source $MYVIMRC<cr>
+nnoremap <leader>sp :set spell!<cr>
 nnoremap <leader>n :set number!<cr>
 nnoremap <leader>w :set wrap!<cr>