Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
" turn off word wrapping
set wrap!
set relativenumber
"Turn on smart indent
set smartindent
set tabstop=2 " set tab character to 4 characters
set expandtab " turn tabs into whitespace
set shiftwidth=2 " indent width for autoindent
filetype indent on " indent depends on filetype
filetype plugin on
" remove trailing whitespace from all files on save
autocmd BufWritePre * :%s/\s\+$//e
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2 autoindent expandtab
map <A-v> viw"+gPb
map <A-c> viw"+y
map <A-x> viw"+x
autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e
let g:jslint_command_options='--conf=/home/phred/.jslconf --nosummary --nofilelisting --nologo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.