aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-28 20:16:24 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-28 20:16:24 +0200
commit08737a0ccf016dbc17b0ca67aeeb9004de6a340b (patch)
treee32029829d15b0d7ff044558fe697dadf2543915
parent57416c54cd66a89f2f2cde3e8e4ad17b101d6aa6 (diff)
downloaddotfiles-08737a0ccf016dbc17b0ca67aeeb9004de6a340b.tar.gz
vim completion and linting with ALE
-rw-r--r--.gitmodules3
m---------.vim/bundle/ale0
-rw-r--r--.vim/vimrc25
3 files changed, 25 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules
index 0094b27..da07566 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -34,3 +34,6 @@
[submodule ".vim/bundle/rainbow"]
path = .vim/bundle/rainbow
url = https://github.com/luochen1990/rainbow
+[submodule ".vim/bundle/ale"]
+ path = .vim/bundle/ale
+ url = https://github.com/dense-analysis/ale.git
diff --git a/.vim/bundle/ale b/.vim/bundle/ale
new file mode 160000
+Subproject 1b08791228f5aca4545a3fba6699b29a003028f
diff --git a/.vim/vimrc b/.vim/vimrc
index 4de9a5b..0769d10 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -5,20 +5,40 @@ runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect('bundle-active/{}')
set nocompatible
+
+" Tabs
+set tabstop=8
+set softtabstop=8
+set shiftwidth=8
+set noexpandtab
+
"Disable bell
set vb
set t_vb=
set ttimeoutlen=10
+
+" Flashy statusline
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#whitespace#enabled = 1
+let g:airline#extensions#ale#enabled = 1
let g:airline_powerline_fonts = 1
+" Completor config
let g:completor_clang_binary = '/usr/bin/clang'
+" Enable colored brackets
let g:rainbow_active = 1
+" ALE config
+let g:ale_completion_enabled = 1
+let g:ale_set_highlights = 0 "Highlights are annoying
+let g:ale_set_signs = 1
+"let g:ale_virtualtext_cursor = 1 " Only use one of the following
+let g:ale_cursor_detail = 1
+let g:ale_close_preview_on_insert = 1
+
"All things cursor
set guicursor+=a:blinkon0 "disable blinking
if &term =~ "xterm\\|rxvt"
@@ -57,7 +77,7 @@ filetype plugin indent on
set nu rnu
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
-set foldmethod=syntax
+"set foldmethod=syntax
" ==============
" SHORTCUTS
@@ -102,10 +122,9 @@ inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
" completor
-
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
-inoremap <expr> <Tab> Tab_Or_Complete()
+"inoremap <expr> <Tab> Tab_Or_Complete()
" ===========
" COMMANDS