On 18 November 2015, Artem Bursuk <a.bu...@gmail.com
> hey, what's up guys!
> I'm trying to figure out, is it possible to go back to the main file.
> The situation is following: I messed up in my code, It's generating
> me an errors list. few of them pointing to the c++ standard library's
Side note: you might find this useful:
> When i write :lnext it automatically opens a file from std where it
> thinks error is. Ok, how can I go back to my file?
:bp , or [b (the latter if you have followed the advice in the
FAQ to install Tim Pope's unimpaired). Both will take you to the
previous buffer, rather than to the original file (but both will get
you there eventually, if you keep hitting them). There is no command
to go straight to the original file, and you have Vim itself to thank
for that, since navigation through quickfix lists is Vim's doing, not
> I know two options: e ./.. or t 1. Both do not satisfy myself.
> Because when I go back to my file, the current error is the first one.
Only if you have issues in the current file. It's entirely
conceivable that all issues are in included files.
> It means I cannot move below error which directs me into std lib's
> file. How can I handle this?
The same way you handle most Vim problems: swear, ask yourself
why you keep using this editor, and find a creative workaround. The
Official Workarounds[TM] for this are :bp, and [b.