-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
91 lines (59 loc) · 2 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
set number
syntax on
set encoding=utf-8
set updatetime=300
" Give more space for displaying messages.
set cmdheight=2
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Some basic PSR code style rules
set tabstop=4 " Tab width
set softtabstop=4 " Soft tab width
set shiftwidth=4 " Shift width
set expandtab " Use spaces instead of tabs
set backspace=indent,eol,start
filetype plugin indent on
let g:pymode_python = 'python3'
function Open_term()
botright term
resize 7
endfunction
:command -nargs=0 Term exec Open_term()
"====== Plugins ========
call plug#begin('~/.vim/plugged')
Plug 'stephpy/vim-php-cs-fixer'
Plug 'vim-vdebug/vdebug'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dense-analysis/ale'
"Plug 'StanAngeloff/php.vim'
"Plugin 'editorconfig/editorconfig-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
Plug 'jlanzarotta/bufexplorer'
Plug 'morhetz/gruvbox'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
"====== gruvbox =====
autocmd vimenter * ++nested colorscheme gruvbox
set background=dark
"==== Air Line =====
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark'
"==== ALE =====
"for example with docker compose
"let g:ale_php_phpcs_executable='docker-compose exec --workdir /var/www/html/ wordpress ./vendor/bin/phpcs'
"let g:ale_php_php_cs_fixer_executable='docker-compose exec --workdir /var/www/html/ wordpress ./vendor/bin/php-cs-fixer'
let g:ale_php_phpcs_executable='./vendor/bin/phpcs'
let g:ale_php_php_cs_fixer_executable='./vendor/bin/php-cs-fixer'
let g:ale_fixers = {'php': ['php_cs_fixer']}
let g:ale_linters = {'php': ['phpcs']}
" Set this variable to 1 to fix files when you save them.
let g:ale_fix_on_save = 1
let g:ale_disable_lsp = 1
"let g:ale_completion_enabled = 1
"==== NERDTree ===
"Start NERDTree and leave the cursor in it.
autocmd VimEnter * NERDTree