-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
95 lines (73 loc) · 2.47 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
execute pathogen#infect()
syntax on
colorscheme solarized
let g:airline_powerline_fonts = 1
set number
set incsearch
set hlsearch
set laststatus=2
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
autocmd VimEnter * NERDTree
" Automatically opens NERDTree
" autocmd VimEnter * wincmd p
" Automatically enter the context of the editor rather than NERDTree
" Comment this line if you want to start out in NERDTree
"
let NERDTreeShowHidden=1
" Makes NERDTree show hidden files (e.g. hidden files)
set backspace=indent,eol,start
" This allows you you use backspace like a normal text editor
" Vim does some wierd stuff with backspaces
" https://vi.stackexchange.com/questions/2162/why-doesnt-the-backspace-key-work-in-insert-mode
" ===================
" Neo Complete
" ===================
let g:neocomplete#enable_at_startup = 1
" Enable neocomplete.
let g:neocomplete#enable_smart_case = 1
" use smart case
let g:neocomplete#sources#syntax#min_keyword_length = 3
" Set minimum syntax keyword length.
" ===================
" Fuzzy searching
" ===================
set rtp+=/usr/local/opt/fzf
" If installed using Homebrew
nnoremap <c-p> :FZF<CR>
" Fuzzy searching comand shortcut (ctrl + p)
" ====================
" Vdebug
" ====================
" Go to https://github.com/joonty/vdebug for more information
" let g:vdebug_options = {
" \ 'path_maps': {
" \ "/vagrant/magento/": "/var/www/virtual/Operations-Development/boxes/IndustryWest-IndustryWest/sync/magento/",
" \ },
" \}
" You can also run commands inside Vim if all else fails:
" let g:vdebug_options['path_maps'] = {"/vagrant/magento":"/var/www/virtual/Operations-Development/boxes/homewetbar/sync/magento"}
" Sets up path maps for debugging using Vdebug with vagrant
" First param is the Vagrant path to your project folder, the second is for
" the path to the same project on your host (not the VM)
" ====================
" ALE Configs
" ====================
let g:ale_completion_enabled = 1
" Enable completion where available.
let g:ale_fixers = {
\ 'javascript': ['flow','eslint'],
\ 'php': ['php_cs_fixer', 'phpcbf'],
\}
" Put this in vimrc or a plugin file of your own.
" After this is configured, :ALEFix will try and fix your code
" ====================
" Custom Mappings
" ====================
" Map NERDTreeFind to shift + f
noremap <S-f> :NERDTreeFind<CR>