From 1b4a4ecc730a31976a0403d8e48adf5c1fd12ae4 Mon Sep 17 00:00:00 2001 From: Mihai Cristian Tanase Date: Sun, 18 Feb 2018 07:59:19 +0200 Subject: [PATCH 1/3] Add history prefix completion mappings with and --- plugin/husk.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/husk.vim b/plugin/husk.vim index 864045b..93d9b74 100644 --- a/plugin/husk.vim +++ b/plugin/husk.vim @@ -23,6 +23,8 @@ function! s:enable_husk() cnoremap getcmdpos()>strlen(getcmdline())?&cedit:"\Right>" cnoremap getcmdpos()>strlen(getcmdline())?"\C-d>":"\Del>" cnoremap + cnoremap + cnoremap if get(g:, 'husk_ctrl_k', 1) cnoremap husk#clear_line_after_cursor() From 5db9e31f102205b0e500772015bdb63266afdcb5 Mon Sep 17 00:00:00 2001 From: Mihai Cristian Tanase Date: Mon, 19 Feb 2018 19:48:40 +0200 Subject: [PATCH 2/3] Update readme to include the 2 new shortcuts --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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) From 682e2d5c1d9b213d58413042e5cdca481b9138b2 Mon Sep 17 00:00:00 2001 From: Mihai Cristian Tanase Date: Wed, 21 Apr 2021 16:10:48 +0300 Subject: [PATCH 3/3] Bring back command with --- plugin/husk.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/husk.vim b/plugin/husk.vim index 93d9b74..f395b34 100644 --- a/plugin/husk.vim +++ b/plugin/husk.vim @@ -23,6 +23,7 @@ function! s:enable_husk() cnoremap getcmdpos()>strlen(getcmdline())?&cedit:"\Right>" cnoremap getcmdpos()>strlen(getcmdline())?"\C-d>":"\Del>" cnoremap + cnoremap cnoremap cnoremap