diff --git a/README.md b/README.md index eb3ed3c..4d8a6b5 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ Works in NeoVim too. All mappings work **only** in vim command line mode. +- `C-p` find the previous history command with the same prefix +- `C-n` find the next history command with the same prefix - `C-a` go to the beginning of the line - `C-f` go one character right or fall back to [c_CTRL-F](http://vimdoc.sourceforge.net/htmldoc/cmdline.html#c_CTRL-F) diff --git a/plugin/husk.vim b/plugin/husk.vim index 864045b..f395b34 100644 --- a/plugin/husk.vim +++ b/plugin/husk.vim @@ -23,6 +23,9 @@ function! s:enable_husk() cnoremap getcmdpos()>strlen(getcmdline())?&cedit:"\Right>" cnoremap getcmdpos()>strlen(getcmdline())?"\C-d>":"\Del>" cnoremap + cnoremap + cnoremap + cnoremap if get(g:, 'husk_ctrl_k', 1) cnoremap husk#clear_line_after_cursor()