sudo apt-get install python-dev python-pip python3-dev python3-pip curl vim exuberant-ctags git ack-grep
sudo pip3 install neovim pep8 flake8 pyflakes pylint isort
Download the init.vim file and place it under ~/.config/nvim/.
init.vim
wget https://raw.githubusercontent.com/fisadev/fisa-nvim-config/master/init.vim
Open NeoVim (nvim command) and it will continue the installation by itself. Wait for it to finish... and done! You now have your new shiny powerful NeoVim
Optional: If you want fancy symbols and breadcrumbs on your status line and fancy icons for your files explorer, check this small tutorial.
Docker: Federico Gonzalez (FedeG) made a docker image which runs vim with this config inside, you can find it here or in docker hub.
Airline allows you to use fancy symbols on the status line for breadcrumbs and indicators (examplej a padlock when editing read-only files).
And vim-devicons also has fancy symbols for the files in NERDTree (the file explorer), like a python logo for python files, etc.
Using them requires having a patched font in your terminal.
It may sound like black magic, but it's just downloading, installing and using a font from this website:
Nerd Fonts NerdFonts
git clone https://github.com/ryanoasis/nerd-fonts.git
I recommend just manually downloading the one you like the most from this list.
Configure
After installing the font, go to the settings of your terminal app and select the patched font. Finally, open your init.vim and uncomment:
the line declaring the vim-devicons plugin (search for "Nice icons")
the lines at the end of the file, after the comment that explains that those are the lines for the fancy symbols.
That's it! Restart your vim and enjoy the beauty of a modern terminal
export EDITOR="nvim"
Vim Plugged:
PlugInstall
PlugUpdate
Summary:
A buffer is the in-memory text of a file.
A window is a viewport on a buffer.
A tab page is a collection of windows.
:bnext
:bn[ext] - go to the next buffer
:bp[revious] - go to the previous buffer
:bd[elete] - delete a buffer (close a file)
:ls or :buffers - list all open buffers
:sp[lit] file - open a file in a new buffer and split window
:vs[plit] file - open a file in a new buffer and vertically split window
:tab ba[ll] - edit all buffers as tabs
:bd
or
bw
:2bw
or
:1,3bw
Ctrl + ww - switch windows
Ctrl + ws - split window
Ctrl + wv - split window vertically
Ctrl + w +/= - make all windows equal height & width
Ctrl + wq - quit a window
Change Tabs
gt - Next tab:
gT - Prior tab:
<i>nnni>gt - Numbered tab:
rename file in nerdtree
Use Move, (m)ove the current node in the m menu to rename.
The default key is a backslash . To change the leader key to the comma , add let mapleader = “,” to your vimrc (to use the space key add let mapleader = “ “). Reload vim and test your new key.
let mapleader = " " " map leader to Space
let mapleader = "," " map leader to comma
:terminal or :ter -- Open Horizontal Split terminal
:vert term or :vertical terminal -- Open vertical terminal
NERDTree
https://www.cyberciti.biz/faq/how-to-reload-vimrc-file-without-restarting-vim-on-linux-unix/
https://tlvince.com/vim-respect-xdg
https://stackoverflow.com/questions/4481256/how-to-source-files-in-vimrc
https://vim.works/2019/03/16/wrapping-text-in-vim/
https://stackoverflow.com/questions/882658/how-to-get-environment-variables-from-within-gvim