Permalink
Browse files

Map textobj-entire to `ia` and `aa`.

  • Loading branch information...
nelstrom committed Nov 21, 2010
1 parent da8fbe0 commit 0bc0b1aa88c52d1b333bfb4ae8dcc9a8a5249f09
Showing with 7 additions and 4 deletions.
  1. +7 −4 vimrc
View
11 vimrc
@@ -354,10 +354,13 @@ vmap <C-Right> x<Right>P`[v`]
map <Leader>u :GundoToggle<CR>
" TextObject customizations {{{2
-" This prevents `ie` and `ae` from bing mapped to entire
-"let g:textobj_entire_no_default_key_mappings = 1
-" But how do you create new mappings?
-"TextobjEntireDefaultKeyMappings! aa <Plug>textobj-entire-a
+" Entire text object {{{3
+" Map text-object for entire buffer to `ia` and `aa`.
+let g:textobj_entire_no_default_key_mappings = 1
+xmap aa <Plug>(textobj-entire-a)
+omap aa <Plug>(textobj-entire-a)
+xmap ia <Plug>(textobj-entire-i)
+omap ia <Plug>(textobj-entire-i)
" }}}
" Modelines: {{{1

0 comments on commit 0bc0b1a

Please sign in to comment.