Yegappan wrote:
> I came across the following threads that discuss about the need > for a command to jump to the next quickfix entry relative to the > current file: > > https://vi.stackexchange.com/questions/14356/go-to-quickfix-next-previous-cnext-cprevious-relative-to-current-file-position/14359#14359 > > https://www.reddit.com/r/vim/comments/bhpv0f/using_vimgrepquickfix_window_as_filter_from/ > > I think we can add :cfnext and :cfprev commands that jump to the > quickfix entry relative to the current file. We will also need corresponding > :lfnext and :lfprev commands for the location list. If the current file > doesn't have any associated quickfix entry, then these commands will > not move the cursor. > > An alternative approach is to add a :cfjump command that jumps to > the quickfix entry nearest to the current line in the current file. > > Any comments/suggestions on these new commands? Sounds useful. I sometimes grep to find matches, then move around. Currently I would search for the same pattern, having a command would be helpful. To be clear: the commands would jumpt to the next (or previous) quickfix entry relative to the cursor position. For the command names: how about :cabove and :cbelow ? I find "cfnext" cryptic, it's too much like ":cnext" and can be confused with "cnfile" -- A computer programmer is a device for turning requirements into undocumented features. It runs on cola, pizza and Dilbert cartoons. Bram Moolenaar /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.