]> git.zndr.dk Git - dotfiles.git/commitdiff
Add validator.vim
authorJannik ZANDER <jannikz@gmail.com>
Thu, 19 Jul 2018 06:04:51 +0000 (08:04 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Thu, 19 Jul 2018 06:04:51 +0000 (08:04 +0200)
.gitmodules
.vim/pack/github/opt/validator.vim [new submodule]
.vim/vimrc

index 6d55c663a01caab48224ecddcfbb512e8f37a28a..580e03a709574788eae16204301ff146f450ac24 100644 (file)
@@ -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 (submodule)
index 0000000..531347a
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 531347abf30d52b8dde02be975e2f9c3cbe8dd4e
index 9c958d3a5603a2a2e59d5a0b960942c8b43a8e52..a503ee90d8752f673ec7dc65eb79aac92b99b34e 100644 (file)
@@ -25,6 +25,7 @@ set smartcase
 set showmatch
 set complete-=i
 set virtualedit=block
+set pastetoggle=<leader>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=<leader>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 <c-h>                <c-w><c-h>
 noremap <c-j>                <c-w><c-j>