This is my minimal .vimrc file, I am using for day-to-day Python3 and Go programming. You can follow this at your own risk.
You're gonna do Python3 and Go programming on Vim. Let me suppose that you have installed them already.
You should always use the latest Vim (with vim-gnome, build-essential, cmake, git, python3-dev, python3-pip). For Ubuntu, open terminal and play these commands to install them.
sudo add-apt-repository ppa:jonathonf/vim -y
sudo apt update
sudo apt install build-essential cmake git python3-dev python3-pip vim vim-gnome -y
Play these commands on Terminal to set up Vim.
sudo pip3 install jedi
sudo pip3 install flake8
sudo pip3 install pylint
curl "https://raw.githubusercontent.com/maateen/vim-for-python-and-go/master/.vimrc" > ~/.vimrc
vim +PlugInstall +qall
Let's compile the YouCompleteMe for autocompletion.
cd ~/.vim/plugged/YouCompleteMe/
python3 install.py --gocode-completer
Key | Description |
---|---|
F5 | Run Python3 Scripts |
/r | go run |
/b | go build |
/t | go test |
/c | go coverage |
I can't remmebr. :(