vim配置文件

Posted on 2019-04-22 13:46  helloWorld017  阅读(75)  评论(0)    收藏  举报
set sw=4
set ts=4
set et
set smarttab
set smartindent
set lbr
set fo+=mB
set sm
set selection=inclusive
set wildmenu
set mousemodel=popup

au FileType php setlocal dict+=~/.vim/dict/php_funclist.dict
au FileType css setlocal dict+=~/.vim/dict/css.dict
au FileType c setlocal dict+=~/.vim/dict/c.dict
au FileType cpp setlocal dict+=~/.vim/dict/cpp.dict
au FileType scale setlocal dict+=~/.vim/dict/scale.dict
au FileType javascript setlocal dict+=~/.vim/dict/javascript.dict
au FileType html setlocal dict+=~/.vim/dict/javascript.dict
au FileType html setlocal dict+=~/.vim/dict/css.dict

"
"syntastic鐩稿叧
execute pathogen#infect()
let g:syntastic_python_checkers=['pylint']
let g:syntastic_php_checkers=['php', 'phpcs', 'phpmd']
"golang
"Processing... % (ctrl+c to stop)
let g:fencview_autodetect=0
set rtp+=$GOROOT/misc/vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 鏄剧ず鐩稿叧  
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set cul "楂樹寒鍏夋爣鎵€鍦ㄨ
set cuc
set shortmess=atI   " 鍚姩鐨勬椂鍊欎笉鏄剧ず閭d釜鎻村姪涔屽共杈惧効绔ョ殑鎻愮ず  
set go=             " 涓嶈鍥惧舰鎸夐挳  
"color desert     " 璁剧疆鑳屾櫙涓婚  
color ron     " 璁剧疆鑳屾櫙涓婚  
"color torte     " 璁剧疆鑳屾櫙涓婚  
"set guifont=Courier_New:h10:cANSI   " 璁剧疆瀛椾綋  
"autocmd InsertLeave * se nocul  " 鐢ㄦ祬鑹查珮浜綋鍓嶈  
autocmd InsertEnter * se cul    " 鐢ㄦ祬鑹查珮浜綋鍓嶈  
set ruler           " 鏄剧ず鏍囧昂  
set showcmd         " 杈撳叆鐨勫懡浠ゆ樉绀哄嚭鏉ワ紝鐪嬬殑娓呮浜�  
"set whichwrap+=<,>,h,l   " 鍏佽backspace鍜屽厜鏍囬敭璺ㄨ秺琛岃竟鐣�(涓嶅缓璁�)  
set scrolloff=3     " 鍏夋爣绉诲姩鍒癰uffer鐨勯《閮ㄥ拰搴曢儴鏃朵繚鎸�3琛岃窛绂�  
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}   "鐘舵€佽鏄剧ず鐨勫唴瀹�  
set laststatus=2    " 鍚姩鏄剧ず鐘舵€佽(1),鎬绘槸鏄剧ず鐘舵€佽(2)  
"set foldenable      " 鍏佽鎶樺彔  
""set foldmethod=manual   " 鎵嬪姩鎶樺彔  
set nocompatible  "鍘绘帀璁ㄥ帉鐨勬湁鍏硋i涓€鑷存€фā寮忥紝閬垮厤浠ュ墠鐗堟湰鐨勪竴浜沚ug鍜屽眬闄�  
" 鏄剧ず涓枃甯姪
if version >= 603
	set helplang=cn
	set encoding=utf-8
endif
" 鑷姩缂╄繘
set autoindent
set cindent
" Tab閿殑瀹藉害
set tabstop=4
" 缁熶竴缂╄繘涓�4
set softtabstop=4
set shiftwidth=4
" 浣跨敤绌烘牸浠f浛鍒惰〃绗�
set expandtab
" 鍦ㄨ鍜屾寮€濮嬪浣跨敤鍒惰〃绗�
set smarttab
" 鏄剧ず琛屽彿
set number
" 鍘嗗彶璁板綍鏁�
set history=1000
"鎼滅储閫愬瓧绗﹂珮浜�
set hlsearch
set incsearch
"璇█璁剧疆
set langmenu=zh_CN.UTF-8
set helplang=cn
" 鎬绘槸鏄剧ず鐘舵€佽
set cmdheight=2
" 渚︽祴鏂囦欢绫诲瀷
filetype on
" 杞藉叆鏂囦欢绫诲瀷鎻掍欢
filetype plugin on
" 涓虹壒瀹氭枃浠剁被鍨嬭浇鍏ョ浉鍏崇缉杩涙枃浠�
filetype indent on
" 淇濆瓨鍏ㄥ眬鍙橀噺
set viminfo+=!
" 甯︽湁濡備笅绗﹀彿鐨勫崟璇嶄笉瑕佽鎹㈣鍒嗗壊
set iskeyword+=_,$,@,%,#,-
" 瀛楃闂存彃鍏ョ殑鍍忕礌琛屾暟鐩�

"markdown閰嶇疆
au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}   set filetype=mkd
au BufRead,BufNewFile *.{go}   set filetype=go
au BufRead,BufNewFile *.{js}   set filetype=javascript
"rkdown to HTML  
nmap md :!~/.vim/markdown.pl % > %.html <CR><CR>
nmap fi :!firefox %.html & <CR><CR>
nmap \ \cc
vmap \ \cc

"灏唗ab鏇挎崲涓虹┖鏍�
nmap tt :%s/\t/    /g<CR>



"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""鏂版枃浠舵爣棰�
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"鏂板缓.c,.h,.sh,.java鏂囦欢锛岃嚜鍔ㄦ彃鍏ユ枃浠跺ご 
autocmd BufNewFile *.cpp,*.[ch],*.sh,*.rb,*.java,*.py exec ":call SetTitle()" 
""瀹氫箟鍑芥暟SetTitle锛岃嚜鍔ㄦ彃鍏ユ枃浠跺ご 
func SetTitle() 
	"濡傛灉鏂囦欢绫诲瀷涓�.sh鏂囦欢 
	if &filetype == 'sh' 
		call setline(1,"\#!/bin/bash") 
		call append(line("."), "") 
    elseif &filetype == 'python'
        call setline(1,"#!/usr/bin/env python")
        call append(line("."),"# coding=utf-8")
	    call append(line(".")+1, "") 

    elseif &filetype == 'ruby'
        call setline(1,"#!/usr/bin/env ruby")
        call append(line("."),"# encoding: utf-8")
	    call append(line(".")+1, "")

"    elseif &filetype == 'mkd'
"        call setline(1,"<head><meta charset=\"UTF-8\"></head>")
	else 
		call setline(1, "/*************************************************************************") 
		call append(line("."), "	> File Name: ".expand("%")) 
		call append(line(".")+1, "	> Author: ") 
		call append(line(".")+2, "	> Mail: ") 
		call append(line(".")+3, "	> Created Time: ".strftime("%c")) 
		call append(line(".")+4, " ************************************************************************/") 
		call append(line(".")+5, "")
	endif
	if expand("%:e") == 'cpp'
		call append(line(".")+6, "#include<iostream>")
		call append(line(".")+7, "using namespace std;")
		call append(line(".")+8, "")
	endif
	if &filetype == 'c'
		call append(line(".")+6, "#include<stdio.h>")
		call append(line(".")+7, "")
	endif
	if expand("%:e") == 'h'
		call append(line(".")+6, "#ifndef _".toupper(expand("%:r"))."_H")
		call append(line(".")+7, "#define _".toupper(expand("%:r"))."_H")
		call append(line(".")+8, "#endif")
	endif
	if &filetype == 'java'
		call append(line(".")+6,"public class ".expand("%:r"))
		call append(line(".")+7,"")
	endif
	"鏂板缓鏂囦欢鍚庯紝鑷姩瀹氫綅鍒版枃浠舵湯灏�
endfunc 
autocmd BufNewFile * normal G


""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"閿洏鍛戒护
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
:nmap <silent> <F9> <ESC>:Tlist<RETURN>
" shift tab pages
map <S-Left> :tabp<CR>
map <S-Right> :tabn<CR>
map! <C-Z> <Esc>zzi
map! <C-O> <C-Y>,
map <C-A> ggVG$"+y
map <Esc><Esc> :w<CR>
map <F12> gg=G
map <C-w> <C-w>w
imap <C-k> <C-y>,
imap <C-t> <C-q><TAB>
imap <C-j> <ESC>
" 閫変腑鐘舵€佷笅 Ctrl+c 澶嶅埗
"map <C-v> "*pa
imap <C-v> <Esc>"*pa
imap <C-a> <Esc>^
imap <C-e> <Esc>$
vmap <C-c> "+y
set mouse=v
"set clipboard=unnamed
"鍘荤┖琛�  
nnoremap <F2> :g/^\s*$/d<CR> 
"姣旇緝鏂囦欢  
nnoremap <C-F2> :vert diffsplit 
"nnoremap <Leader>fu :CtrlPFunky<Cr>
"nnoremap <C-n> :CtrlPFunky<Cr>
"鍒楀嚭褰撳墠鐩綍鏂囦欢  
map <F3> :NERDTreeToggle<CR>
imap <F3> <ESC> :NERDTreeToggle<CR>
"鎵撳紑鏍戠姸鏂囦欢鐩綍  
map <C-F3> \be  
:autocmd BufRead,BufNewFile *.dot map <F5> :w<CR>:!dot -Tjpg -o %<.jpg % && eog %<.jpg  <CR><CR> && exec "redr!"
"C锛孋++ 鎸塅5缂栬瘧杩愯
map <F5> :call CompileRunGcc()<CR>
func! CompileRunGcc()
	exec "w"
	if &filetype == 'c'
		exec "!g++ % -o %<"
		exec "!time ./%<"
	elseif &filetype == 'cpp'
		exec "!g++ % -std=c++11 -o %<"
		exec "!time ./%<"
	elseif &filetype == 'java' 
		exec "!javac %" 
		exec "!time java %<"
	elseif &filetype == 'sh'
		:!time bash %
	elseif &filetype == 'python'
		exec "!time python2.7 %"
    elseif &filetype == 'html'
        exec "!firefox % &"
    elseif &filetype == 'go'
"        exec "!go build %<"
        exec "!time go run %"
    elseif &filetype == 'mkd'
        exec "!~/.vim/markdown.pl % > %.html &"
        exec "!firefox %.html &"
	endif
endfunc
"C,C++鐨勮皟璇�
map <F8> :call Rungdb()<CR>
func! Rungdb()
	exec "w"
	exec "!g++ % -std=c++11 -g -o %<"
	exec "!gdb ./%<"
endfunc


"浠g爜鏍煎紡浼樺寲鍖�

map <F6> :call FormartSrc()<CR><CR>

"瀹氫箟FormartSrc()
func FormartSrc()
    exec "w"
    if &filetype == 'c'
        exec "!astyle --style=ansi -a --suffix=none %"
    elseif &filetype == 'cpp' || &filetype == 'hpp'
        exec "r !astyle --style=ansi --one-line=keep-statements -a --suffix=none %> /dev/null 2>&1"
    elseif &filetype == 'perl'
        exec "!astyle --style=gnu --suffix=none %"
    elseif &filetype == 'py'||&filetype == 'python'
        exec "r !autopep8 -i --aggressive %"
    elseif &filetype == 'java'
        exec "!astyle --style=java --suffix=none %"
    elseif &filetype == 'jsp'
        exec "!astyle --style=gnu --suffix=none %"
    elseif &filetype == 'xml'
        exec "!astyle --style=gnu --suffix=none %"
    else
        exec "normal gg=G"
        return
    endif
    exec "e! %"
endfunc
"缁撴潫瀹氫箟FormartSrc


""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""瀹炵敤璁剧疆
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has("autocmd")
      autocmd BufReadPost *
          \ if line("'\"") > 0 && line("'\"") <= line("$") |
          \   exe "normal g`\"" |
          \ endif
endif
"褰撴墦寮€vim涓旀病鏈夋枃浠舵椂鑷姩鎵撳紑NERDTree
autocmd vimenter * if !argc() | NERDTree | endif
" 鍙墿 NERDTree鏃惰嚜鍔ㄥ叧闂�
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif

" 璁剧疆褰撴枃浠惰鏀瑰姩鏃惰嚜鍔ㄨ浇鍏�
set autoread
" quickfix妯″紡
autocmd FileType c,cpp map <buffer> <leader><space> :w<cr>:make<cr>
"浠g爜琛ュ叏 
set completeopt=preview,menu 
"鍏佽鎻掍欢  
"filetype plugin on
"鍏变韩鍓创鏉�  
"set clipboard+=unnamed 
"鑷姩淇濆瓨
set autowrite
"set ruler                   " 鎵撳紑鐘舵€佹爮鏍囧昂
"set cursorline              " 绐佸嚭鏄剧ず褰撳墠琛�
set magic                   " 璁剧疆榄旀湳
set guioptions-=T           " 闅愯棌宸ュ叿鏍�
set guioptions-=m           " 闅愯棌鑿滃崟鏍�
""set foldcolumn=0
""set foldmethod=indent 
""set foldlevel=3 
" 涓嶈浣跨敤vi鐨勯敭鐩樻ā寮忥紝鑰屾槸vim鑷繁鐨�
set nocompatible
" 鍘绘帀杈撳叆閿欒鐨勬彁绀哄0闊�
set noeb
" 鍦ㄥ鐞嗘湭淇濆瓨鎴栧彧璇绘枃浠剁殑鏃跺€欙紝寮瑰嚭纭
set confirm
"绂佹鐢熸垚涓存椂鏂囦欢
set nobackup
set noswapfile
"鎼滅储蹇界暐澶у皬鍐�
set ignorecase

let g:ycm_server_python_interpreter='/usr/bin/python3'      " 褰撴椂缂栬瘧python鐨勭増鏈�
let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'

set nocompatible " be iMproved
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

"let Vundle manage Vundle
"" required!
Bundle 'scrooloose/syntastic'
Bundle 'gmarik/vundle'

" My bundles here:
" "
" " original repos on GitHub
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Bundle 'tpope/vim-rails.git'
" " vim-scripts repos
" Bundle 'L9'
" Bundle 'FuzzyFinder'
" " non-GitHub repos
" Bundle 'git://git.wincent.com/command-t.git'
" " Git repos on your local machine (i.e. when working on your own plugin)
" Bundle 'file:///Users/gmarik/path/to/plugin'
" " ...
" Bundle 'Valloric/YouCompleteMe'
" filetype plugin indent on " required!
" " 缂栫爜涓簎tf-8
" set fileencodings=utf-8,gb2312,gbk,gb18030
" set termencoding=utf-8
" set encoding=utf-8
"
"
"" YouCompleteMe
set runtimepath+=~/.vim/bundle/YouCompleteMe
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
" 娉ㄩ噴涓庡瓧绗︿覆涓殑鍐呭涔熺敤浜庤ˉ鍏�
let g:syntastic_ignore_files=[".*\.py$"]
let g:ycm_seed_identifiers_with_syntax = 1                  " 璇硶鍏抽敭瀛楄ˉ鍏�
let g:ycm_complete_in_comments = 1
let g:ycm_confirm_extra_conf = 0
let g:ycm_key_list_select_completion = ['<c-n>', '<Down>']  " 鏄犲皠鎸夐敭, 娌℃湁杩欎釜浼氭嫤鎴帀tab, 瀵艰嚧鍏朵粬鎻掍欢鐨則ab涓嶈兘鐢�.
let g:ycm_key_list_previous_completion = ['<c-p>', '<Up>']
let g:ycm_complete_in_comments = 1                          " 鍦ㄦ敞閲婅緭鍏ヤ腑涔熻兘琛ュ叏
let g:ycm_complete_in_strings = 1                           " 鍦ㄥ瓧绗︿覆杈撳叆涓篃鑳借ˉ鍏�
let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 娉ㄩ噴鍜屽瓧绗︿覆涓殑鏂囧瓧涔熶細琚敹鍏ヨˉ鍏�
let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_show_diagnostics_ui = 0                           " 绂佺敤璇硶妫€鏌�
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>" |            " 鍥炶溅鍗抽€変腑褰撳墠椤�
nnoremap <c-j> :YcmCompleter GoToDefinitionElseDeclaration<CR>|     " 璺宠浆鍒板畾涔夊
"let g:ycm_min_num_of_chars_for_completion=2                 "
"浠庣2涓敭鍏ュ瓧绗﹀氨寮€濮嬬綏鍒楀尮閰嶉」]"
" "
" "



set linespace=0
" 澧炲己妯″紡涓殑鍛戒护琛岃嚜鍔ㄥ畬鎴愭搷浣�
set wildmenu
" 浣垮洖鏍奸敭锛坆ackspace锛夋甯稿鐞唅ndent, eol, start绛�
set backspace=2
" 鍏佽backspace鍜屽厜鏍囬敭璺ㄨ秺琛岃竟鐣�
set whichwrap+=<,>,h,l
" 鍙互鍦╞uffer鐨勪换浣曞湴鏂逛娇鐢ㄩ紶鏍囷紙绫讳技office涓湪宸ヤ綔鍖哄弻鍑婚紶鏍囧畾浣嶏級
set mouse=a
set selection=exclusive
set selectmode=mouse,key
" 閫氳繃浣跨敤: commands鍛戒护锛屽憡璇夋垜浠枃浠剁殑鍝竴琛岃鏀瑰彉杩�
set report=0
" 鍦ㄨ鍒嗗壊鐨勭獥鍙i棿鏄剧ず绌虹櫧锛屼究浜庨槄璇�
set fillchars=vert:\ ,stl:\ ,stlnc:\
" 楂樹寒鏄剧ず鍖归厤鐨勬嫭鍙�
set showmatch
" 鍖归厤鎷彿楂樹寒鐨勬椂闂达紙鍗曚綅鏄崄鍒嗕箣涓€绉掞級
set matchtime=1
" 鍏夋爣绉诲姩鍒癰uffer鐨勯《閮ㄥ拰搴曢儴鏃朵繚鎸�3琛岃窛绂�
set scrolloff=3
" 涓篊绋嬪簭鎻











愪緵鑷姩缂╄繘 "鑷姩琛ュ叏 "":inoremap ( ()<ESC>i "":inoremap ) <c-r>=ClosePair(')')<CR> ":inoremap { {<CR>}<ESC>O ":inoremap } <c-r>=ClosePair('}')<CR> "":inoremap [ []<ESC>i "":inoremap ] <c-r>=ClosePair(']')<CR> "":inoremap " ""<ESC>i "":inoremap ' ''<ESC>i ""function! ClosePair(char) "" if getline('.')[col('.') - 1] == a:char "" return "\<Right>" "" else "" return a:char "" endif ""endfunction filetype plugin indent on "鎵撳紑鏂囦欢绫诲瀷妫€娴�, 鍔犱簡杩欏彞鎵嶅彲浠ョ敤鏅鸿兘琛ュ叏 set completeopt=longest,menu """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " CTags鐨勮瀹� """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let Tlist_Sort_Type = "name" " 鎸夌収鍚嶇О鎺掑簭 let Tlist_Use_Right_Window = 1 " 鍦ㄥ彸渚ф樉绀虹獥鍙� let Tlist_Compart_Format = 1 " 鍘嬬缉鏂瑰紡 let Tlist_Exist_OnlyWindow = 1 " 濡傛灉鍙湁涓€涓猙uffer锛宬ill绐楀彛涔焝ill鎺塨uffer ""let Tlist_File_Fold_Auto_Close = 0 " 涓嶈鍏抽棴鍏朵粬鏂囦欢鐨則ags ""let Tlist_Enable_Fold_Column = 0 " 涓嶈鏄剧ず鎶樺彔鏍� "let Tlist_Show_One_File=1 "涓嶅悓鏃舵樉绀哄涓枃浠剁殑tag锛屽彧鏄剧ず褰撳墠鏂囦欢鐨� "璁剧疆tags set tags=tags; set autochdir """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "鍏朵粬涓滀笢 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "榛樿鎵撳紑Taglist let Tlist_Auto_Open=0 """""""""""""""""""""""""""""" " Tag list (ctags) """""""""""""""""""""""""""""""" let Tlist_Ctags_Cmd = '/usr/local/bin/ctags' let Tlist_Show_One_File = 1 "涓嶅悓鏃舵樉绀哄涓枃浠剁殑tag锛屽彧鏄剧ず褰撳墠鏂囦欢鐨� let Tlist_File_Fold_Auto_Close = 1 let Tlist_Exit_OnlyWindow = 1 "濡傛灉taglist绐楀彛鏄渶鍚庝竴涓獥鍙o紝鍒欓€€鍑簐im let Tlist_Use_Right_Window = 1 "鍦ㄥ彸渚х獥鍙d腑鏄剧ずtaglist绐楀彛 " minibufexpl鎻掍欢鐨勪竴鑸缃� let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 nmap tl :Tlist<cr> "python琛ュ叏 let g:pydiction_location = '~/.vim/after/complete-dict' let g:pydiction_menu_height = 20 let Tlist_Ctags_Cmd='/usr/local/bin/ctags' let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 set iskeyword+=. set termencoding=utf-8 set encoding=utf8 set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030 autocmd FileType python set omnifunc=pythoncomplete#Complete "set nocompatible " be iMproved "filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " My Bundles here: " " original repos on github Bundle 'tpope/vim-fugitive' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'Yggdroot/indentLine' let g:indentLine_char = '鈹�' "ndle 'tpope/vim-rails.git' " vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' " non github repos Bundle 'https://github.com/wincent/command-t.git' Bundle 'Auto-Pairs' Bundle 'python-imports.vim' Bundle 'CaptureClipboard' Bundle 'ctrlp-modified.vim' Bundle 'last_edit_marker.vim' Bundle 'synmark.vim' "Bundle 'Python-mode-klen' Bundle 'SQLComplete.vim' Bundle 'Javascript-OmniCompletion-with-YUI-and-j' "Bundle 'JavaScript-Indent' "Bundle 'Better-Javascript-Indentation' Bundle 'jslint.vim' Bundle "pangloss/vim-javascript" Bundle 'Vim-Script-Updater' Bundle 'ctrlp.vim' Bundle 'tacahiroy/ctrlp-funky' Bundle 'jsbeautify' Bundle 'The-NERD-Commenter' "django Bundle 'django_templates.vim' Bundle 'Django-Projects' "Bundle 'FredKSchott/CoVim' "Bundle 'djangojump' " ... let g:html_indent_inctags = "html,body,head,tbody" let g:html_indent_script1 = "inc" let g:html_indent_style1 = "inc" filetype plugin indent on " required! " "ctrlp璁剧疆 " set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.png,*.jpg,*.gif " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe,*.pyc,*.png,*.jpg,*.gif " Windows let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = '\v\.(exe|so|dll)$' let g:ctrlp_extensions = ['funky'] let NERDTreeIgnore=['\.pyc']