public
Last active

  • Download Gist
.vimrc
VimL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
" 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'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.