aboutsummaryrefslogtreecommitdiffstats
path: root/bundle
diff options
context:
space:
mode:
authorTeddy Wing2023-11-29 00:00:08 +0100
committerTeddy Wing2023-11-30 00:05:23 +0100
commit2531bcbffc998d95de95e6ddc9f725c8714dd19b (patch)
treed7f95cb0f9aa56f86722c4a68076b8b69680b9e0 /bundle
parentea426334f9fa8c6dfaa2efeed00f6e25aec4d908 (diff)
downloaddotvim-2531bcbffc998d95de95e6ddc9f725c8714dd19b.tar.bz2
prr-ui: Move to top of file on `PrrApprove` and `PrrReject`
This puts the cursor in the correct position to quickly add a top-level review comment.
Diffstat (limited to 'bundle')
-rw-r--r--bundle/prr-ui/ftplugin/prr/prr_ui.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle/prr-ui/ftplugin/prr/prr_ui.vim b/bundle/prr-ui/ftplugin/prr/prr_ui.vim
index c1dc9d7..06bef42 100644
--- a/bundle/prr-ui/ftplugin/prr/prr_ui.vim
+++ b/bundle/prr-ui/ftplugin/prr/prr_ui.vim
@@ -1,8 +1,8 @@
let b:undo_ftplugin = ''
" TODO: Pick an emoji at random from a pre-defined list.
-command! -buffer PrrApprove normal! ggOLooks good <CR><CR>@prr approve<CR><Esc>
-command! -buffer PrrReject normal! ggO<CR><CR>@prr reject<CR><Esc>
+command! -buffer PrrApprove normal! ggOLooks good <CR><CR>@prr approve<CR><Esc>gg
+command! -buffer PrrReject normal! ggO<CR><CR>@prr reject<CR><Esc>gg
let b:undo_ftplugin .= '| delcommand -buffer PrrApprove'
let b:undo_ftplugin .= '| delcommand -buffer PrrReject'