Skip to content

Instantly share code, notes, and snippets.

@happysundar
Created June 19, 2014 04:36
Show Gist options
  • Select an option

  • Save happysundar/5b11e741527c331b360e to your computer and use it in GitHub Desktop.

Select an option

Save happysundar/5b11e741527c331b360e to your computer and use it in GitHub Desktop.
vimrc
set nocompatible " must be the first line
filetype on
filetype indent on
filetype plugin on
set laststatus=2
syntax on
set cursorline
set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment