From 405b667c82259aee5fe8174079f409c873f4276a Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 26 Oct 2022 21:18:10 +0200 Subject: [PATCH 01/16] install.sh: Update MANPAGER info --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d50c6d9..4afa515 100755 --- a/install.sh +++ b/install.sh @@ -83,7 +83,7 @@ start the plugin provided colorscheme is not available yet. Add this line to your shell configuration, e.g., ~/.profile, to use vim as man pager: - export MANPAGER=\"view -c MANPAGER -\" + export MANPAGER=\"vi -c ASMANPAGER -\" EOF } -- 2.30.2 From b4c136a824911e10333920ec49e3ca600426dbb3 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 27 Oct 2022 23:35:24 +0200 Subject: [PATCH 02/16] plugins: Leap only for neovim --- plugins-noroot.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins-noroot.vim b/plugins-noroot.vim index 699f43e..e01f702 100644 --- a/plugins-noroot.vim +++ b/plugins-noroot.vim @@ -29,7 +29,6 @@ Plug 'vim-scripts/loremipsum', {'on': 'Loremipsum'} Plug 'ggandor/leap.nvim' - function PluginsNorootConfig() let g:localvimrc_persistent = 1 @@ -64,7 +63,9 @@ function PluginsNorootConfig() " Allow for reflow of bullet paragraphs let g:vim_markdown_auto_insert_bullets = 0 + if has('nvim-0.5') lua < Date: Thu, 27 Oct 2022 23:35:42 +0200 Subject: [PATCH 03/16] install: Check for +lua for vim --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 4afa515..4d7ec01 100755 --- a/install.sh +++ b/install.sh @@ -51,6 +51,7 @@ check_requirements() check_prog curl check_prog git check_vim +python3 + check_vim +lua check_py3 neovim check_font "Hack NF" } -- 2.30.2 From 83c897006f96962f08c05be111a0993df9058444 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 5 Nov 2022 21:23:16 +0100 Subject: [PATCH 04/16] plugins: Enable airline's vimtex extension --- plugins-noroot-nolowendbox.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index d3d9559..57a7c26 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -253,6 +253,7 @@ EOF let g:vimtex_fold_enabled = 1 let g:vimtex_fold_levelmarker = '➜' + let g:airline#extensions#vimtex#enabled = 1 au FileType c,cpp,objc,java,python packadd! vimspector let g:vimspector_base_dir = expand('~/.vim/vimspector-config') -- 2.30.2 From 6d7deba75e23a00c8b56a2a97150cbe32776920d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 5 Nov 2022 21:41:42 +0100 Subject: [PATCH 05/16] plugins: Set okular for vimtex viewer --- plugins-noroot-nolowendbox.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 57a7c26..c45018e 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -253,6 +253,8 @@ EOF let g:vimtex_fold_enabled = 1 let g:vimtex_fold_levelmarker = '➜' + let g:vimtex_view_general_viewer = 'okular' + let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' let g:airline#extensions#vimtex#enabled = 1 au FileType c,cpp,objc,java,python packadd! vimspector -- 2.30.2 From c0729e3481f905dee5c1bd830e35d32fe3405a45 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 6 Nov 2022 14:09:19 +0100 Subject: [PATCH 06/16] plugins: Remove discouraged lazy loading of VimTeX --- plugins-noroot-nolowendbox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index c45018e..ceba0e3 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -21,7 +21,7 @@ Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']} " Prevent slow foling update, e.g., for vimtex Plug 'Konfekt/FastFold' -Plug 'lervag/vimtex', {'for': 'tex'} +Plug 'lervag/vimtex' Plug 'mhinz/vim-signify' Plug 'tpope/vim-fugitive' -- 2.30.2 From 7841bf9006f2a6daa4694cbed691646f4f3f1a3c Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 7 Nov 2022 21:25:34 +0100 Subject: [PATCH 07/16] plugins: Let calendar start at Monday --- plugins-noroot.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins-noroot.vim b/plugins-noroot.vim index e01f702..81411f9 100644 --- a/plugins-noroot.vim +++ b/plugins-noroot.vim @@ -63,6 +63,8 @@ function PluginsNorootConfig() " Allow for reflow of bullet paragraphs let g:vim_markdown_auto_insert_bullets = 0 + let g:calendar_monday = 1 + if has('nvim-0.5') lua < Date: Tue, 8 Nov 2022 21:31:22 +0100 Subject: [PATCH 08/16] plugins: nvim-treesitter for neovim-0.8 --- plugins-noroot-nolowendbox.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index ceba0e3..38d914e 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -56,8 +56,12 @@ Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'} Plug 'sheerun/vim-polyglot' -if has('nvim-0.5') - Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate', 'tag': 'v0.8.0'} +if has('nvim') + if has('nvim-0.8') + Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + else + Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate', 'tag': 'v0.8.0'} + endif Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'} endif -- 2.30.2 From d77983aea64b53250d8d5aff3bcd876748943c9e Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 9 Nov 2022 10:17:59 +0100 Subject: [PATCH 09/16] plugins: neovim-0.4 conflicts with nvim-treesitter --- plugins-noroot-nolowendbox.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 38d914e..1fc6aa5 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -56,12 +56,15 @@ Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'} Plug 'sheerun/vim-polyglot' -if has('nvim') +" neovim-0.4 has troubles with nvim-treesitter +if has('nvim-0.5') + " neovim-0.7 works untilk v0.8.0 if has('nvim-0.8') Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} else Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate', 'tag': 'v0.8.0'} endif + Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'} endif -- 2.30.2 From 1d9d6a8c4ebd1fffba53a0ecddfa6ae3f06b9b2b Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 29 Nov 2022 13:11:13 +0100 Subject: [PATCH 10/16] plugins: Fix nvim-treesitter compatibility --- plugins-noroot-nolowendbox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 1fc6aa5..4ee5769 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -59,7 +59,7 @@ Plug 'sheerun/vim-polyglot' " neovim-0.4 has troubles with nvim-treesitter if has('nvim-0.5') " neovim-0.7 works untilk v0.8.0 - if has('nvim-0.8') + if has('nvim-0.9') Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} else Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate', 'tag': 'v0.8.0'} -- 2.30.2 From 9ddcd50ee3487e1ff65f55b9d6f7c7cf7c2fb3f6 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 19 Mar 2023 10:32:45 +0100 Subject: [PATCH 11/16] gvim: Add JetBrainsMono as favorite guifont --- gvimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gvimrc b/gvimrc index 1956f8b..3782ff8 100644 --- a/gvimrc +++ b/gvimrc @@ -1,6 +1,6 @@ set columns=100 set lines=53 -set guifont=Hack\ NF\ 9,Hack\ 9,Liberation\ Mono\ for\ Powerline\ 10,DejaVu\ Sans\ Mono\ 10,Monospace\ 10 +set guifont=JetBrainsMono\ NF\ 9,Hack\ NF\ 9,Hack\ 9,DejaVu\ Sans\ Mono\ 10,Monospace\ 10 set mousehide -- 2.30.2 From 2bcb3d917107568091e66f21acb469828982d503 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 17 Apr 2023 14:21:34 +0200 Subject: [PATCH 12/16] neosnippets: Add mail identities --- neosnippets/gitcommit.snip | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neosnippets/gitcommit.snip b/neosnippets/gitcommit.snip index ed9ffe3..dc6106c 100644 --- a/neosnippets/gitcommit.snip +++ b/neosnippets/gitcommit.snip @@ -17,3 +17,7 @@ options head snippet acked-by options head Acked-by: ${1:authorname } +snippet Ste-sthu + Stefan Huber +snippet Ste-fhs + Stefan Huber -- 2.30.2 From f45b485b52bf012c40df3f2c1da9ad1058be1597 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 8 Jan 2024 14:51:23 +0100 Subject: [PATCH 13/16] syntax: Add easychair2 syntax definition --- ftdetect/easychair2.vim | 1 + syntax/easychair2.vim | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 ftdetect/easychair2.vim create mode 100644 syntax/easychair2.vim diff --git a/ftdetect/easychair2.vim b/ftdetect/easychair2.vim new file mode 100644 index 0000000..3dc8be2 --- /dev/null +++ b/ftdetect/easychair2.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *-review-[0-9]\+r[0-9]\+.txt set filetype=easychair2 diff --git a/syntax/easychair2.vim b/syntax/easychair2.vim new file mode 100644 index 0000000..280c5b9 --- /dev/null +++ b/syntax/easychair2.vim @@ -0,0 +1,29 @@ +" Vim syntax file +" Language: Easychair conference system review form +" Maintainer: Stefan Huber +" +" +" Changelog: +" 2010-12-12: Initial version +" 2024-01-08: Update to new syntax + +" Quit when a syntax file was already loaded +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +runtime! syntax/tex.vim + +unlet! b:current_syntax + +syn region ec2Section start="==\*==" end="$" +syn region ec2Subsection start="==+==" end="$" +syn region ec2Comment start="==-==" end="$" + +hi def link ec2Comment Comment +hi def link ec2Section Directory +hi def link ec2Subsection Directory + +let b:current_syntax = "easychair2" -- 2.30.2 From 73bbb991a2691770dbed8586708e861d44662583 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 8 Jan 2024 14:58:28 +0100 Subject: [PATCH 14/16] plugins: Fix typo --- plugins-noroot-nolowendbox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 4ee5769..5dd2de2 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -58,7 +58,7 @@ Plug 'sheerun/vim-polyglot' " neovim-0.4 has troubles with nvim-treesitter if has('nvim-0.5') - " neovim-0.7 works untilk v0.8.0 + " neovim-0.7 works until v0.8.0 if has('nvim-0.9') Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} else -- 2.30.2 From 8ced9450c8019df93f03a39f9f1d0ca39df917f1 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 8 Jan 2024 15:20:32 +0100 Subject: [PATCH 15/16] plugin: Factor your easychair2 into plugin --- ftdetect/easychair2.vim | 1 - plugins-noroot-nolowendbox.vim | 2 ++ syntax/easychair2.vim | 29 ----------------------------- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 ftdetect/easychair2.vim delete mode 100644 syntax/easychair2.vim diff --git a/ftdetect/easychair2.vim b/ftdetect/easychair2.vim deleted file mode 100644 index 3dc8be2..0000000 --- a/ftdetect/easychair2.vim +++ /dev/null @@ -1 +0,0 @@ -au BufRead,BufNewFile *-review-[0-9]\+r[0-9]\+.txt set filetype=easychair2 diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 5dd2de2..10783d1 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -23,6 +23,8 @@ Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']} Plug 'Konfekt/FastFold' Plug 'lervag/vimtex' +Plug 'shuber2/easychair2-syntax' + Plug 'mhinz/vim-signify' Plug 'tpope/vim-fugitive' Plug 'gko/vim-coloresque' diff --git a/syntax/easychair2.vim b/syntax/easychair2.vim deleted file mode 100644 index 280c5b9..0000000 --- a/syntax/easychair2.vim +++ /dev/null @@ -1,29 +0,0 @@ -" Vim syntax file -" Language: Easychair conference system review form -" Maintainer: Stefan Huber -" -" -" Changelog: -" 2010-12-12: Initial version -" 2024-01-08: Update to new syntax - -" Quit when a syntax file was already loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") - finish -endif - -runtime! syntax/tex.vim - -unlet! b:current_syntax - -syn region ec2Section start="==\*==" end="$" -syn region ec2Subsection start="==+==" end="$" -syn region ec2Comment start="==-==" end="$" - -hi def link ec2Comment Comment -hi def link ec2Section Directory -hi def link ec2Subsection Directory - -let b:current_syntax = "easychair2" -- 2.30.2 From 37a866b322f2cdfa21fc62bbdd0b4032f11d7604 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 8 Jan 2024 15:30:55 +0100 Subject: [PATCH 16/16] plugins: Change easychair2 url --- plugins-noroot-nolowendbox.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 10783d1..f442a5d 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -23,7 +23,7 @@ Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']} Plug 'Konfekt/FastFold' Plug 'lervag/vimtex' -Plug 'shuber2/easychair2-syntax' +Plug 'shuber2/vim-syntax-easychair2' Plug 'mhinz/vim-signify' Plug 'tpope/vim-fugitive' -- 2.30.2