Good evening. Faced the problem of writing code on ubuntu. I wonder if there is an editor with the above requirements and a minimal interface and preferably for working from the command line. Before that, he worked with Windows, he used the studio. By the nature of the activity I had to switch to linux and g ++ compiler. I was looking for an editor, but found nothing good. On the Internet, they offer either a full-fledged development environment, or as an option vim. Now I work just through vim, but that is very annoying. Bad auto-tabs, which need to be connected every time you call the editor (you can save the settings somehow, but I haven’t figured out how), the incorrect highlighting doesn’t understand where you have anything, and the lack of auto-completion or at least some notation of grammatical errors . I missed a comma or a letter in a word, and you see it only when compiling. Advise how to get out of this situation, and what is the equivalent.

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants of D-side , aleksandr barakin , Grundy , Cerbo , insolor 23 Apr '16 at 19:05 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    I can suggest to try QtCreator. - αλεχολυτ
  • Vim is a very powerful editor, thanks to the plugins, you can customize everything. If there is interest, I can provide my vim editor settings - Yaroslav
  • 2
    the requirements of "intellisense for C ++" and "lightweight editor, not a complete development environment" contradict each other. For an acceptable level of hints, you need to at least know a set of paths for searching for header files and compiler options (from ++ 11 or not, etc.). Take QtCreator. - Chorkov
  • If it's not difficult, I would like to take a look at the vim settings. - V. Rotenberh

1 answer 1

Thanks to libclang , at the moment, in the famous deuce of editors vim and emacs you can get auto-completion, go to the definition of a symbol, simple refactorings, etc. etc. Those. quite at the level of modern IDE :

  1. For vim: https://github.com/Valloric/YouCompleteMe

  2. For emacs: https://github.com/Andersbakken/rtags

But IMHO, if there are problems in order to register the necessary commands in ~/.vimrc and you have to enter them every time you start, then you should look towards the IDE where everything is already configured and works, such as CLion .