diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 58 |
1 files changed, 42 insertions, 16 deletions
@@ -234,34 +234,60 @@ nnoremap <C-n> :call NumberToggle()<cr> " ================== source ~/.vim/hicursorwords.vim -" ================== -" pathogen toolchain -" ================== -execute pathogen#infect() - -" ====================== -" YouCompleteMe settings -" ====================== -let g:ycm_autoclose_preview_window_after_completion = 1 +" ============================================================================ +" Plugins ==================================================================== +" ============================================================================ -" ==================== -" ansible-vim settings -" ==================== -" URL: git clone https://github.com/pearofducks/ansible-vim -let g:ansible_attribute_highlight = "ab" -let g:ansible_name_highlight = 'd' -let g:ansible_extra_keywords_highlight = 1 +highlight GitGutterAdd guifg=#009900 ctermfg=2 +highlight GitGutterChange guifg=#bbbb00 ctermfg=3 +highlight GitGutterDelete guifg=#ff2222 ctermfg=1 " ============ " ale settings " ============ +" must be before Vundle installation let g:ale_lint_on_text_changed = 'never' let g:ale_echo_msg_error_str = 'E' let g:ale_echo_msg_warning_str = 'W' let g:ale_echo_msg_format = '[%severity%] (%linter%) %s' +let g:ale_completion_enabled = 1 nmap <silent> <leader>k <Plug>(ale_previous_wrap) nmap <silent> <leader>j <Plug>(ale_next_wrap) +" ================= +" Plugin management +" ================= +" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim +" vim +PluginInstall +qall +filetype off +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +"---------------------------- +Plugin 'VundleVim/Vundle.vim' +Plugin 'w0rp/ale' +Plugin 'pearofducks/ansible-vim' +Plugin 'Yggdroot/indentLine' +Plugin 'itchyny/lightline.vim' +Plugin 'scrooloose/nerdcommenter' +Plugin 'scrooloose/nerdtree' +Plugin 'Xuyuanp/nerdtree-git-plugin' +Plugin 'airblade/vim-gitgutter' +Plugin 'dhruvasagar/vim-table-mode' +"---------------------------- +call vundle#end() +filetype plugin indent on + +" ==================== +" ansible-vim settings +" ==================== +let g:ansible_attribute_highlight = "ab" +let g:ansible_name_highlight = 'd' +let g:ansible_extra_keywords_highlight = 1 + +" ========== +" table mode +" ========== +let g:table_mode_corner = "|" " ================= " NERDTree settings |