From 7f64414663b9c45d79f0648c0f220aeafb77b076 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Sun, 31 Dec 2017 09:47:26 -0500 Subject: [PATCH] Update VIM's listchars, add tabular plugin, and try to make J nicer --- home/.config/nvim/init.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 7e18fd0..1d2242e 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -30,6 +30,7 @@ Plug 'airblade/vim-gitgutter' Plug 'bling/vim-airline' Plug 'bronson/vim-trailing-whitespace' Plug 'fatih/vim-go', { 'do': ':exec GoPostUpdate()' } +Plug 'godlygeek/tabular' Plug 'jbgutierrez/vim-babel' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' } Plug 'majutsushi/tagbar' @@ -64,7 +65,7 @@ let g:airline#extensions#tabline#left_alt_sep = '|' let g:airline#extensions#whitespace#mixed_indent_algo = 1 let g:airline_powerline_fonts = 1 set list " Show tabs -set listchars=tab:\|\ " Show tabs by using the pipe symbol +set listchars=tab:\|\ ,trail:ยท " Show whitestape by using the pipe symbol and dots set tabstop=4 " Tabs look like 4 spaces set softtabstop=0 noexpandtab " Tabs look like 4 spaces set shiftwidth=4 " Tabs look like 4 spaces @@ -74,6 +75,11 @@ let g:tagbar_left = 1 " Make tagbar appear on the left autocmd CompleteDone * pclose " Remove scratchpad after selection set mouse= " Disable mouse +" make J work with docblocks and such (if possible) +if v:version > 703 || v:version == 703 && has('patch541') + set formatoptions+=j +endif + if getcwd() =~ '/repos/cuda' " codesniff files let g:ale_php_phpcs_standard=''.$HOME.'/repos/cuda/Cuda-PHP-Code-Standards/PHP_CodeSniffer/Barracuda'