mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
vim-patch:a264bb9: runtime(javacc): include javacc ftplugin file
closes: vim/vim#15167
a264bb931e
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
parent
bc3051e7a7
commit
d70c224131
20
runtime/ftplugin/javacc.vim
Normal file
20
runtime/ftplugin/javacc.vim
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: JavaCC
|
||||||
|
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||||
|
" Last Change: 2024 Jul 06
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
" Set 'formatoptions' to break comment lines but not other lines,
|
||||||
|
" and insert the comment leader when hitting <CR> or using "o".
|
||||||
|
setlocal formatoptions-=t formatoptions+=croql
|
||||||
|
|
||||||
|
" Set 'comments' to format dashed lists in comments. Behaves just like C.
|
||||||
|
setlocal comments& comments^=sO:*\ -,mO:*\ \ ,exO:*/
|
||||||
|
|
||||||
|
setlocal commentstring=//\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = 'setl fo< com< cms<'
|
Loading…
Reference in New Issue
Block a user