From a0620f613529df80213623abde022b284f1ce54f Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 1 Oct 2023 17:15:12 -0400 Subject: .vim/vimrc: Update format programs Add horizontal syntax highlighting limit --- .vim/vimrc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 4ff20c2..ae2f235 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -50,6 +50,7 @@ set shortmess+=I " Disable startup message. set shortmess-=S " Count number of search result matches. set showtabline=0 " Disable tab bar. set updatetime=1500 " Set duration for cursor hold event. +set synmaxcol=500 " Maximum column in which to search for syntax items. set fillchars= " Set split window margin fill to none. set laststatus=0 " Disable status bar. set linespace=3 " Set line spaces. @@ -230,14 +231,13 @@ nnoremap ,awk :-1read $HOME/.vim/snippets/skeleton.awk "---------------Plugin Settings---------------" -let g:gundo_prefer_python3=1 " Use python3 to restore gundo functionality. -let g:netrw_banner=0 " Disable netrw banner. -let g:nnn#command = 'nnn -H' " Override default command. -let g:nnn#set_default_mappings = 0 " Disable default mappings. -let g:nnn#layout = 'new' " Opens the nnn window in a split. -let g:nnn#layout = { 'left': '~20%' } " Left 20% of the window. - -let g:fzf_layout = { 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 } } " Set fzf window layout +let g:gundo_prefer_python3=1 " Use python3 to restore gundo functionality. +let g:netrw_banner=0 " Disable netrw banner. +let g:nnn#command = 'nnn -H' " Override default command. +let g:nnn#set_default_mappings = 0 " Disable default mappings. +let g:nnn#layout = 'new' " Opens the nnn window in a split. +let g:nnn#layout = { 'left': '~20%' } " Left 20% of the window. +let g:fzf_layout = { 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 } } " Set fzf window layout, "-------------------Scripts-------------------" @@ -348,6 +348,8 @@ augroup AutoCommands " Selective formatting using visual select + gq. autocmd FileType nix set formatprg=nixfmt autocmd FileType sh set formatprg=shfmt\ - + autocmd FileType lua set formatprg=lua-format + autocmd FileType perl set formatprg=perltidy\ - autocmd FileType typescriptreact set formatprg=deno\ fmt\ - autocmd FileType typescript set formatprg=deno\ fmt\ - autocmd FileType elixir set formatprg=mix\ format\ - -- cgit v1.2.3