Skip to content

Commit 0136256

Browse files
committed
add,vimrc
0 parents  commit 0136256

File tree

11 files changed

+81
-0
lines changed

11 files changed

+81
-0
lines changed

.gitmodules

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[submodule "bundle/vim-pathogen"]
2+
path = bundle/vim-pathogen
3+
url = git://github.com/tpope/vim-pathogen.git
4+
[submodule "bundle/vim-powerline"]
5+
path = bundle/vim-powerline
6+
url = git://github.com/Lokaltog/vim-powerline.git
7+
[submodule "bundle/vim-ctrlp"]
8+
path = bundle/vim-ctrlp
9+
url = git://github.com/kien/ctrlp.vim.git
10+
[submodule "bundle/vim-snipmate"]
11+
path = bundle/vim-snipmate
12+
url = git://github.com/garbas/vim-snipmate.git
13+
[submodule "bundle/vim-snippets"]
14+
path = bundle/vim-snippets
15+
url = git://github.com/honza/vim-snippets.git
16+
[submodule "bundle/vim-addon-mw-utils"]
17+
path = bundle/vim-addon-mw-utils
18+
url = git://github.com/MarcWeber/vim-addon-mw-utils.git
19+
[submodule "bundle/tlib_vim"]
20+
path = bundle/tlib_vim
21+
url = git://github.com/tomtom/tlib_vim.git
22+
[submodule "bundle/jedi-vim"]
23+
path = bundle/jedi-vim
24+
url = git://github.com/davidhalter/jedi-vim.git
25+
[submodule "bundle/vim-markdown"]
26+
path = bundle/vim-markdown
27+
url = git://github.com/plasticboy/vim-markdown.git

.vimrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
set nocompatible
2+
hi Normal ctermbg=NONE
3+
4+
set t_Co=256
5+
runtime bundle/vim-pathogen/autoload/pathogen.vim
6+
call pathogen#infect()
7+
8+
set go=
9+
"文本行号
10+
set nu
11+
"取消备份
12+
set nobackup
13+
"设置编码utf8
14+
set encoding=utf8
15+
set fileencoding=utf8
16+
set fileencodings=utf8,prc
17+
"colo evening "文本背景,黑色
18+
"colo ir_black
19+
set guifont=Bitstream_Vera_Sans_Mono:h10:cANSI
20+
"TAB转换成4个空格
21+
set expandtab
22+
set shiftwidth=4
23+
set softtabstop=4
24+
"Ctags的tags文件
25+
set autochdir
26+
"打开光标的行列位置显示功能
27+
set ruler
28+
"行高亮
29+
set cursorline
30+
"列高亮,与函数列表有冲突
31+
set cursorcolumn
32+
33+
noremap <C-W><C-U> :CtrlPMRU<CR>
34+
nnoremap <C-W>u :CtrlPMRU<CR>
35+
let g:ctrlp_open_multiple_files = 'v'
36+
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
37+
let g:ctrlp_custom_ignore = {
38+
\ 'dir': '\v[\/]\.(git)$',
39+
\ 'file': '\v\.(log|jpg|png|jpeg)$',
40+
\ }
41+
42+
"powerline
43+
set guifont=PowerlineSymbols\ for\ Powerline
44+
set laststatus=2 " Always show the statusline
45+
let g:Powerline_symbols = 'fancy'

bundle/jedi-vim

Submodule jedi-vim added at c32844d

bundle/tlib_vim

Submodule tlib_vim added at b82f880

bundle/vim-addon-mw-utils

Submodule vim-addon-mw-utils added at 0c5612f

bundle/vim-ctrlp

Submodule vim-ctrlp added at b5d3fe6

bundle/vim-markdown

Submodule vim-markdown added at dc61d19

bundle/vim-pathogen

Submodule vim-pathogen added at 91e6378

bundle/vim-powerline

Submodule vim-powerline added at 09c0cea

bundle/vim-snipmate

Submodule vim-snipmate added at f8aa804

0 commit comments

Comments
 (0)