diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-06-04 09:39:28 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-06-04 10:38:55 +0200 |
| commit | 2f5b8a009280eba995aecf67d1e8d99b7c72c51c (patch) | |
| tree | c5d2d0b26ad5d2cfcca2378363ec3e0433b7c545 /runtime/ftplugin/rust.vim | |
| parent | e20c5fba2c77b7e7ea93363abc987d913e5f9f58 (diff) | |
| download | rneovim-2f5b8a009280eba995aecf67d1e8d99b7c72c51c.tar.gz rneovim-2f5b8a009280eba995aecf67d1e8d99b7c72c51c.tar.bz2 rneovim-2f5b8a009280eba995aecf67d1e8d99b7c72c51c.zip | |
vim-patch:9.1.0464: no whitespace padding in commentstring option in ftplugins
Problem: no whitespace padding in commentstring option in ftplugins
Solution: Change default to include whitespace padding, update
existing filetype plugins with the new default value
(Riley Bruins)
closes: vim/vim#14843
https://github.com/vim/vim/commit/0a0830624a260660c7fa692ecb7e6e5de09114ba
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Diffstat (limited to 'runtime/ftplugin/rust.vim')
| -rw-r--r-- | runtime/ftplugin/rust.vim | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/ftplugin/rust.vim b/runtime/ftplugin/rust.vim index fb15b444d0..c2bcdd34bc 100644 --- a/runtime/ftplugin/rust.vim +++ b/runtime/ftplugin/rust.vim @@ -1,7 +1,8 @@ -" Language: Rust -" Description: Vim ftplugin for Rust -" Maintainer: Chris Morgan <me@chrismorgan.info> -" Last Change: 2024-03-17 +" Language: Rust +" Description: Vim ftplugin for Rust +" Maintainer: Chris Morgan <me@chrismorgan.info> +" Last Change: 2024 Mar 17 +" 2024 May 23 by Riley Bruins <ribru17@gmail.com ('commentstring') " For bugs, patches and license go to https://github.com/rust-lang/rust.vim if exists("b:did_ftplugin") @@ -36,7 +37,7 @@ if get(g:, 'rust_bang_comment_leader', 0) else setlocal comments=s0:/*!,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,:// endif -setlocal commentstring=//%s +setlocal commentstring=//\ %s setlocal formatoptions-=t formatoptions+=croqnl " j was only added in 7.3.541, so stop complaints about its nonexistence silent! setlocal formatoptions+=j |