Is there any way when using the YouCompleteMe vim extension to jump to the next point in the file with an error? I find myself just scrolling through the page until I find the error highlight, but there must be a better way to do it.
1 Answer
If you let g:ycm_always_populate_location_list = 1, YouCompleteMe will populate vims location list with new diagnostic data. You can jump through the entries in that list with :lnext and :lprevious. You can read more about the location list in the documentation of the quickfix feature (:h location-list or use the online version).
- 3(also, for others,
:lnand:lpfor short!) :DNHDaly– NHDaly2016-02-04 01:06:06 +00:00Commented Feb 4, 2016 at 1:06 - 4
:lnis not mapped afaik, it should be:lne. vimdoc.sourceforge.net/htmldoc/quickfix.htmlEmile Vrijdags– Emile Vrijdags2017-01-11 08:58:50 +00:00Commented Jan 11, 2017 at 8:58 - @badbishop Please open a new question in U&L or vi.stackexchange.com with the exact steps to reproduce your problem.Wieland– Wieland2020-04-20 09:53:33 +00:00Commented Apr 20, 2020 at 9:53
- Sorry, my bad. The issue was actually that :lnext wouldn't move cursor if there's a single error, but with :ll it works.badbishop– badbishop2020-04-20 10:19:35 +00:00Commented Apr 20, 2020 at 10:19