ّI'm Vim user like many people and I'm sharing my vimrc here. It's not something special or complicated(I am not a fan of complexity), but it might be useful to someone.
I am ArchLinux user and I usually write code in Python language.
sudo pacman -S vim python-lsp-server python-pycodestyle ctags vim-jedi autopep8
Install python-pyflakes
if you want pep8, ...
I use VimPlug. Install it with this command.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Clone this repository and copy my vimrc file to ~/.vimrc. close the file.
vim ~/.vimrc
Run this vim command. You know how to do it, don't you? Press ESC
key. Press :
key. Write this command in vim and press Enter
.
:PlugInstall
Once the plugins are installed, exit by typing the following command.
:q
It's my pycodstyle file config. Use it if it helps you.
[pycodestyle]
count = False
ignore = E722
max-line-length = 160
statistics = True
Copy it to:
~/.config/pycodestyle
By default, the settings are for a dark color scheme, but if you prefer a light color scheme, uncomment these lines:
set background=light
colorscheme PaperColor
let g:airline_theme='papercolor'
And comment or delete these lines:
"colorscheme synthwave84
set termguicolors
set background=dark
" air-line
let g:airline_theme='synthwave84'
let g:airline_powerline_fonts = 1
Press F9 for opening NerdTree.
Press t or T in NerdTree for opening files in new tab.
Press F3 and F4 for switching between tabs.
Press F2 for paste mode.
Press F8 for check spelling.
Press F6 and F7 for commenting and uncommenting code lines.
Press F10 for showing popdef window.
Checkout NerdTree and Vim-Lsp for more information.
Vim
VimPlug
vim-synthwave84
tagbar
vim-airline
vim-airline-themes
NerdTree
vim_current_word
vim-lsp
vim-lsp-settings
asyncomplete.vim
asyncomplete-lsp.vim
vim-devicons
vim-nerdtree-syntax-highlight
indentLine
popdef
papercolor-theme