Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit aeb85b8ddf40be0fcc8a6dd4f8b0de3dfefb71af 1 parent dd8f86f
Kaspar Emanuel authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 plugin/rsi.vim
5 plugin/rsi.vim
@@ -17,6 +17,11 @@ inoremap <C-X><C-A> <C-A>
17 17 cnoremap <C-A> <Home>
18 18 cnoremap <C-X><C-A> <C-A>
19 19
  20 +inoremap <C-U> <Right><Space><Esc>d0"_xi
  21 +inoremap <C-Y> <Esc>pi<Right>
  22 +cnoremap <C-U> <Home>let @" = "<C-E>"<C-M>:
  23 +cnoremap <C-Y> <C-R>"
  24 +
20 25 inoremap <expr> <C-B> getline('.')=~'^\s*$'&&col('.')>strlen(getline('.'))?"0\<Lt>C-D>\<Lt>Esc>kJs":"\<Lt>Left>"
21 26 cnoremap <C-B> <Left>
22 27

0 comments on commit aeb85b8

Please sign in to comment.
Something went wrong with that request. Please try again.