This article will show you how to empower your vi with NeoVim.


Neovim is a refactor, and sometimes redactor, in the tradition of Vim (which itself derives from Stevie). It is not a rewrite but a continuation and extension of Vim. Many clones and derivatives exist, some very clever—but none are Vim. Neovim is built for users who want the good parts of Vim, and more.

Install Neovim

Please follow the installation instructions here

Vim Plugin

Please follow the installation instructions from Vim-Plug’s README


  • Create a file init.vim
:set number
:set relativenumber
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set softtabstop=4
:set mouse=a

call plug#begin()

Plug '' " Surrounding ysw)
Plug '' " NerdTree
Plug '' " For Commenting gcc & gc
Plug '' " Status bar
Plug '' " PSQL Pluging needs :SQLSetType pgsql.vim
Plug '' " CSS Color Preview
Plug '' " Retro Scheme
Plug ''  " Auto Completion
Plug '' " Developer Icons
Plug '' " Vim Terminal
Plug '' " Tagbar for code navigation
Plug '' " CTRL + N for multiple cursors
Plug '' " A highly customizable theme
Plug 'ctrlpvim/ctrlp.vim'
Plug 'kassio/neoterm'

set encoding=UTF-8

call plug#end()

nnoremap <C-f> :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-l> :call CocActionAsync('jumpDefinition')<CR>

nmap <F8> :TagbarToggle<CR>

:set completeopt-=preview " For No Previews

:colorscheme nightfox

let g:NERDTreeDirArrowExpandable="+"
let g:NERDTreeDirArrowCollapsible="~"

" --- Just Some Notes ---
" :PlugClean :PlugInstall :UpdateRemotePlugins
" :CocInstall coc-python
" :CocInstall coc-clangd
" :CocInstall coc-snippets
" :CocCommand snippets.edit... FOR EACH FILE TYPE

" air-line
let g:airline_powerline_fonts = 1

if !exists('g:airline_symbols')
    let g:airline_symbols = {}

" airline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''

inoremap <expr> <Tab> pumvisible() ? coc#_select_confirm() : "<Tab>"

  • Install plugins

    • Open nvim
    • Enter command mode and enter PlugInstall

Trouble shooting


  • Mac

    • Install Nerd fonts
    • Follow the instruction to install Powerline Nerd Font
    • Download other fonts, e.g. Caskaydia Cove Nerd Font

      cd ~/Library/Fonts
      open . 
      # Copy font files to fonts folder
      # Caskaydia Cove Nerd Font Complete Regular.otf
      # Caskaydia Cove Nerd Font Complete Mono Regular.otf


  • Windows pwsh
cd <coc.nvim_folder>
sudo nvm use 14.19.3
npm install -g yarn 
yarn install

  • mac
cd ~/.local/share/nvim/plugged/coc.nvim
yarn install