reedline.vim : Simple Readline/Bash-like shortcuts for command-line mode
script karma |
Rating 6/3,
Downloaded by 482 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Michael Meyer |
|
script type |
utility |
|
description |
Adds some command-line mode shortcuts which adhere more or less to standard/default key mappings in Bash/GNU Readline.
Default mappings are described below; to get this list in the editor, use `:h reedline-mappings` (individual key combos, like `:h reedline_alt-f`, and category headings used below, like `:h reedline-movement`, will also work).
Report bugs, etc, at https://github.com/entrez/reedline.vim
Default mappings:
-----------------------------------------------------------------------------
movement
<C-a> -- Jump to the start of the current command/line
<C-e> -- Jump to the end of the current command/line
<C-b> -- Move one character left
<C-f> -- Move one character right
<M-b> -- Move one word left
<M-f> -- Move one word right
-----------------------------------------------------------------------------
deletion
<C-k> -- Delete everything until end of line
<C-u> -- Delete until start of line
<M-d> -- Delete word
<M-BS> -- Rubout word
<C-w> -- Rubout (optionally, space-delimited) word - see install details re: `g:space_delimited_C_w`
<C-d> -- Delete character
<C-h> -- Rubout character
-----------------------------------------------------------------------------
other
<M-l> -- Make next word lowercase
<M-u> -- Make next word UPPERCASE
<M-c> -- Make next word Capitalized
<C-y> -- `Yank' (put/paste) last deleted word
<C-t> -- Transpose characters
<M-t> -- Transpose words
<C-p> -- Cycle up through cmd history
<C-n> -- Cycle down through cmd history
<C-j> <C-m> -- Submit current line
<M-=> <M-?> -- Open command completion options/suggestions |
|
install details |
Once installed, the variable `g:space_delimited_C_w` may be set to a nonzero value to force C-w to behave like it normally does in Bash (i.e. rubout the word up to the previous space). Otherwise it will act identically to <kbd>Alt</kbd>-<kbd>BkSpace</kbd>, operating on words delimited by any `non-word' character -- as it does by default in Zsh, for instance. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.149.249.140
|