set guifont=Andale_Mono:h12,Menlo:h12,Consolas:h12,Courier_New:h12

set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
setglobal fileencoding=utf-8
" Windows has traditionally used cp1252, so it's probably wise to
" fallback into cp1252 instead of eg. iso-8859-15.
" Newer Windows files might contain utf-8 or utf-16 LE so we might
" want to try them first.
set fileencodings=ucs-bom,utf-8,utf-16le,cp1252,iso-8859-15
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
language message zh_CN.utf-8

"Normal 模式下<A-j> <A-k>移动当前行到下1行或上1行
"Visual模式下<A-j> <A-k>移动当前选中的多行到下1行或上1行
nnoremap <A-k>  mz:m-2<cr>`z==
nnoremap <A-j>  mz:m+<cr>`z==
xnoremap <A-k>  :m'<-2<cr>gv=gv
xnoremap <A-j>  :m'>+<cr>gv=gv

set wrap
:color evening
nnoremap <ESC> :let @/ = ""<ESC>

:nmap <c-s> :w<CR>
:imap <c-s> <ESC>:w<CR>

set fencs=utf-8,chinese,latin1 fenc=utf-8 enc=utf-8

map ,dt a<C-R>=strftime('%Y-%m-%d %H:%M:%S')<CR>

"Markdown Review
autocmd BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} map <Leader>p :!start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "%:p"<CR>


Bundle 'IndexedSearch'
Bundle 'vitalk/vim-simple-todo'
Bundle 'Mark'
Bundle 'VOoM'
Bundle 'vim-airline/vim-airline-themes'