Skip to content

Instantly share code, notes, and snippets.

@san9dev
Last active July 5, 2020 19:50
Show Gist options
  • Save san9dev/9a91f4fbab82d42d8114401ed7a81cef to your computer and use it in GitHub Desktop.
Save san9dev/9a91f4fbab82d42d8114401ed7a81cef to your computer and use it in GitHub Desktop.
customizing vim
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'morhetz/gruvbox'
call plug#end()
set number
colorscheme gruvbox
set background=dark
set expandtab
set tabstop=2
syntax on
set hlsearch
set incsearch

installation plagin manager for vim

execute comand in terminal

  curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Then put .vimrc file in home directory

  cd $HOME
  vim .vimrc

copy/paste and execute into opened .vimrc file

  :source .vimrc
  :PlugInstall
  :q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment