From 96d7056b5cac4c510e44783c2af7b1f50fd3ea00 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 7 Dec 2023 22:23:17 +0100 Subject: prr-ui: Switch to insert mode immediately on `PrrComment` We already said we wanted to write a comment with the command, so we should start in insert mode immediately rather than it being an additional action. --- bundle/prr-ui/autoload/prr_ui.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bundle') diff --git a/bundle/prr-ui/autoload/prr_ui.vim b/bundle/prr-ui/autoload/prr_ui.vim index 341df3c..f3a6ea7 100644 --- a/bundle/prr-ui/autoload/prr_ui.vim +++ b/bundle/prr-ui/autoload/prr_ui.vim @@ -874,4 +874,6 @@ function! prr_ui#Comment() " Put the cursor in place to add a comment on the line. call append('.', ['', '', '']) call cursor(line('.') + 2, 0) + + startinsert endfunction -- cgit v1.2.3