├── .gitmodules ├── LICENSE ├── README.md ├── ftplugin └── javascript.vim ├── gvimrc ├── images ├── feature-1.png ├── feature-2.png ├── feature-3.png ├── feature-4.png ├── feature-5.png └── feature-6.png └── vimrc /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "bundle/drupal-snippets"] 2 | path = bundle/drupal-snippets 3 | url = git@github.com:technosophos/drupal-snippets.git 4 | [submodule "bundle/nerdcommenter"] 5 | path = bundle/nerdcommenter 6 | url = git@github.com:scrooloose/nerdcommenter.git 7 | [submodule "bundle/nerdtree"] 8 | path = bundle/nerdtree 9 | url = git@github.com:scrooloose/nerdtree.git 10 | [submodule "bundle/vim-airline"] 11 | path = bundle/vim-airline 12 | url = git@github.com:bling/vim-airline.git 13 | [submodule "bundle/vim-better-whitespace"] 14 | path = bundle/vim-better-whitespace 15 | url = git@github.com:ntpeters/vim-better-whitespace.git 16 | [submodule "bundle/vim-fugitive"] 17 | path = bundle/vim-fugitive 18 | url = git@github.com:tpope/vim-fugitive.git 19 | [submodule "bundle/vim-snippets"] 20 | path = bundle/vim-snippets 21 | url = git@github.com:honza/vim-snippets.git 22 | [submodule "bundle/vim-haml"] 23 | path = bundle/vim-haml 24 | url = git@github.com:tpope/vim-haml 25 | [submodule "bundle/vim-css-color"] 26 | path = bundle/vim-css-color 27 | url = git@github.com:ap/vim-css-color.git 28 | [submodule "bundle/vdebug"] 29 | path = bundle/vdebug 30 | url = git@github.com:joonty/vdebug 31 | [submodule "bundle/MatchTagAlways"] 32 | path = bundle/MatchTagAlways 33 | url = git@github.com:Valloric/MatchTagAlways.git 34 | [submodule "bundle/tagbar"] 35 | path = bundle/tagbar 36 | url = git@github.com:majutsushi/tagbar.git 37 | [submodule "bundle/ctrlp.vim"] 38 | path = bundle/ctrlp.vim 39 | url = git@github.com:ctrlpvim/ctrlp.vim.git 40 | [submodule "bundle/vim-surround"] 41 | path = bundle/vim-surround 42 | url = git@github.com:tpope/vim-surround.git 43 | [submodule "bundle/auto-pairs"] 44 | path = bundle/auto-pairs 45 | url = git@github.com:jiangmiao/auto-pairs.git 46 | [submodule "bundle/vim-jsx"] 47 | path = bundle/vim-jsx 48 | url = https://github.com/mxw/vim-jsx.git 49 | [submodule "bundle/vim-javascript"] 50 | path = bundle/vim-javascript 51 | url = https://github.com/pangloss/vim-javascript.git 52 | [submodule "bundle/vim-pug"] 53 | path = bundle/vim-pug 54 | url = https://github.com/digitaltoad/vim-pug.git 55 | [submodule "bundle/vim-localvimrc"] 56 | path = bundle/vim-localvimrc 57 | url = https://github.com/embear/vim-localvimrc 58 | [submodule "bundle/vim-nerdtree-tabs"] 59 | path = bundle/vim-nerdtree-tabs 60 | url = https://github.com/jistr/vim-nerdtree-tabs.git 61 | [submodule "bundle/ack.vim"] 62 | path = bundle/ack.vim 63 | url = https://github.com/mileszs/ack.vim 64 | [submodule "bundle/ale"] 65 | path = bundle/ale 66 | url = https://github.com/w0rp/ale.git 67 | [submodule "bundle/ultisnips"] 68 | path = bundle/ultisnips 69 | url = https://github.com/SirVer/ultisnips.git 70 | [submodule "bundle/sniphpets"] 71 | path = bundle/sniphpets 72 | url = https://github.com/sniphpets/sniphpets 73 | [submodule "bundle/sniphpets-common"] 74 | path = bundle/sniphpets-common 75 | url = https://github.com/sniphpets/sniphpets-common 76 | [submodule "bundle/sniphpets-phpunit"] 77 | path = bundle/sniphpets-phpunit 78 | url = https://github.com/sniphpets/sniphpets-phpunit 79 | [submodule "bundle/vim-twig"] 80 | path = bundle/vim-twig 81 | url = https://github.com/lumiliet/vim-twig.git 82 | [submodule "bundle/vim-ctrlp-autoignore"] 83 | path = bundle/vim-ctrlp-autoignore 84 | url = https://github.com/ludovicchabant/vim-ctrlp-autoignore.git 85 | [submodule "bundle/YouCompleteMe"] 86 | path = bundle/YouCompleteMe 87 | url = https://github.com/Valloric/YouCompleteMe.git 88 | [submodule "bundle/phpcomplete.vim"] 89 | path = bundle/phpcomplete.vim 90 | url = https://github.com/shawncplus/phpcomplete.vim.git 91 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Subhojit Paul 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vim plugins and settings for Drupal development 2 | 3 | Vim plugins and settings that will ease writing Drupal code in Vim. Other than 4 | Drupal, these settings will also help you writing **PHP** and **JavaScript**. 5 | The settings will also work in graphical Vim (recommended). 6 | 7 | - [Installation](#installation) 8 | - [Features](#features) 9 | - [Autocomplete](#autocomplete) 10 | - [Asynchronous syntax checker using](#asynchronous-syntax-checker-using-w0rpale) 11 | - [List of functions and variables](#list-of-functions-and-variables) 12 | - [View files and directories in project docroot](#view-files-and-directories-in-project-docroot) 13 | 14 | ## Installation 15 | ``` 16 | 1. cd 17 | 2. mv ~/.vim ~/.vim-bak // If you have vim settings. Else, proceed to next step 18 | 3. git clone git@github.com:subhojit777/drupal-vim.git ~/.vim 19 | 4. git clone git@github.com:VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 20 | 5. cp ~/.vim/vimrc ~/.vimrc 21 | 6. cp ~/.vim/gvimrc ~/.gvimrc // If you have graphical vim installed 22 | 7. mkdir ~/.vimsessions 23 | 8. mkdir ~/vimtmp 24 | 9. `sudo apt-get install exuberant-ctags` // Install exuberant-ctags on Ubuntu/Debian 25 | 10. `brew install ctags` // Install exuberant-ctags on OSX (Make sure you have [Homebrew](https://brew.sh/) installed) 26 | 11. vim +BundleInstall +qall 27 | ``` 28 | 29 | And you are good to go! 30 | 31 | ## Features 32 | ### Autocomplete 33 | ![Autocomplete variables](images/feature-1.png "Autocomplete variables") 34 | 35 | ![Autocomplete syntax](images/feature-2.png "Autocomplete syntax") 36 | 37 | *Navigate* through the list using `` (next), `` (previous). 38 | 39 | ![Autocomplete syntax (after pressing ctrl-k)](images/feature-3.png "Autocomplete syntax (press `ctrl-k`)") 40 | 41 | *Expand* it by pressing `ctrl-k` key. 42 | 43 | #### Note 44 | [`Valloric/YouCompleteMe`](https://github.com/Valloric/YouCompleteMe), with [`shawncplus/phpcomplete.vim`](https://github.com/shawncplus/phpcomplete.vim) is now used for auto-complete. Therefore, you have to generate the tags. 45 | Run the following command from inside the root of your project. 46 | 47 | ```sh 48 | ctags -R --languages=php 49 | ``` 50 | 51 | ### Asynchronous syntax checker using [`w0rp/ale`](https://github.com/w0rp/ale) 52 | ![Asynchronous syntax checker](images/feature-4.png "Triggered on file save") 53 | 54 | This is *triggered* on *file save*. 55 | 56 | ### List of functions and variables 57 | ![Functions and variables](images/feature-5.png "Trigger it using `tt`") 58 | 59 | *Trigger* it using *`tt`*. 60 | 61 | ### View files and directories in project docroot 62 | ![Files and directories](images/feature-6.png "Trigger it using `ntt`") 63 | 64 | *Trigger* it using *`ntt`*. 65 | 66 | This also uses [`jistr/vim-nerdtree-tabs`](https://github.com/jistr/vim-nerdtree-tabs), so the state is maintained across tabs. 67 | 68 | And many **[other features](http://subhojit777.in/use-vim-as-ide-for-drupal-development)**. 69 | 70 | **Feel free to create issues [here](https://github.com/subhojit777/drupal-vim/issues/new) if you are having problem during the setup.** 71 | 72 | **Pull requests are welcome for bugs/new features :)** 73 | 74 | Thanks for flying Vim :) 75 | -------------------------------------------------------------------------------- /ftplugin/javascript.vim: -------------------------------------------------------------------------------- 1 | UltiSnipsAddFiletypes javascript-node 2 | -------------------------------------------------------------------------------- /gvimrc: -------------------------------------------------------------------------------- 1 | if has("gui_running") 2 | " GUI is running or is about to start. 3 | " Maximize gvim window. 4 | set lines=999 columns=999 5 | endif 6 | 7 | set guitablabel=%t\ %M " Show filename and modifier indicator 8 | set guioptions-=T " Do not show the toolbar in the GUI (only the menu) 9 | set background=dark " Default background dark 10 | 11 | " Default colorscheme 12 | augroup colorscheme 13 | au! BufWinEnter * :colorscheme solarized 14 | augroup END 15 | -------------------------------------------------------------------------------- /images/feature-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subhojit777/drupal-vim/79324a74898c07c35131c120c180b841c91c5437/images/feature-1.png -------------------------------------------------------------------------------- /images/feature-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subhojit777/drupal-vim/79324a74898c07c35131c120c180b841c91c5437/images/feature-2.png -------------------------------------------------------------------------------- /images/feature-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subhojit777/drupal-vim/79324a74898c07c35131c120c180b841c91c5437/images/feature-3.png -------------------------------------------------------------------------------- /images/feature-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subhojit777/drupal-vim/79324a74898c07c35131c120c180b841c91c5437/images/feature-4.png -------------------------------------------------------------------------------- /images/feature-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subhojit777/drupal-vim/79324a74898c07c35131c120c180b841c91c5437/images/feature-5.png -------------------------------------------------------------------------------- /images/feature-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subhojit777/drupal-vim/79324a74898c07c35131c120c180b841c91c5437/images/feature-6.png -------------------------------------------------------------------------------- /vimrc: -------------------------------------------------------------------------------- 1 | if has('python3') 2 | silent! python3 1 3 | endif 4 | 5 | set nocompatible 6 | filetype off 7 | set rtp+=~/.vim/bundle/Vundle.vim 8 | call vundle#begin() 9 | 10 | Plugin 'gmarik/Vundle.vim' 11 | Plugin 'gmarik/vundle' 12 | Plugin 'scrooloose/nerdtree' 13 | Plugin 'ctrlpvim/ctrlp.vim' 14 | Plugin 'scrooloose/nerdcommenter' 15 | Plugin 'Valloric/YouCompleteMe' 16 | Plugin 'bling/vim-airline' 17 | Plugin 'technosophos/drupal-snippets' 18 | Plugin 'sirver/ultisnips' 19 | Plugin 'honza/vim-snippets' 20 | Plugin 'sniphpets/sniphpets' 21 | Plugin 'sniphpets/sniphpets-common' 22 | Plugin 'sniphpets/sniphpets-phpunit' 23 | Plugin 'dahu/SearchParty' 24 | Plugin 'xolox/vim-misc' 25 | Plugin 'xolox/vim-session' 26 | Plugin 'flazz/vim-colorschemes' 27 | Plugin 'tpope/vim-fugitive' 28 | Plugin 'ntpeters/vim-better-whitespace' 29 | Plugin 'lumiliet/vim-twig' 30 | Plugin 'joonty/vdebug' 31 | Plugin 'tpope/vim-haml' 32 | Plugin 'ap/vim-css-color' 33 | Plugin 'valloric/MatchTagAlways' 34 | Plugin 'majutsushi/tagbar' 35 | Plugin 'tpope/vim-surround' 36 | Plugin 'jiangmiao/auto-pairs' 37 | Plugin 'pangloss/vim-javascript' 38 | Plugin 'mxw/vim-jsx' 39 | Plugin 'digitaltoad/vim-pug' 40 | Plugin 'embear/vim-localvimrc' 41 | Plugin 'jistr/vim-nerdtree-tabs' 42 | Plugin 'mileszs/ack.vim' 43 | Plugin 'w0rp/ale' 44 | Plugin 'ludovicchabant/vim-ctrlp-autoignore' 45 | Plugin 'shawncplus/phpcomplete.vim' 46 | 47 | call vundle#end() " required 48 | filetype plugin indent on " required 49 | 50 | " --------------------------- 51 | " Default Vim settings begin 52 | " --------------------------- 53 | " Vim settings 54 | set mouse=a " Enable mouse 55 | set number " Show line numbers 56 | set showmatch " Show matching brackets 57 | set smartcase " Do smart case matching 58 | set smarttab " Enable smarttab 59 | set incsearch " Incremental search 60 | set noswapfile " Do not create swp file 61 | set cursorline " highlight current line 62 | set laststatus=2 " Airline 63 | set backspace=indent,eol,start " Backspace for dummies 64 | set ignorecase " Case insensitive search 65 | set smartcase " Case sensitive when uc present 66 | set wildmenu " Show list instead of just completing 67 | set wildmode=list:longest,full " Command completion, list matches, then longest common part, then all. 68 | set listchars=tab:›\ ,trail:•,extends:#,nbsp:. " Highlight problematic whitespace 69 | set fileformat=unix " UNIX fileformat 70 | set endofline " Newline at the end of file 71 | set autoread " Autoreload changes to file 72 | set noundofile " Do not create undo files 73 | set undodir=~/vimtmp " Store undo files in a directory 74 | set tabstop=2 " Two space indentation 75 | set shiftwidth=2 " Number of space during (auto)indent 76 | set expandtab " Use spaces for tabs 77 | set autoindent " Copies indent from current line to next line 78 | set smartindent " Copies indent from current line to next line 79 | set guifont=Monaco:h16 " Default font settings 80 | set background=dark " Defaults to dark background 81 | 82 | " TODO figure out why we have to set this explicitly 83 | autocmd FileType * setlocal smartindent 84 | autocmd FileType * setlocal autoindent 85 | 86 | augroup filetypedetect 87 | " Drupal files should be identified as PHP files. 88 | au! BufRead,BufNewFile *.module setfiletype php 89 | au! BufRead,BufNewFile *.install setfiletype php 90 | au! BufRead,BufNewFile *.test setfiletype php 91 | au! BufRead,BufNewFile *.inc setfiletype php 92 | au! BufRead,BufNewFile *.profile setfiletype php 93 | au! BufRead,BufNewFile *.view setfiletype php 94 | au! BufRead,BufNewFile *.theme setfiletype php 95 | 96 | " markdown syntax highlighting 97 | au! BufRead,BufNewFile *.md set filetype=markdown 98 | augroup END 99 | 100 | " remove trailing whitespace on save 101 | augroup removetrailingspace 102 | au! BufWritePre * :%s/\s\+$//e 103 | augroup END 104 | 105 | " tab navigation like firefox 106 | nnoremap :tabprevious 107 | nnoremap :tabnext 108 | nnoremap :tabnew 109 | nnoremap 1gt 110 | nnoremap 2gt 111 | nnoremap 3gt 112 | nnoremap 4gt 113 | nnoremap 5gt 114 | nnoremap 6gt 115 | nnoremap 7gt 116 | nnoremap 8gt 117 | nnoremap :tablast 118 | inoremap :tabprevious 119 | inoremap :tabnext 120 | inoremap :tabnew 121 | inoremap 1gt 122 | inoremap 2gt 123 | inoremap 3gt 124 | inoremap 4gt 125 | inoremap 5gt 126 | inoremap 6gt 127 | inoremap 7gt 128 | inoremap 8gt 129 | inoremap :tablast 130 | " for Mac 131 | nnoremap 1gt 132 | nnoremap 2gt 133 | nnoremap 3gt 134 | nnoremap 4gt 135 | nnoremap 5gt 136 | nnoremap 6gt 137 | nnoremap 7gt 138 | nnoremap 8gt 139 | nnoremap :tablast 140 | inoremap 1gt 141 | inoremap 2gt 142 | inoremap 3gt 143 | inoremap 4gt 144 | inoremap 5gt 145 | inoremap 6gt 146 | inoremap 7gt 147 | inoremap 8gt 148 | inoremap :tablast 149 | 150 | " easy indentation 151 | nnoremap a 152 | nnoremap a 153 | vnoremap :>gv 154 | vnoremap :<gv 155 | 156 | " color column 157 | if exists('+colorcolumn') 158 | set colorcolumn=80 159 | else 160 | au! BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) 161 | endif 162 | 163 | " Move tabs with alt + left|right (Also makes sure that this keymap is set in 164 | " the end) 165 | autocmd VimEnter * nnoremap :execute 'silent! tabmove ' . (tabpagenr()-2) 166 | autocmd VimEnter * nnoremap :execute 'silent! tabmove ' . (tabpagenr()+1) 167 | 168 | " Store backups in separate directory 169 | " Make sure you do `mkdir ~/vimtmp` before using this setting 170 | set backupdir=~/vimtmp 171 | 172 | " Instead of reverting the cursor to the last position in the buffer, we 173 | " set it to the first line when editing a git commit message 174 | au! FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0]) 175 | 176 | " Shortcut to open quickfix list 177 | nnoremap q :copen 178 | 179 | " --------------------------- 180 | " Default Vim settings end 181 | " --------------------------- 182 | 183 | " --------------------------- 184 | " Plugin settings begin 185 | " --------------------------- 186 | 187 | " Tagbar settings 188 | nnoremap tt :TagbarToggle 189 | 190 | " nerdtree/vim-nerdtree-tabs settings 191 | let g:nerdtree_tabs_open_on_gui_startup=0 192 | nnoremap ntt :NERDTreeTabsToggle 193 | nnoremap ntf :NERDTreeFind 194 | let NERDTreeShowHidden=1 195 | 196 | " ctrlp settings 197 | let g:ctrlp_by_filename = 1 198 | let g:ctrlp_match_window = 'bottom,order:ttb,min:1,max:20,results:20' 199 | let g:ctrlp_open_new_file = 't' 200 | let g:ctrlp_custom_ignore = { 201 | \ 'dir': '\v[\/]\.(git|hg|svn)$', 202 | \ 'file': '\v\.(jpg|jpeg|png|gif)$', 203 | \ } 204 | let g:ctrlp_mruf_case_sensitive = 0 205 | " ignore files in .gitignore 206 | let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] 207 | let g:ctrlp_working_path_mode = 0 208 | let g:ctrlp_max_files = 0 209 | let g:ctrlp_switch_buffer = 'et' 210 | let g:ctrlp_regexp = 1 211 | let g:ctrlp_extensions = ['autoignore'] 212 | 213 | " Enable omni completion. 214 | augroup onmicompletion 215 | au! FileType css setlocal omnifunc=csscomplete#CompleteCSS 216 | au! FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS 217 | au! FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags 218 | au! FileType php setlocal omnifunc=phpcomplete#CompletePHP 219 | augroup END 220 | 221 | " vim-session settings 222 | let g:session_directory = "~/.vimsessions" " Store vim sessions in another location. Make sure you do `mkdir ~/.vimsessions` before using this setting 223 | let g:session_default_to_last = 1 " Restore last session 224 | let g:session_autoload = 'yes' " Restore last session 225 | let g:session_autosave = 'yes' " Session will be saved manually 226 | let g:session_default_overwrite = 0 " Do not override default session 227 | nnoremap :OpenSession " sublime text like project switch 228 | 229 | " vim-airline settings 230 | let g:airline#extensions#branch#enabled = 1 231 | let g:airline#extensions#whitespace#enabled = 1 232 | let g:airline#extensions#whitespace#symbol = '!' 233 | let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing' ] 234 | if !exists('g:airline_symbols') 235 | let g:airline_symbols = {} 236 | endif 237 | let g:airline_left_sep = '▶' 238 | let g:airline_right_sep = '◀' 239 | let g:airline_symbols.linenr = '␤' 240 | let g:airline_symbols.branch = '⎇' 241 | let g:airline_symbols.paste = 'ρ' 242 | 243 | " vdebug settings 244 | " If you are using VM, make sure you have the following settings: 245 | " - If your VM file path is in sync with your host path, you have to configure 246 | " `path_maps` like this: 247 | " 'path_maps': { 248 | " '': '', 249 | " '': '', 250 | " } 251 | " Thanks to https://github.com/AshishThakur 252 | " ----------------------------------------------------------------------------- 253 | let g:vdebug_options= { 254 | \ 'break_on_open': 1, 255 | \ 'debug_file_level': 2, 256 | \ 'debug_file': '/tmp/vdebug.log', 257 | \ 'path_maps': { 258 | \ '/var/www/drupalvm': '/var/www/drupalvm', 259 | \ }, 260 | \ 'idekey': 'vdebug', 261 | \} 262 | nnoremap :BreakpointRemove * 263 | inoremap :BreakpointRemove * 264 | 265 | " MatchTagAlways settings 266 | " enable match tags in php template files 267 | let g:mta_filetypes = { 268 | \ 'html' : 1, 269 | \ 'xhtml' : 1, 270 | \ 'xml' : 1, 271 | \ 'jinja' : 1, 272 | \ 'php' : 1, 273 | \} 274 | 275 | " ack.vim settings 276 | let g:ackhighlight = 1 277 | let g:ack_default_options = " --ignore-dir=vendor" 278 | nnoremap a :Ack! 279 | nnoremap K :Ack! "\b\b":cw " bind K to grep word under cursor 280 | 281 | " The Silver Searcher + mileszs/ack.vim 282 | if executable('ag') 283 | let g:ackprg = 'ag --vimgrep' 284 | endif 285 | 286 | " embear/vim-localvimrc settings 287 | let g:localvimrc_ask=0 288 | 289 | " ale settings 290 | let g:ale_lint_on_save = 1 291 | let g:ale_lint_on_text_changed = 0 292 | let g:ale_lint_on_enter = 0 293 | let g:ale_open_list = 1 294 | let g:ale_set_loclist = 0 295 | let g:ale_set_quickfix = 1 296 | let g:ale_php_phpcs_standard = 'Drupal' " See https://www.drupal.org/node/1419988 297 | let g:ale_linters = { 298 | \ 'php': ['php', 'phpcs'], 299 | \ 'javascript': [], 300 | \} 301 | nmap (ale_previous_wrap) 302 | nmap (ale_next_wrap) 303 | 304 | " ultisnips settings 305 | let g:UltiSnipsExpandTrigger="" 306 | let g:UltiSnipsJumpForwardTrigger="" 307 | let g:UltiSnipsJumpBackwardTrigger="" 308 | 309 | " Default colorscheme 310 | augroup colorscheme 311 | au! BufWinEnter * :colorscheme solarized 312 | augroup END 313 | 314 | " vim-fugitive settings 315 | cnoreabbrev git Git 316 | 317 | " --------------------------- 318 | " Plugin settings end 319 | " --------------------------- 320 | 321 | " End of vimrc-install additions. 322 | source $VIMRUNTIME/vimrc_example.vim 323 | --------------------------------------------------------------------------------