Permalink
Browse files

few changes.

1. add default encoding support.
2. fix the color issue for common use.
  • Loading branch information...
1 parent 6ee9218 commit 1950280e1cf56c9e5dc323fafb677d9756ad2422 @lxyu committed Jan 9, 2012
Showing with 13 additions and 15 deletions.
  1. +13 −15 vimrc
View
28 vimrc
@@ -13,7 +13,7 @@ runtime! autoload/pathogen.vim
call pathogen#infect()
" General
-set fencs=utf-8,gb2312,gbk,big5 " Sets the default encoding
+set fencs=utf-8,gb2312,gbk,big5,ucs-2 " Sets the default encoding
set background=dark " Assume a dark background
filetype plugin indent on " Automatically detect file types.
syntax on " syntax highlighting
@@ -48,15 +48,15 @@ set cc=81
" => Vim UI
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has('gui_running')
- color neverland2
+ color wombat
set gfn=Monaco:h12 " set gui font
set guioptions-=T " remove the toolbar
set lines=40 " 40 lines of text instead of 24,
else
color solarized " load a colorscheme
set term=builtin_xterm " Make terminal stuff works
let g:solarized_termtrans=1
- "let g:solarized_termcolors=256
+ let g:solarized_termcolors=256
set t_Co=256
endif
@@ -380,18 +380,16 @@ cnoremap <C-N> <Down>
let NERDTreeKeepTreeInNewTab=1
" Tabularize
- if exists(":Tabularize")
- nmap <Leader>a= :Tabularize /=<CR>
- vmap <Leader>a= :Tabularize /=<CR>
- nmap <Leader>a: :Tabularize /:<CR>
- vmap <Leader>a: :Tabularize /:<CR>
- nmap <Leader>a:: :Tabularize /:\zs<CR>
- vmap <Leader>a:: :Tabularize /:\zs<CR>
- nmap <Leader>a, :Tabularize /,<CR>
- vmap <Leader>a, :Tabularize /,<CR>
- nmap <Leader>a<Bar> :Tabularize /<Bar><CR>
- vmap <Leader>a<Bar> :Tabularize /<Bar><CR>
- endif
+ nmap <Leader>a= :Tabularize /=<CR>
+ vmap <Leader>a= :Tabularize /=<CR>
+ nmap <Leader>a: :Tabularize /:<CR>
+ vmap <Leader>a: :Tabularize /:<CR>
+ nmap <Leader>a:: :Tabularize /:\zs<CR>
+ vmap <Leader>a:: :Tabularize /:\zs<CR>
+ nmap <Leader>a, :Tabularize /,<CR>
+ vmap <Leader>a, :Tabularize /,<CR>
+ nmap <Leader>a<Bar> :Tabularize /<Bar><CR>
+ vmap <Leader>a<Bar> :Tabularize /<Bar><CR>
" Pyflakes
let g:pyflakes_use_quickfix = 0

0 comments on commit 1950280

Please sign in to comment.