From: Jannik ZANDER Date: Thu, 19 Jul 2018 06:04:51 +0000 (+0200) Subject: Add validator.vim X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=ba22a2a0304cf5bdf4db93addee47a0475d7a323;p=dotfiles.git Add validator.vim --- diff --git a/.gitmodules b/.gitmodules index 6d55c66..580e03a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,6 @@ [submodule ".vim/pack/github/opt/completor.vim"] path = .vim/pack/github/opt/completor.vim url = https://github.com/maralla/completor.vim.git +[submodule ".vim/pack/github/opt/validator.vim"] + path = .vim/pack/github/opt/validator.vim + url = https://github.com/maralla/validator.vim.git diff --git a/.vim/pack/github/opt/validator.vim b/.vim/pack/github/opt/validator.vim new file mode 160000 index 0000000..531347a --- /dev/null +++ b/.vim/pack/github/opt/validator.vim @@ -0,0 +1 @@ +Subproject commit 531347abf30d52b8dde02be975e2f9c3cbe8dd4e diff --git a/.vim/vimrc b/.vim/vimrc index 9c958d3..a503ee9 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -25,6 +25,7 @@ set smartcase set showmatch set complete-=i set virtualedit=block +set pastetoggle=p if has('unnamedplus') set clipboard=unnamed,unnamedplus endif @@ -36,25 +37,23 @@ set display+=lastline set lazyredraw set number set relativenumber - set title set titlestring=%F " folding set foldmethod=syntax -set foldlevel=3 +set foldlevelstart=10 +set foldnestmax=10 set foldopen+=search set foldclose=all -"set foldcolumn=4 " keyboard -let mapleader = "," set backspace=indent,eol,start set ttimeoutlen=10 set winaltkeys=no set noerrorbells -set visualbell -set pastetoggle=p +set visualbell t_vb= +let mapleader = "," " command/status line set showmode @@ -71,8 +70,8 @@ set wildoptions=tagfile " buffers set hidden set autoread -set noautowrite -set noautowriteall +set autowrite +set autowriteall " temporary files silent !mkdir -p ~/.vim/undo @@ -146,9 +145,9 @@ let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#formatter = 'unique_tail_improved' " ALE -packadd! ale -let g:ale_enabled = 1 -let g:airline#extensions#ale#enabled = 1 +"packadd! ale +"let g:ale_enabled = 1 +"let g:airline#extensions#ale#enabled = 1 " Tagbar packadd! tagbar @@ -233,6 +232,13 @@ packadd supertab packadd completor.vim let g:completor_clang_binary = '/usr/bin/clang' +" validator +packadd validator.vim +let g:completor_clang_tidy_binary = '/usr/bin/run-clang-tidy' +let g:validator_c_checkers = ['clang-tidy'] +let g:validator_cpp_checkers = ['clang-tidy'] + + " General Mappings noremap noremap