vim: Update :set (#27805)

Update VimSet commands to better match the other commands by displaying
the leading `:`:

|Before|After|
|--|--|

|![image](https://github.com/user-attachments/assets/1bc21a06-e71f-4e40-90a7-ffdd903fd7b5)|![image](https://github.com/user-attachments/assets/df59279f-d454-4701-8330-2529506850cd)|


Release Notes:

- N/A
This commit is contained in:
5brian 2025-03-31 21:00:11 -04:00 committed by GitHub
parent 37ebb47238
commit 7984f0f11c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ impl VimOption {
CommandInterceptResult { CommandInterceptResult {
string: format!( string: format!(
"set {}", ":set {}",
options.iter().map(|opt| opt.to_string()).join(" ") options.iter().map(|opt| opt.to_string()).join(" ")
), ),
action: VimSet { options }.boxed_clone(), action: VimSet { options }.boxed_clone(),