Skip to content

Instantly share code, notes, and snippets.

@the-glima
Created July 14, 2020 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-glima/aff9f7472299599a98bffabea5f1b1f5 to your computer and use it in GitHub Desktop.
Save the-glima/aff9f7472299599a98bffabea5f1b1f5 to your computer and use it in GitHub Desktop.
Vimrc
syntax on
set nocompatible " be iMproved, required
filetype off " required
set termguicolors
if has("mouse")
set mouse=a
endif
set autoindent
set showmatch
" Default to soft tabs, 2 spaces
set expandtab
set sw=2
set sts=2
" Show line numbers
set number
" Show column numbers
set ruler
" Case-insensitive search
set ignorecase
" Highlight search results
set hlsearch
" Indentation
filetype plugin indent on
" Fix Delete (backspace) on Mac OS X
set backspace=2
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'preservim/nerdtree'
Plugin 'sainnhe/sonokai'
call vundle#end() " required
filetype plugin indent on " required
colorscheme sonokai
"Open NERDTree if no files specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" autocmd vimenter * NERDTree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment