Vim Configuration using vim-plug, dracula, nercommenter and others.
-
Install: https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
Create file: .vimrc
vim .vimrc
-
Copy content below in .vimrc
-
Run vim command:
:PlugInstall
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'chiel92/vim-autoformat'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'itchyny/lightline.vim'
Plug 'whatyouhide/vim-gotham'
call plug#end()
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
noremap <F3> :Autoformat<CR>
filetype plugin on
syntax on
color dracula
set number
map <C-o> :NERDTreeToggle<CR>
set laststatus=2
set noshowmode
- Nerd Commenter:
[\] + [c] +[space]
- Numbers in vim:
:set nu
,:set nonu
,:set number
,:set nonumber
Here an easy guide
TL;DR
run this:
Linux:
sudo apt install zsh
Mac:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"