Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yorkxin
Last active December 22, 2015 03:18
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 yorkxin/6408923 to your computer and use it in GitHub Desktop.
Save yorkxin/6408923 to your computer and use it in GitHub Desktop.
my .vimrc
set cindent
set hls " highlight search rersult
set nocompatible
set sw=2
set ts=8
set cursorline
syntax on
if has('gui_running')
set background=light
else
set background=dark
end
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,big5,gbk,sjis,iso8859-1
autocmd BufNewFile,BufRead *.json set filetype=javascript
autocmd BufNewFile,BufRead *.scss set filetype=scss
autocmd BufNewFile,BufRead *.ru set filetype=ruby
autocmd BufNewFile,BufRead Gemfile set filetype=ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment