From 4802abee1740afcbd093298b6b00d68d800d840c Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 20 Jul 2025 02:57:51 +0200 Subject: [PATCH] vim:setts: Revert "Include `-` in `&iskeyword`" Commit 036921811437 ("vim:settings: Include `-` in `&iskeyword`") added the dash to `&iskeyword` but I didn't give an explanation for the change and don't remember what led me to it. Today I'm annoyed by it since it breaks some stuff (e.g. previously the C pointer arrow and syntax highlighting of negative numbers in Python). The C ftplugin is obsolete now, so delete it. This reverts commit 0369218114375cc81da3c0a132759404ea0fdaa9. --- .config/vim/ftplugin/c.vim | 2 -- .config/vim/vimrc.d/30-settings.vim | 2 -- 2 files changed, 4 deletions(-) delete mode 100644 .config/vim/ftplugin/c.vim diff --git a/.config/vim/ftplugin/c.vim b/.config/vim/ftplugin/c.vim deleted file mode 100644 index 6131463..0000000 --- a/.config/vim/ftplugin/c.vim +++ /dev/null @@ -1,2 +0,0 @@ -" Exclude `-` in keyword characters -setlocal iskeyword-=- diff --git a/.config/vim/vimrc.d/30-settings.vim b/.config/vim/vimrc.d/30-settings.vim index 71dfc47..13e9fa3 100644 --- a/.config/vim/vimrc.d/30-settings.vim +++ b/.config/vim/vimrc.d/30-settings.vim @@ -93,8 +93,6 @@ set shortmess+=A " probably expected. See corresponding autocommand or: " https://vi.stackexchange.com/questions/2702 set autoread -" Include `-` in keyword characters -set iskeyword+=- " Do not automatically insert at EOF if missing set nofixendofline " Let the cursor move beyond the EOL when in visual-block mode.