From 60b74f27d08a09103da87b6d52a09f1adcd3549e Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 8 Jul 2024 10:45:04 +0200 Subject: vim-patch:f5398c8: runtime(cuda): include CUDA ftplugin file closes: vim/vim#15159 https://github.com/vim/vim/commit/f5398c8975b19341831752b549b35ac5a540c91a Co-authored-by: Riley Bruins --- runtime/ftplugin/cuda.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 runtime/ftplugin/cuda.vim diff --git a/runtime/ftplugin/cuda.vim b/runtime/ftplugin/cuda.vim new file mode 100644 index 0000000000..8770bdb674 --- /dev/null +++ b/runtime/ftplugin/cuda.vim @@ -0,0 +1,16 @@ +" Vim filetype plugin +" Language: CUDA +" Maintainer: Riley Bruins +" Last Change: 2024 Jul 06 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +" Set 'comments' to format dashed lists in comments. +" Also include ///, used for Doxygen. +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl com< cms<' -- cgit