Vim / Nvim configuration.
Tested on the following Operating Systems:
- Windows 10/7
- OSX (Wherever Nvim works)
- Linux
- git
- RipGrep
- Fzf
- Python 3
- Treesitter
- Install Vim-Plug - https://github.com/junegunn/vim-plug
- Git clone aa-vim repo
git clone git@github.com:aalvarado/aa-vim.git- Create symlinks
(Linux || OSX)
ln -s aa-vim/.vimrc ~/.vimrc
(Windows)
mklink .vimrc aa-vim\.vimrc
- Install Plugins
Open vim and type:
:PlugInstallThis will download all and install the plugins specified in the .vimrc file.
Restart vim to load all the plugins
- Neovim leader is
, - Command mode is also
; - Mapped
jjtoescapein insert mode ,ffwill open the fzf files fuzzy search,fvthat is<leader>fvwill open up nvim-tree which is a file browser,xwrites and quits the file,wwrites the file- There's autowrite for markdown files
- There's autocomplete for braces. for example typing
(then<tab>autcomples and places cursor in the middle, same with single quotes, double quotes and angled. this{<tab>auto completes to this{|}but also works with{<space><tab>auto completes to{ | }which is very convenient. You jump with<c-l>or<c-j>between the end and the last cursor position - This is made for editing markdown files as simple as possible.
cdinto the cloned directory andgit pull- You might get errors if the vim plugin isn't installed, do
:PlugUpdatewithin the editor to update all the vim plugins :checkhealthwill give additional info if anything is missing