Created
April 14, 2016 00:14
-
-
Save kkc/a796e4b8d3bc0b7e0381129b1e6f0732 to your computer and use it in GitHub Desktop.
vimrc
This file contains 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 | |
set backspace=2 | |
filetype off | |
syntax on | |
set t_Co=256 | |
set foldmethod=marker | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" The bundles you install will be listed here | |
filetype plugin indent on | |
" The rest of your config follows here | |
augroup vimrc_autocmds | |
autocmd! | |
" highlight characters past column 120 | |
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black | |
autocmd FileType python match Excess /\%120v.*/ | |
autocmd FileType python set nowrap | |
augroup END | |
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
"" Powerline setup | |
set guifont=DejaVu\ Sans\ Mono | |
set laststatus=2 | |
"Bundle 'kien/rainbow_parentheses.vim' | |
"let g:rbpt_colorpairs = [ | |
" \ ['brown', 'RoyalBlue3'], | |
" \ ['Darkblue', 'SeaGreen3'], | |
" \ ['darkgray', 'DarkOrchid3'], | |
" \ ['darkgreen', 'firebrick3'], | |
" \ ['darkcyan', 'RoyalBlue3'], | |
" \ ['darkred', 'SeaGreen3'], | |
" \ ['darkmagenta', 'DarkOrchid3'], | |
" \ ['brown', 'firebrick3'], | |
" \ ['gray', 'RoyalBlue3'], | |
" \ ['black', 'SeaGreen3'], | |
" \ ['darkmagenta', 'DarkOrchid3'], | |
" \ ['Darkblue', 'firebrick3'], | |
" \ ['darkgreen', 'RoyalBlue3'], | |
" \ ['darkcyan', 'SeaGreen3'], | |
" \ ['darkred', 'DarkOrchid3'], | |
" \ ['red', 'firebrick3'], | |
" \ ] | |
" | |
"let g:rbpt_max = 16 | |
"let g:rbpt_loadcmd_toggle = 0 | |
" | |
"au VimEnter * RainbowParenthesesToggle | |
"au Syntax * RainbowParenthesesLoadRound | |
"au Syntax * RainbowParenthesesLoadSquare | |
"au Syntax * RainbowParenthesesLoadBraces | |
Bundle 'scrooloose/nerdtree' | |
" Use l to toggle display of whitespace | |
nmap l :set list! | |
" And set some nice chars to do it with | |
set listchars=tab:»\ ,eol:¬ | |
" automatically change window's cwd to file's dir | |
set autochdir | |
" I'm prefer spaces to tabs | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" more subtle popup colors | |
if has ('gui_running') | |
highlight Pmenu guibg=#cccccc gui=bold | |
endif | |
Bundle 'vim-colors-solarized' | |
set background=dark | |
colorscheme solarized | |
nnoremap E w:<CR>:!python % <CR> | |
Bundle 'bronson/vim-trailing-whitespace' | |
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif | |
Bundle 'fatih/vim-go' | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_structs = 1 | |
let g:go_highlight_operators = 1 | |
let g:go_highlight_build_constraints = 1 | |
au BufRead,BufNewFile *.go set filetype=go | |
Bundle 'klen/python-mode' | |
" Python-mode | |
" Activate rope | |
" Keys: | |
" K Show python docs | |
" Rope autocomplete | |
" g Rope goto definition | |
" d Rope show documentation | |
" f Rope find occurrences | |
" 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 = 0 | |
" 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 = '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 | |
let g:syntastic_python_checker_args='--ignore=E225' | |
let g:pymode_lint_ignore = "" | |
set fileencodings=ucs-bom,utf-8,sjis,default | |
Bundle 'majutsushi/tagbar' | |
nmap <F8> :TagbarToggle<CR> | |
let g:tagbar_type_go = { | |
\ 'ctagstype' : 'go', | |
\ 'kinds' : [ | |
\ 'p:package', | |
\ 'i:imports:1', | |
\ 'c:constants', | |
\ 'v:variables', | |
\ 't:types', | |
\ 'n:interfaces', | |
\ 'w:fields', | |
\ 'e:embedded', | |
\ 'm:methods', | |
\ 'r:constructor', | |
\ 'f:functions' | |
\ ], | |
\ 'sro' : '.', | |
\ 'kind2scope' : { | |
\ 't' : 'ctype', | |
\ 'n' : 'ntype' | |
\ }, | |
\ 'scope2kind' : { | |
\ 'ctype' : 't', | |
\ 'ntype' : 'n' | |
\ }, | |
\ 'ctagsbin' : 'gotags', | |
\ 'ctagsargs' : '-sort -silent' | |
\ } | |
Bundle 'moll/vim-node' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment