This is a .vimrc config file for developing in C++, python3, bash, golang, terraform and nginx config file and html support.
Prerequisites:
- install valgrind;
- install clang-tools;
- install clangd;
- install cppcheck;
- install clang-format;
- install python3-pip;
- pip3 install bandit;
- pip3 install yapf (or istall yapf3 from distributive repo);
- install pylint;
- install golang (from official site or distributive repo);
- install golint;
- install shellcheck;
- install terraform (form official site or distributive repo);
- install vim-nox;
- install Vundle.vim (https://github.com/VundleVim/Vundle.vim);
- open .vimrc and run :PluginInstall;
- install Paper color vim plugin (https://github.com/NLKNguyen/papercolor-theme): just copy PaperColor.vim to ~/.vim/colors/
After all vim plugins installed one should cd YouCompleteMe directory and run:
- ./install.py --clangd-completer;
- set background value to dark/light in line 42 in .vimrc file ("dark" as default).
After that value USER in 85 line in .vimrc file should be substituted for actual one.
Hotkeys one gets:
F2 - save file;
F3 - wildmenu for python3 (after hit): run, code check (bandit), delete current file, format code;
F4 - wildmenu for C++ (after hit): run, run with multi-threads option, memory leakage check (valgrind), delete current file, format code;
F5 - wildmenu for bash (after hit): run, delete current file;
F6 - wildmenu for golang (after hit): run, buld, delete current file, format code;
F7 - run vertical terminal;
F8 - run below horizontal terminal;
F9 - files bar to work with (nerd tree);
F10 - exit vim;
F4 - hot key for emmet autocompletion (line 98 in .vimrc file): F4 + Comma gives html code autocompletion.
Sometimes clangd autocompletion does not work correctly for some reason. If this happens one should:
- ./install.py --clang-completer;
- comment lines 109-112 in .vimrc file (as unneeded).