From: Enrico Maria De Angelis Date: Sun, 20 Aug 2023 19:29:09 +0000 (+0100) Subject: runtime(haskell): Add single quote to `iskeyword` in ftplugin (#8191) X-Git-Tag: v9.0.1777~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e6e4042b1c9685bce86493e3ee6fe916a7f221c;p=thirdparty%2Fvim.git runtime(haskell): Add single quote to `iskeyword` in ftplugin (#8191) The single quote `'` is a valid character in variable names, so it should be included in `iskeyword`; this, for instance, makes the * command behave predictably --- diff --git a/runtime/ftplugin/haskell.vim b/runtime/ftplugin/haskell.vim index 84f4d0563b..2a864bf916 100644 --- a/runtime/ftplugin/haskell.vim +++ b/runtime/ftplugin/haskell.vim @@ -17,6 +17,7 @@ let b:undo_ftplugin = "setl com< cms< fo<" setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s setlocal formatoptions-=t formatoptions+=croql setlocal omnifunc=haskellcomplete#Complete +setlocal iskeyword+=' let &cpo = s:cpo_save unlet s:cpo_save