brew install vimthen update .zshrc to point to new vim withalias vim="/usr/local/bin/vim"
- Install
vim-pathogenhttps://github.com/tpope/vim-pathogen. This is for vim plugins. - Install
NERDTreefor folder list view https://github.com/scrooloose/nerdtree. (clone inside ~/.vim./bundle) - Install
fzfto replace search. https://github.com/junegunn/fzf. Dobrew install fzfand install this globally on the machine. This a replacement file searcher for the OS. - Install
silver searcherhttps://github.com/ggreer/the_silver_searcher.brew install the_silver_searcher - Install
fzf-vimto add fzf functionality inside vim. https://github.com/junegunn/fzf.vim (clone inside ~/.vim./bundle) - Install
delimitMatehttps://github.com/Raimondi/delimitMate to automatically bracket match (clone inside ~/.vim/bundle) - Install
https://github.com/pangloss/vim-javascript(clone inside ~/.vim/bundle) - Install
https://github.com/leafgarland/typescript-vim(clone inside ~/.vim/bundle) - Install
https://github.com/w0rp/alefor linting (clone inside ~/.vim/bundle) - Install
https://github.com/neoclide/coc.nvim/for code autocomplete intellisense like you get in vscode. (clone inside ~/.vim/bundle, then you will need toyarn installnode dependencies from that project since coc.vim is written in typescript and runs a node server). From within the vim editor you will need to run vim command:CocInstall coc-json coc-tsserverto install completion extensions for typescript & json. - For syntax higlighting:
https://github.com/vim-syntastic/syntastic.git(clone inside ~/.vim/bundle) - For commenting out blocks of code:
https://github.com/tomtom/tcomment_vim.git. To use, enter visual block mode and highlight the lines you want to comment out then typegcc. Whygcc? I don't know.
Download a new Vim color scheme – “distinguished“ https://github.com/Lokaltog/vim-distinguished. Extracts and move the downloaded *.vim file to this folder ~/.vim/colors/.
Or gruvbox is another color scheme https://github.com/morhetz/gruvbox
mv ~/Downloads/vim-distinguished-develop/colors/*.vim ~/.vim/colors/
Copy
P.S Create the folders if not exists.
Edit the vim ~/.vimrc file, enable the syntax highlight and set the colorscheme to “distinguished”. ~/.vimrc
syntax on
colorscheme distinguished
- Better indent support: https://github.com/vim-scripts/indentpython
This is nice plugin for zsh that let's autocomplete from history: https://github.com/zsh-users/zsh-autosuggestions