Mercurial > vim
annotate runtime/ftplugin/neomuttrc.vim @ 26811:f0fdd992cfb9 v8.2.3934
patch 8.2.3934: repeating line comment is undesired for "O" command
Commit: https://github.com/vim/vim/commit/5ea5f373729589acb38ce3f3ca338e8a6d398bdc
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 29 15:15:47 2021 +0000
patch 8.2.3934: repeating line comment is undesired for "O" command
Problem: Repeating line comment is undesired for "O" command.
Solution: Do not copy line comment leader for "O". (closes https://github.com/vim/vim/issues/9426)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Dec 2021 16:30:03 +0100 |
parents | 3b26420fc639 |
children |
rev | line source |
---|---|
12756
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Vim filetype plugin file |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " Language: NeoMutt RC File |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 " Previous Maintainer: Guillaume Brogi <gui-gui@netcourrier.com> |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " Latest Revision: 2017-09-17 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 " Original version copied from ftplugin/muttrc.vim |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 if exists("b:did_ftplugin") |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 finish |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 endif |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 let b:did_ftplugin = 1 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 let s:cpo_save = &cpo |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 set cpo&vim |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 let b:undo_ftplugin = "setl com< cms< inc< fo<" |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 setlocal comments=:# commentstring=#\ %s |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 setlocal formatoptions-=t formatoptions+=croql |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 let &l:include = '^\s*source\>' |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 let &cpo = s:cpo_save |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 unlet s:cpo_save |