" Removed from init.vim until plugins referenced here are enabled " html " for html files, 2 spaces autocmd Filetype html setlocal ts=2 sw=2 expandtab " javascript let g:javascript_enable_domhtmlcss = 1 " vim-javascript augroup vimrc-javascript autocmd! autocmd FileType javascript setl tabstop=4|setl shiftwidth=4|setl expandtab softtabstop=4 augroup END " lua " php " Phpactor plugin " Include use statement nmap u :call phpactor#UseAdd() " Invoke the context menu nmap mm :call phpactor#ContextMenu() " Invoke the navigation menu nmap nn :call phpactor#Navigate() " Goto definition of class or class member under the cursor nmap oo :call phpactor#GotoDefinition() nmap oh :call phpactor#GotoDefinition('hsplit') nmap ov :call phpactor#GotoDefinition('vsplit') nmap ot :call phpactor#GotoDefinition('tabnew') " Show brief information about the symbol under the cursor nmap K :call phpactor#Hover() " Transform the classes in the current file nmap tt :call phpactor#Transform() " Generate a new class (replacing the current file) nmap cc :call phpactor#ClassNew() " Extract expression (normal mode) nmap ee :call phpactor#ExtractExpression(v:false) " Extract expression from selection vmap ee :call phpactor#ExtractExpression(v:true) " Extract method from selection vmap em :call phpactor#ExtractMethod() " python " vim-python augroup vimrc-python autocmd! autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=8 colorcolumn=79 \ formatoptions+=croq softtabstop=4 \ cinwords=if,elif,else,for,while,try,except,finally,def,class,with augroup END " jedi-vim let g:jedi#popup_on_dot = 0 let g:jedi#goto_assignments_command = "g" let g:jedi#goto_definitions_command = "d" let g:jedi#documentation_command = "K" let g:jedi#usages_command = "n" let g:jedi#rename_command = "r" let g:jedi#show_call_signatures = "0" let g:jedi#completions_command = "" let g:jedi#smart_auto_mappings = 0 " ale :call extend(g:ale_linters, { \'python': ['flake8'], }) " vim-airline let g:airline#extensions#virtualenv#enabled = 1 " Syntax highlight let python_highlight_all = 1