|
set encoding=utf-8 |
|
" set guifont=Monaco:h9 |
|
" set guifont=CamingoCode:h10 |
|
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h10:cANSI |
|
set lines=50 columns=110 |
|
set go-=T |
|
if has('gui_running') |
|
set background=dark |
|
else |
|
set background=dark |
|
set t_Co=256 " make sure our terminal use 256 color |
|
let g:solarized_termcolors = 256 |
|
endif |
|
colorscheme zellner |
|
|
|
syntax enable |
|
set hlsearch |
|
set ignorecase |
|
set smartcase |
|
set laststatus=2 |
|
|
|
set tabstop=3 |
|
set shiftwidth=3 |
|
set expandtab |
|
|
|
set noswapfile |
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
" path setup |
|
let s:cygwin = 'C:\cygwin\bin' |
|
" Add PortablePython's path to $PATH if running on Windows and PortablePython exists |
|
if (has('win32') || has('win64')) && isdirectory(s:cygwin) |
|
let $PATH .= ';' . s:cygwin |
|
endif |
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
let &cscopeprg = expand('c:\cygwin\bin\cscope.exe') |
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
" Key map |
|
imap ;; <ESC> |
|
nmap ;; <ESC> |
|
nnoremap fl :FufFile **/<cr> |
|
nnoremap ff :FufFile<cr> |
|
nnoremap fj :FufBuffer<cr> |
|
nnoremap <silent> <F11> :YRShow<cr> |
|
nnoremap <silent> <F4> :TagbarToggle<cr> |
|
" nnoremap <silent> <F5> :TagbarCurrentTag<cr> |
|
" inoremap jj <ESC> |
|
" nnoremap <silent> <F4> :TlistToggle<cr> |
|
" nnoremap <silent> <F5> :TlistSync<cr> |
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
" Python-mode |
|
" Activate rope |
|
" Keys: |
|
" K Show python docs |
|
" <Ctrl-Space> Rope autocomplete |
|
" <Ctrl-c>g Rope goto definition |
|
" <Ctrl-c>d Rope show documentation |
|
" <Ctrl-c>f Rope find occurrences |
|
" <Leader>b Set, unset breakpoint (g:pymode_breakpoint enabled) |
|
" [[ Jump on previous class or function (normal, visual, operator modes) |
|
" ]] Jump on next class or function (normal, visual, operator modes) |
|
" [M Jump on previous class or method (normal, visual, operator modes) |
|
" ]M Jump on next class or method (normal, visual, operator modes) |
|
let g:pymode_rope = 1 |
|
|
|
" Documentation |
|
let g:pymode_doc = 1 |
|
let g:pymode_doc_key = 'K' |
|
|
|
"Linting |
|
let g:pymode_lint = 1 |
|
let g:pymode_lint_checker = "pyflakes,pep8" |
|
" Auto check on save |
|
let g:pymode_lint_write = 1 |
|
|
|
" Support virtualenv |
|
let g:pymode_virtualenv = 1 |
|
|
|
" Enable breakpoints plugin |
|
let g:pymode_breakpoint = 1 |
|
let g:pymode_breakpoint_key = '<leader>b' |
|
|
|
" syntax highlighting |
|
let g:pymode_syntax = 1 |
|
let g:pymode_syntax_all = 1 |
|
let g:pymode_syntax_indent_errors = g:pymode_syntax_all |
|
let g:pymode_syntax_space_errors = g:pymode_syntax_all |
|
|
|
" Don't autofold code |
|
let g:pymode_folding = 0 |
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
" Vundle setting |
|
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: |
|
" |
|
Bundle 'bling/vim-airline' |
|
let g:airline#extensions#tabline#enabled = 1 |
|
if has('gui_running') |
|
let g:airline_powerline_fonts = 1 |
|
else |
|
let g:airline_powerline_fonts = 0 |
|
endif |
|
|
|
Bundle 'flazz/vim-colorschemes' |
|
Bundle 'freeo/vim-kalisi' |
|
|
|
Bundle 'ninovsnino/mark.vim' |
|
let g:mwDefaultHighlightingPalette = 'extended' |
|
|
|
Bundle 'vim-scripts/L9' |
|
Bundle 'vim-scripts/FuzzyFinder' |
|
let g:fuf_enumeratingLimit = 100 |
|
|
|
Bundle 'vim-scripts/TagHighlight' |
|
Bundle 'tomtom/tcomment_vim' |
|
Bundle 'klen/python-mode' |
|
Bundle 'vim-scripts/YankRing.vim' |
|
Bundle 'majutsushi/tagbar' |
|
Bundle 'rking/ag.vim' |
|
Bundle 'kenng/vim-bettersearch' |
|
Bundle 'rosenfeld/conque-term' |
|
Bundle 'hari-rangarajan/CCTree' |
|
Bundle 'wting/rust.vim' |
|
Bundle 'exvim/ex-utility' |
|
Bundle 'exvim/ex-gsearch' |
|
silent call exgsearch#register_hotkey( 100, 0, '<leader>gs', ":EXGSearchToggle<CR>", 'Toggle global search window.' ) |
|
silent call exgsearch#register_hotkey( 101, 0, '<leader>gg', ":EXGSearchCWord<CR>", 'Search current word.' ) |
|
silent call exgsearch#register_hotkey( 102, 0, '<leader><S-f>', ":GS ", 'Shortcut for :GS' ) |
|
|
|
Bundle 'MattesGroeger/vim-bookmarks' |
|
let g:bookmark_manage_per_buffer = 1 |
|
|
|
Bundle 'MarcWeber/vim-addon-local-vimrc' |
|
Bundle 'yongzhy/vim-cflags' |
|
" Update buffer with preprocessor evaluated |
|
nnoremap <leader>bu :call cflags#SynUpdate()<cr> |
|
|
|
" Bundle 'vim-scripts/Mark–Karkat' |
|
" Bundle 'vim-scripts/EasyGrep' |
|
" Bundle 'exvim/ex-colorschemes' |
|
" Bundle 'scrooloose/nerdtree' |
|
" Bundle 'vim-scripts/taglist.vim' |
|
" Bundle 'ivanov/vim-ipython' |
|
" Bundle 'vim-scripts/ifdef-highlighting' |
|
" Bundle 'vim-scripts/highlight.vim' |
|
" Bundle 'xolox/vim-misc' |
|
" Bundle 'xolox/vim-easytags' |
|
" Bundle 'Lokaltog/vim-powerline' |
|
" Bundle 'kien/ctrlp.vim' |
|
" Bundle 'mileszs/ack.vim' |
|
" Bundle 'benmills/vimux' |
|
" Bundle 'Shougo/vimshell.vim' |
|
" Bundle 'Shougo/vimproc.vim' |
|
" Bundle 'Shougo/unite.vim' |
|
|
|
" vim-scripts repos |
|
" Bundle 'L9' |
|
" Bundle 'FuzzyFinder' |
|
|
|
filetype plugin indent on " required! |
|
" |
|
" Brief help |
|
" :BundleList – list configured bundles |
|
" :BundleInstall(!) – install(update) bundles |
|
" :BundleSearch(!) foo – search(or refresh cache first) for foo |
|
" :BundleClean(!) – confirm(or auto-approve) removal of unused bundles |
|
" |
|
" see :h vundle for more details or wiki for FAQ |
|
" NOTE: comments after Bundle command are not allowed.. |