-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·99 lines (83 loc) · 2.67 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
" -------- Encoding UTF-8 -------- "
scriptencoding utf-8
set encoding=utf-8
" ----- Vundle plugin with plugins ----- "
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" - Import Plugins - "
let vim_plugins_file=$HOME.'/.vim_plugins'
if filereadable(vim_plugins_file)
source ~/.vim_plugins
endif
call vundle#end()
filetype plugin indent on
" --- end of Vundle plugin --- "
set nocompatible
set cursorline
set tabstop=4
set shiftwidth=4
set ignorecase
set expandtab
set smartcase
set undofile " keep an undo file (undo changes after closing)
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" --- nerdtree configuration --- "
let g:nerdtree_tabs_open_on_console_startup=0
let g:nerdtree_tabs_focus_on_files=1
set number
set list listchars=tab:→\ ,trail:·
set backupdir=$HOME/.vim/backup
set nobackup
set undodir=$HOME/.vim/undo
set undolevels=1000
set undoreload=10000
map <C-n> :NERDTreeToggle<CR>
map <F3> :noh<CR>
map <F4> :UnusedImports<CR>
map <C-Tab> :bnext<cr>
map <C-S-Tab> :bprevious<cr>
let g:airline#extensions#ale#enabled = 1
set statusline+=%#warningmsg#
set statusline+=%*
let vimproj=$HOME.'/.vim/bundle/vim-project'
let projects_list_file=$HOME.'/.vimrc_projects'
if isdirectory(vimproj) && filereadable(projects_list_file)
set rtp+=~/.vim/bundle/vim-project/
call project#rc("~/work")
source ~/.vimrc_projects
let radon_always_on
let g:project_use_nerdtree = 1
endif
" syntstic (syntax checker)
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:pymode_lint_on_write = 1
let g:syntastic_python_checkers = ['flake8', 'pep8']
set runtimepath^=~/.vim/bundle/ctrlp.vim
autocmd Filetype ruby setlocal ts=2 sw=2 expandtab
autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode()
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
hi CursorLine cterm=NONE ctermbg=black
if exists("jedi#init_python")
if jedi#init_python()
function! s:jedi_auto_force_py_version() abort
let major_version = pyenv#python#get_internal_major_version()
call jedi#force_py_version(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
endif
syntax enable
filetype plugin indent on