Skip to content

Commit 2e0a823

Browse files
committed
add back
1 parent e49224b commit 2e0a823

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

.vimrc

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
" *************************
2+
" Mike's VIM settings
3+
4+
" *************************
5+
6+
set fileencodings=utf-8,gb2312,gbk,gb18030
7+
8+
" avoid compatible problems with VI
9+
set nocompatible
10+
set modifiable
11+
set write
12+
syntax enable
13+
syntax on
14+
"setlocal spell spelllang=en_us
15+
"set spell
16+
"set spelllang=en_us
17+
18+
colorscheme molokai
19+
set guifont=YaHei_Consolas_Hybrid:h14 "Monaco:h13 "YaHei\ Consolas\ Hybrid\ 11\ TextMate:h12
20+
set number
21+
set numberwidth=5
22+
set lines=45
23+
set columns=100
24+
25+
" wm->slipt windows to display file explorer and taglist
26+
let g:winManagerWindowLayout='FileExplorer|TagList'
27+
let NERDTreeIgnore=['\.pyc$']
28+
29+
" taglist settings
30+
let Tlist_Show_One_File=1
31+
let Tlist_Exit_OnlyWindow=1
32+
33+
" tab width
34+
set sw=4
35+
set ts=4
36+
set et
37+
38+
set autoindent
39+
set smartindent
40+
41+
filetype on
42+
43+
" match pair of punc characters
44+
set showmatch
45+
46+
" no toolbar
47+
set guioptions-=T
48+
set ruler
49+
50+
set backupdir=~/tmp
51+
52+
" language specific settings
53+
au BufRead,BufNewFile *.rb,*.rhtml set shiftwidth=2
54+
au BufRead,BufNewFile *.rb,*.rhtml set softtabstop=2
55+
56+
" load projects' tags
57+
"set tags=/home/mike/dev/workspace/tags
58+
"set tags=/home/mike/dev/source/django-truck/django/tags
59+
60+
let g:miniBufExplMapCTabSwitchBufs = 1
61+
let g:miniBufExplMapWindowNavVim = 1
62+
let g:miniBufExplMapWindowNavArrows = 1
63+
64+
65+
66+
let g:user_zen_expandabbr_key = '<c-e>'
67+
"let g:use_zen_complete_tag = 1
68+
69+
70+
"snippets
71+
:filetype plugin on
72+
73+
"set completeopt=longest,menu
74+
75+
set laststatus=2
76+
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v]\ [%p%%]\ [LEN=%L]
77+
set cursorline
78+
"set cc=74
79+
hi colorcolumn guibg=DarkCyan
80+
81+
"set ai
82+
set si
83+
"set ci
84+
85+
"mapping config
86+
source ~/.vim/.vimrc_maps
87+
source ~/.vim/profile/.vim_twit

0 commit comments

Comments
 (0)