Skip to content

Instantly share code, notes, and snippets.

@ambakshi
Last active January 6, 2018 11:27
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 ambakshi/9334557 to your computer and use it in GitHub Desktop.
Save ambakshi/9334557 to your computer and use it in GitHub Desktop.
Minimal/basic vimrc
"
" Original: https://gist.github.com/ambakshi/9334557/raw/vimrc.basic
" By Amit Bakshi
"
set nocompatible
filetype plugin indent on
set modeline
set incsearch hlsearch ignorecase smartcase
set expandtab smarttab shiftwidth=4 shiftround softtabstop=4 tabstop=4
set smartindent autoindent copyindent cindent
set backspace=eol,start,indent
set bs=indent,eol,start
set hlsearch showmatch ignorecase incsearch smartcase
set noerrorbells
set showcmd title cmdheight=2
if has('mouse')
set mouse=a
endif
if &term =~ "xterm" || &term =~ "screen"
" set t_RV=^[[c
set ttymouse=xterm2
set t_Co=256
endif
set lbr tw=140
syntax enable
colorscheme desert
set background=dark
let mapleader=","
let g:mapleader=","
" Remap the totally useless ; to :
nnoremap ; :
" Go up/down through wrapped lines
nnoremap j gj
nnoremap k gk
highlight DiffAdd term=reverse cterm=bold ctermbg=green ctermfg=white
highlight DiffChange term=reverse cterm=bold ctermbg=cyan ctermfg=black
highlight DiffText term=reverse cterm=bold ctermbg=gray ctermfg=black
highlight DiffDelete term=reverse cterm=bold ctermbg=red ctermfg=black
au FileType go set noet
au FileType make set noet
au FileType python set et sw=4 sts=4 ts=4 ai si
au FileType ruby set et sw=2 sts=2 ts=2 ai si
au FileType yaml set et sw=2 sts=2 ts=2 ai si
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment