Skip to content

Instantly share code, notes, and snippets.

@pvarsh
Created February 6, 2019 19:19
Show Gist options
  • Save pvarsh/7c53669afd11d47f91d8f05dec76a837 to your computer and use it in GitHub Desktop.
Save pvarsh/7c53669afd11d47f91d8f05dec76a837 to your computer and use it in GitHub Desktop.
.vimrc
"""" Basic Behavior
set number " show line numbers
set relativenumber " show relative line numbers
set wrap " wrap lines
set encoding=utf-8 " set encoding to UTF-8 (default was "latin1")
set lazyredraw " redraw screen only when we need to
set showmatch " highlight matching parentheses / brackets [{()}]
set laststatus=2 " always show statusline (even with only single window)
set ruler " show line and column number of the cursor on right side of statusline
set visualbell " blink cursor on error, instead of beeping
"""" Vim Appearance
colorscheme murphy
" use filetype-based syntax highlighting, ftplugins, and indentation
syntax enable
filetype plugin indent on
"""" Tab settings
set tabstop=4 " number of spaces per <TAB>
set expandtab " convert <TAB> key-presses to spaces
set shiftwidth=4 " set a <TAB> key-press equal to 4 spaces
set autoindent " copy indent from current line when starting a new line
set smartindent " even better autoindent (e.g. add indent after '{')
"""" Search settings
set incsearch " incremental search (search as characters are entered)
set hlsearch " highlight matches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment