Last active
December 22, 2015 03:18
-
-
Save yorkxin/6408923 to your computer and use it in GitHub Desktop.
my .vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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