From 08737a0ccf016dbc17b0ca67aeeb9004de6a340b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 28 May 2021 20:16:24 +0200 Subject: vim completion and linting with ALE --- .gitmodules | 3 +++ .vim/bundle/ale | 1 + .vim/vimrc | 25 ++++++++++++++++++++++--- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 160000 .vim/bundle/ale 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 index 0000000..1b08791 --- /dev/null +++ b/.vim/bundle/ale @@ -0,0 +1 @@ +Subproject commit 1b08791228f5aca4545a3fba6699b29a003028fe 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 { {}O inoremap {; {};O " completor - inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" -inoremap Tab_Or_Complete() +"inoremap Tab_Or_Complete() " =========== " COMMANDS -- cgit v1.2.3