aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-12-07 22:23:17 +0100
committerTeddy Wing2023-12-07 22:40:23 +0100
commit96d7056b5cac4c510e44783c2af7b1f50fd3ea00 (patch)
tree9b9cdc0551db690bf1f4dd0541d7e50c939a3628
parent086d3d3649a34db36180769efb210f6945770f83 (diff)
downloaddotvim-96d7056b5cac4c510e44783c2af7b1f50fd3ea00.tar.bz2
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.
-rw-r--r--bundle/prr-ui/autoload/prr_ui.vim2
1 files changed, 2 insertions, 0 deletions
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