资源说明:vim configuration stuff
call pathogen#helptags() call pathogen#runtime_append_all_bundles() set t_Co=256 set encoding=utf-8 set gfn=Inconsolata\ for\ Powerline\ Medium\ 11 set guifontwide=Ubuntu\ Mono\ 9 colo molokai let g:rehash=1 filetype off set number nnoremap:set nonumber! set foldcolumn=1 set pastetoggle= nnoremap :set invpaste command! W write set backupdir=~/tmp set directory=~/tmp set undodir=~/tmp let g:ctags_statusline=1 let generate_tags=1 let Tlist_Use_Horiz_Window=0 nnoremap TT :TlistToggle map :TlistAddFiles src/*.cpp include/*.h ../include/*.h ../src/*.cpp *.cpp *.h autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif autocmd VimEnter * wincmd p map :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif let Tlist_Use_Right_Window = 1 let Tlist_Compact_Format = 1 let Tlist_Exit_OnlyWindow = 1 let Tlist_GainFocus_On_ToggleOpen = 1 let Tlist_File_Fold_Auto_close = 1 let g:alternateNoDefaultAlternate = 1 let g:alternateRelativeFiles = 1 let g:airline_powerline_fonts = 1 let mapleader="," filetype on filetype plugin on filetype indent on syntax on set autowrite set ruler set showcmd set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab set smartindent set autoindent set laststatus=2 set wrap set textwidth=120 set formatoptions=qrn1 set incsearch set hlsearch set ignorecase set smartcase set foldenable set mousehide set mouse=a set diffopt=vertical set foldmethod=syntax nnoremap o zo nnoremap a za nnoremap c zc nnoremap m zM nnoremap r zR inoremap za nnoremap za onoremap za vnoremap zf nnoremap v v l nnoremap s s j nnoremap h h nnoremap l l nnoremap j j nnoremap k k nnoremap d ^ maj^mb`ad`b nnoremap d g^ mak^mb`ad`b nnoremap d $ mak$mb`ad`b nnoremap d g$ maj$mb`ad`b set sessionoptions=resize,winpos,winsize,buffers,tabpages,folds,curdir,help nmap ev :tabedit ~/.vim/vimrc autocmd BufEnter * if expand('%:p') !~ '://' | :lchdir %:p:h | endif set wildmenu set wildmode=list:longest inoremap pumvisible() ? "\ " : "\ u\ " inoremap pumvisible() ? ' ' : ' =pumvisible() ? "\ Down>" : "" ' inoremap pumvisible() ? ' ' : ' =pumvisible() ? "\ Down>" : "" ' if has("autocmd") augroup myvimrchooks au! autocmd bufwritepost ~/.vim/vimrc source ~/.vimrc augroup END endif " Disable AutoComplPop. let g:acp_enableAtStartup = 0 " Use neocomplete. let g:neocomplete#enable_at_startup = 0 " Use smartcase. let g:neocomplete#enable_smart_case = 1 " Set minimum syntax keyword length. let g:neocomplete#sources#syntax#min_keyword_length = 3 let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' " Define dictionary. let g:neocomplete#sources#dictionary#dictionaries = { \ 'default' : '', \ 'vimshell' : $HOME.'/.vimshell_hist', \ 'scheme' : $HOME.'/.gosh_completions' \ } nnoremap :tabprevious nnoremap :tabnext nnoremap :execute 'silent! tabmove ' . (tabpagenr()-2) nnoremap :execute 'silent! tabmove ' . tabpagenr() let clojure#HighlightBuiltins = 1 let clojure#ParenRainbow = 1 " Let's remember some things, like where the .vim folder is. if has("win32") || has("win64") let windows=1 let vimfiles=$HOME . "/vimfiles" let sep=";" else let windows=0 let vimfiles=$HOME . "/.vim" let sep=":" endif " configure tags - add additional tags here or comment out not-used ones set tags+=~/.vim/tags/cpp set tags+=~/.vim/tags/gl set tags+=~/.vim/tags/cv " build tags of your own project with Ctrl-F12 map :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q . map :set tags+=./tags;/home/arjun set completeopt=menuone,menu,longest,preview " Define keyword. if !exists('g:neocomplete#keyword_patterns') let g:neocomplete#keyword_patterns = {} endif let g:neocomplete#keyword_patterns['default'] = '\h\w*' " : close popup and save indent. inoremap = my_cr_function() function! s:my_cr_function() return pumvisible() ? neocomplete#close_popup() : "\ " endfunction " : completion. inoremap pumvisible() ? "\ " : "\ " " : close popup and delete backword char. inoremap neocomplete#smart_close_popup()."\ " " Close popup by . inoremap pumvisible() ? neocomplete#close_popup() . "\ " : "\ " let g:neocomplete#enable_insert_char_pre = 1 inoremap neocomplete#close_popup() . "\ " inoremap neocomplete#close_popup() . "\ " autocmd FileType python setlocal omnifunc=pythoncomplete#Complete autocmd FileType python let b:did_ftplugin = 1 set ofu=syntaxcomplete#Complete if !exists('g:neocomplete#sources#omni#input_patterns') let g:neocomplete#sources#omni#input_patterns = {} endif function! s:find_basedir() "{{{ " search Cabal file if !exists('b:ghcmod_basedir') let l:ghcmod_basedir = expand('%:p:h') let l:dir = l:ghcmod_basedir for _ in range(6) if !empty(glob(l:dir . '/*.cabal', 0)) let l:ghcmod_basedir = l:dir break endif let l:dir = fnamemodify(l:dir, ':h') endfor let b:ghcmod_basedir = l:ghcmod_basedir endif return b:ghcmod_basedir endfunction "}}} " use ghc functionality for haskell files let g:ghc="/usr/bin/ghc" augroup filetype_hs autocmd! autocmd Bufenter *.hs compiler ghc autocmd BufWritePost *.hs GhcModCheckAndLintAsync augroup END let g:haddock_browser = "/usr/bin/firefox-aurora" let g:GHCStaticOptions = "-O2" let g:haskell_jmacro = 0 let g:ghcmod_ghc_options = ['-fno-warn-missing-signatures'] let g:syntastic_haskell_ghc_mod_args = '--ghcOpts=-fno-warn-missing-signatures' hi ghcmodType ctermbg=yellow let g:ghcmod_type_highlight = 'ghcmodType' let g:haskell_conceal_wide = 1 let g:necoghc_enable_detailed_browse = 1 let g:neocomplete#force_overwrite_completefunc = 1 nnoremap d [i inoremap c nmap R :GHCReload nmap i _i nmap hh _? nmap hs _?1 nmap ie _ie nmap g :make nmap G s:cabalrepl() nmap e :GhcModType nmap q :noh function! s:cabalrepl() return ':cd ' . s:find_basedir() . '\ ' . ' cabal repl %p\ ' endfunction let g:pymode_run_key = ' RR' let g:pymode_lint_checher = "pyflakes" let g:jedi#rename_command = " RRR" " fugitive git bindings nnoremap ga :Git add %:p nnoremap gs :Gstatus nnoremap gc :Gcommit -v -q nnoremap gt :Gcommit -v -q %:p nnoremap gd :Gdiff nnoremap ge :Gedit nnoremap gr :Gread nnoremap gw :Gwrite nnoremap gl :silent! Glog :bot copen nnoremap gp :Ggrep nnoremap gm :Gmove nnoremap gb :Git branch nnoremap go :Git checkout nnoremap gps :Dispatch! git push nnoremap gpl :Dispatch! git pull nnoremap dp :diffput nnoremap dg :diffget vnoremap dp :diffput vnoremap dg :diffget augroup filetype_clj autocmd! au BufEnter *.clj RainbowParenthesesToggle au Syntax *.clj RainbowParenthesesLoadRound au Syntax *.clj RainbowParenthesesLoadSquare au Syntax *.clj RainbowParenthesesLoadBraces augroup END let g:clojure_syntax_keywords = { \ 'clojureMacro': ["defproject", "defcustom"], \ 'clojureFunc': ["string/join", "string/replace"] \ } nnoremap ce :Eval nnoremap %ce :%Eval nnoremap r zR au BufReadPost Jenkinsfile set syntax=groovy au BufReadPost Jenkinsfile set filetype=groovy au BufReadPost *.yaml.j2 set syntax=yaml au BufReadPost *.yaml.j2 set filetype=yaml hi! link Conceal Operator
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。