summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <robin.oburka@nic.cz> 2019-03-11 12:56:00 +0100
committerGravatar Robin Obůrka <robin.oburka@nic.cz> 2019-03-11 12:56:19 +0100
commit83406190abb9b8f59ce5a275b04a898e2f7fdec1 (patch)
treeb6ea32e607ee416aa9a2130a7714c009cc65880d /.vimrc
parentAdd table mode plugin (diff)
downloadvim_sync-83406190abb9b8f59ce5a275b04a898e2f7fdec1.tar.xz
Change plugin manager from pathogen to vundle
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc58
1 files changed, 42 insertions, 16 deletions
diff --git a/.vimrc b/.vimrc
index 9d6cd76..c98899b 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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