📜 ⬆️ ⬇️

Fix bug fix day

FIXME, TODO, XXX is the standard way to specify in the comments: “Hey! There will be time - fix this dirty hack! ”. For example, the beloved (and not beloved) by many Eclipse has a wonderful window where all the TODOs for a project are displayed.
What prevents us from doing this in vim? What is needed for this? grep and quick fix window.
Running the following command in vim : grep or : vimgrep , the match list will be available in the quick fix window, available by : copen or : cw
I hung this miracle on hotkey:
  map <F6>: vimgrep / fixme \\ | todo / j *. [c, cpp, h, hpp, py] <CR>: cw <CR> 

Change the extensions to the ones you need, F6 and finally start fixing!

')

Source: https://habr.com/ru/post/40425/


All Articles