-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
78 lines (78 loc) · 2.8 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set nocompatible
set expandtab
set smarttab
set autoindent
set smartindent
set shiftwidth=2
set softtabstop=2
set tabstop=2
set backspace=indent,eol,start
set spell spelllang=en_us
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
call pathogen#helptags()
syntax on
let g:solarized_termcolors=256
let g:solarized_termtrans=1
let g:solarized_visibility='high'
set background=dark
set laststatus=2
colorscheme solarized
filetype plugin indent on
let g:ale_completion_enabled=1
let g:airline#extensions#ale#enabled=1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
set statusline+=%l/%L
set statusline+=%{fugitive#statusline()}
set completeopt+=preview
let g:vebugger_leader='<Leader>d'
let g:jedi#use_tabs_not_buffers=1
let g:go_highlight_functions=1
let g:go_highlight_methods=1
let g:go_highlight_fields=1
let g:go_highlight_types=1
let g:go_highlight_operators=1
let g:go_highlight_build_constraints=1
let g:go_version_warning=0
let g:vim_markdown_folding_disabled=1
hi Search cterm=NONE ctermfg=grey ctermbg=red
hi clear SpellBad
hi SpellBad cterm=underline
hi clear SpellRare
hi SpellRare cterm=underline
hi clear SpellCap
hi SpellCap cterm=underline
hi clear SpellLocal
hi SpellLocal cterm=underline
map <C-t> :Tab block<CR>
map <C-n> :NERDTreeToggle<CR>
map <C-j> :%!python -m json.tool<CR>
map! <F2> <C-R>=strftime('%c')<CR>
if has("autocmd")
autocmd BufRead,BufNewFile *.pp set filetype=puppet
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
autocmd BufReadPost Jenkinsfile set syntax=groovy
autocmd BufRead,BufNewFile *.c set shiftwidth=4
if v:version > 703
autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif
endif
endif
silent !rm -rf ~/.vim/bundle/syntastic/ ~/.vim/bundle/vdebug/ ~/.vim/bundle/vim-javacomplete2/ > /dev/null 2>&1 || { echo -e >&2 "$(tput setaf 1)Failure:$(tput sgr0) Removing legacy plugins was unsuccessful"; }
silent !make -C ~/.vim/bundle/vimproc.vim/ > /dev/null 2>&1 || { echo -e >&2 "$(tput setaf 1)Failure:$(tput sgr0) Running make in ~/.vim/bundle/vimproc.vim/ was unsuccessful"; }
silent !command -v pylint > /dev/null 2>&1 || { echo -e >&2 "$(tput setaf 3)Warning:$(tput sgr0) pylint not installed\nInstall using 'python -m pip install pylint'"; }
if has('python3')
silent! python3 1
endif
if jedi#init_python()
function! s:jedi_auto_force_py_version() abort
let g:jedi#force_py_version = pyenv#python#get_internal_major_version()
endfunction
augroup vim-pyenv-custom-augroup
autocmd! *
autocmd User vim-pyenv-activate-post call s:jedi_auto_force_py_version()
autocmd User vim-pyenv-deactivate-post call s:jedi_auto_force_py_version()
augroup END
endif