Last active
August 29, 2015 14:04
-
-
Save lihb/a5821e12f73895e0456f to your computer and use it in GitHub Desktop.
2014-07-16上传, 插件放在115网盘,名称:VimPlugins20140716.zip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| source $VIMRUNTIME/vimrc_example.vim | |
| source $VIMRUNTIME/mswin.vim | |
| behave mswin | |
| set diffexpr=MyDiff() | |
| function! MyDiff() | |
| let opt = '-a --binary ' | |
| if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
| if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif | |
| let arg1 = v:fname_in | |
| if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif | |
| let arg2 = v:fname_new | |
| if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif | |
| let arg3 = v:fname_out | |
| if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif | |
| let eq = '' | |
| if $VIMRUNTIME =~ ' ' | |
| if &sh =~ '\<cmd' | |
| let cmd = '""' . $VIMRUNTIME . '\diff"' | |
| let eq = '"' | |
| else | |
| let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"' | |
| endif | |
| else | |
| let cmd = $VIMRUNTIME . '\diff' | |
| endif | |
| silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq | |
| endfunction | |
| """"""""""""""""""""""""" | |
| " base setting | |
| """""""""""""""""""""""""""""" | |
| set nu! "show line number | |
| colorscheme monokai | |
| set guifont=consolas:h10 "font & size | |
| set guioptions= | |
| set nobackup "don't generate backup file | |
| set noerrorbells | |
| set autochdir "change the dir to the editing file's dir | |
| set noswapfile "don't generate swap file | |
| language messages zh_CN.utf-8 "set the message's language | |
| """"""""""""""""""""""""""""""" | |
| "setting's about indent | |
| """"""""""""""""""""""""""""""" | |
| set tabstop=4 "per tab is 4 space | |
| set autoindent | |
| set smartindent | |
| set softtabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set cindent "use the indent like C program | |
| set smarttab | |
| """"""""""""""""""""""""""""""" | |
| let mapleader = "," | |
| map <Leader>evi :e $VIM\_vimrc<cr> | |
| map <Leader>s :source $VIM\_vimrc<CR> | |
| """""""""""""""""""""""""" | |
| " set the status line | |
| """"""""""""""""""""""""""" | |
| set cmdheight=2 | |
| set ruler | |
| set laststatus=2 | |
| """"""""""""""""""""""""" | |
| "set the shortcut | |
| """"""""""""""""""""""""" | |
| nmap <C-S-cr> <Esc>$a; | |
| imap <C-S-cr> <Esc>$a; | |
| """""""""""""""""""""""""" | |
| " the settings about file | |
| """"""""""""""""""""""""""" | |
| set encoding=utf-8 | |
| set fileencoding=utf-8 | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| syntax on | |
| "--------format the xml files | |
| function! Xml() | |
| set filetype=xml | |
| :%s/></>\r</g " replace '><' to '>\r<' | |
| :normal gg=G<cr> | |
| endf | |
| map <leader>xml :call Xml()<cr> | |
| """""""""""""""""""""""""""""""""""""""" | |
| "the settings of scripts | |
| """""""""""""""""""""""""""""""""""""""" | |
| " Vundle —manager other scripts | |
| set rtp+=~/vimfiles/bundle/Vundle.vim/ | |
| let path='~/vimfiles/bundle' | |
| call vundle#begin(path) | |
| Plugin 'gmarik/Vundle.vim' | |
| "------------------------------------------ | |
| " NERDTree | |
| Plugin 'scrooloose/nerdtree' | |
| "------------------------------------------ | |
| "Winmanager | |
| Plugin 'winmanager' | |
| let g:NERDTree_title='[NERD Tree]' | |
| let g:winManagerWindowLayout='NERDTree' | |
| function! NERDTree_Start() | |
| exec 'NERDTree' | |
| endfunction | |
| function! NERDTree_IsValid() | |
| return 1 | |
| endfunction | |
| nmap wm :WMToggle<cr> | |
| "------------------------------------------ | |
| "ctags | |
| "Plugin 'ctags.exe' | |
| "------------------------------------------ | |
| "minibufexplorer | |
| Plugin 'fholgado/minibufexpl.vim' | |
| noremap <C-Down> <C-W>j | |
| noremap <C-Up> <C-W>k | |
| noremap <C-Left> <C-W>h | |
| noremap <C-Right> <C-W>l | |
| "------------------------------------------ | |
| "Powerline(to improve statusline) | |
| Plugin 'Lokaltog/vim-powerline' | |
| set t_Co=256 | |
| let g:Powerline_symbols='unicode' | |
| set encoding =utf-8 | |
| "------------------------------------------ | |
| "mru(show the list of recently files) | |
| Plugin 'mru.vim' | |
| let MRU_File = 'C:/Users/lihb/_vim_mru_files' | |
| let MRU_Max_Entries = 1000 | |
| let MRU_Use_Current_Window = 1 | |
| let MRU_Auto_Close = 1 | |
| "----------------------------------------- | |
| " ultiSnips (code snippets) | |
| Plugin 'SirVer/ultiSnips' | |
| let g:UltiSnipsUsePythonVersion = 2 | |
| let g:UltiSnipsExpandTrigger = '<tab>' | |
| let g:UltiSnipsListTrigger = '<c-tab>' | |
| let g:UltiSnipsJumpForwardwardTrigger='<c-j>' | |
| let g:UltiSnipsJumpBackwardTrigger='<c-k>' | |
| let g:UltiSnipsEditSplit= 'vertical' | |
| "----------------------------------------- | |
| "delimitMate(bracket complete) | |
| Plugin 'Raimondi/delimitMate' | |
| "----------------------------------------- | |
| "vim-surround(surround bracket & quto etc) | |
| Plugin 'tpope/vim-surround' | |
| "----------------------------------------- | |
| "tagbar | |
| Plugin 'majutsushi/tagbar' | |
| nmap tb :TagbarToggle<cr> | |
| let g:tagbar_width = 30 | |
| "----------------------------------------- | |
| "IndentLine(show the indentline) | |
| Plugin 'Yggdroot/indentLine' | |
| let g:indentLine_color_gui='#A4E57E' | |
| let g:indentLine_char = '¦' | |
| nmap <Leader>il :IndentLinesToggle<cr> | |
| "----------------------------------------- | |
| "markdown(write markdown file) | |
| Plugin 'plasticboy/vim-markdown' | |
| let g:vim_markdown_folding_disabled=1 | |
| let g:vim_markdown_initial_foldlevel=1 | |
| let g:vim_markdown_no_default_key_mappings=1 | |
| "----------------------------------------- | |
| call vundle#end() | |
| filetype plugin indent on " required! | |
| "------------------------------------------ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment