Created
July 14, 2020 23:35
-
-
Save the-glima/aff9f7472299599a98bffabea5f1b1f5 to your computer and use it in GitHub Desktop.
Vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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