Browse files

adding C-U and C-Y bindings

This uses the unamed register and actually executes a let command
to yank the current command text into the register. Maybe there
is a better way?
  • Loading branch information...
1 parent dd8f86f commit aeb85b8ddf40be0fcc8a6dd4f8b0de3dfefb71af @kasbah committed Dec 17, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/rsi.vim
@@ -17,6 +17,11 @@ inoremap <C-X><C-A> <C-A>
cnoremap <C-A> <Home>
cnoremap <C-X><C-A> <C-A>
+inoremap <C-U> <Right><Space><Esc>d0"_xi
+inoremap <C-Y> <Esc>pi<Right>
+cnoremap <C-U> <Home>let @" = "<C-E>"<C-M>:
+cnoremap <C-Y> <C-R>"
inoremap <expr> <C-B> getline('.')=~'^\s*$'&&col('.')>strlen(getline('.'))?"0\<Lt>C-D>\<Lt>Esc>kJs":"\<Lt>Left>"
cnoremap <C-B> <Left>

0 comments on commit aeb85b8

Please sign in to comment.