dotfiles

config files for my linux setup
git clone git://edryd.org/dotfiles
Log | Files | Refs | README

rsi.txt (3247B)


      1 *rsi.txt*  Readline style insertion
      2 
      3 Author:  Tim Pope <http://tpo.pe/>
      4 License: Same terms as Vim itself (see |license|)
      5 
      6 This plugin is only available if 'compatible' is not set.
      7 
      8 INTRODUCTION                                    *rsi*
      9 
     10 This plugin provides Readline (Emacs) mappings for insert and command line
     11 mode that try not to overlap with built-in Vim functionality.
     12 
     13 MAPS                                            *rsi-maps*
     14 
     15                                                 *rsi-CTRL-A*
     16 <C-a>                   Go to beginning of line.
     17 
     18                                                 *rsi-CTRL-X_CTRL-A*
     19 <C-x><C-a>              Access Vim's built-in |i_CTRL-A| or |c_CTRL-A|.
     20 
     21                                                 *rsi-CTRL-B*
     22 <C-b>                   Go backwards one character.  On a blank line, kill it
     23                         and go back to the previous line.
     24 
     25                                                 *rsi-CTRL-D*
     26 <C-d>                   Delete character in front of cursor.  Falls back to
     27                         |i_CTRL-D| or |c_CTRL-D| at the end of the line.
     28 
     29                                                 *rsi-CTRL-E*
     30 <C-e>                   Go to end of line.  Falls back to |i_CTRL-E| if
     31                         already at the end of the line.  (|c_CTRL-E| already
     32                         goes to end of line, so it is not mapped.)
     33 
     34                                                 *rsi-CTRL-F*
     35 <C-f>                   Move forward one character.  Falls back to
     36                         |i_CTRL-F| or |c_CTRL-F| at the end of the line.
     37 
     38                                                 *rsi-CTRL-G*
     39 <C-g>                   Return to normal mode from the |cmdline|.
     40 
     41                                                 *rsi-CTRL-T*
     42 <C-t>                   Transpose two characters.  This is mapped in command
     43                         line mode only, as |i_CTRL-T| is too important to
     44                         clobber.
     45 
     46                                                 *rsi-META-BS*
     47 <M-BS>                  Delete backward one word.
     48 
     49                                                 *rsi-META-b*
     50 <M-b>                   Go backwards one word.
     51 
     52                                                 *rsi-META-d*
     53 <M-d>                   Delete forwards one word.
     54 
     55                                                 *rsi-META-f*
     56 <M-f>                   Go forwards one word.
     57 
     58                                                 *rsi-META-n*
     59 <M-n>                   Equivalent to |c_<Down>| or |i_<Down>|.
     60 
     61                                                 *rsi-META-p*
     62 <M-p>                   Equivalent to |c_<Up>| or |i_<Up>|.
     63 
     64 In the terminal, the meta key sends escape, so mapping these would require
     65 mappings starting with escape in insert mode.  This makes Vim appear to lag
     66 for a second if you actually press just escape.  Instead, rsi.vim makes
     67 these available by telling Vim they are existing special keys. For example,
     68 the key code for <S-Left> is changed to <Esc>b.
     69 
     70 To disable meta maps, add the following to your vimrc:
     71 >
     72     let g:rsi_no_meta = 1
     73 <
     74 ABOUT                                           *rsi-about*
     75 
     76 Grab the latest version or report a bug on GitHub:
     77 
     78 http://github.com/tpope/vim-rsi
     79 
     80  vim:tw=78:et:ft=help:norl: