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.
Asked
Active
Viewed 7,482 times
1 Answers
30
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).
Wieland
- 6,353
- 3
- 28
- 31
-
3(also, for others, `:ln` and `:lp` for short!) :D – NHDaly Feb 04 '16 at 01:06
-
4`:ln` is not mapped afaik, it should be `:lne`. http://vimdoc.sourceforge.net/htmldoc/quickfix.html – Emile Vrijdags Jan 11 '17 at 08:58
-
@badbishop Please open a new question in U&L or https://vi.stackexchange.com/ with the exact steps to reproduce your problem. – Wieland Apr 20 '20 at 09: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 Apr 20 '20 at 10:19