Skip to content

Commit

Permalink
Vim tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik committed Jan 29, 2012
1 parent 79e98c8 commit c31dfd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vim/config/mappings.vim
Expand Up @@ -29,9 +29,9 @@ vnoremap / /\v
nnoremap ? ?\v
vnoremap ? ?\v
" Select the last pasted text.
" http://vim.wikia.com/wiki/Selecting_your_pasted_text
nnoremap <expr> gp '`[' . strpart(getregtype(), 0, 1) . '`]'
" Select the text that was last edited/pasted.
" http://vimcasts.org/episodes/bubbling-text/
nmap gV `[v`]
" Move by screen lines instead of file lines.
" http://vim.wikia.com/wiki/Moving_by_screen_lines_instead_of_file_lines
Expand Down
4 changes: 4 additions & 0 deletions vim/config/plugins.vim
Expand Up @@ -60,3 +60,7 @@ map <nop> <Plug>AM_w=
" Get rid of all mappings except one.
let g:NERDCreateDefaultMappings=0
map <leader>c <Plug>NERDCommenterToggle
" YANKRing
" Don't map gp and gP.
let g:yankring_paste_using_g = 0

0 comments on commit c31dfd5

Please sign in to comment.