mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Add org mode, close #706
This commit is contained in:
28
ftplugin/org.vim
Normal file
28
ftplugin/org.vim
Normal file
@@ -0,0 +1,28 @@
|
||||
if polyglot#init#is_disabled(expand('<sfile>:p'), 'org', 'ftplugin/org.vim')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Vim filetype plugin for GNU Emacs' Org mode
|
||||
"
|
||||
" Maintainer: Alex Vear <av@axvr.io>
|
||||
" License: Vim (see `:help license`)
|
||||
" Location: ftplugin/org.vim
|
||||
" Website: https://github.com/axvr/org.vim
|
||||
" Last Change: 2020-01-04
|
||||
"
|
||||
" Reference Specification: Org mode manual
|
||||
" GNU Info: `$ info Org`
|
||||
" Web: <https://orgmode.org/manual/index.html>
|
||||
|
||||
setlocal commentstring=#%s
|
||||
setlocal comments=fb:*,fb:-,fb:+,b:#,b:\:
|
||||
setlocal formatoptions+=ncqlt
|
||||
let &l:formatlistpat = '^\s*\(\d\+[.)]\|[+-]\)\s\+'
|
||||
|
||||
setlocal foldexpr=org#fold_expr()
|
||||
setlocal foldmethod=expr
|
||||
|
||||
if org#option('org_clean_folds', 0)
|
||||
setlocal foldtext=org#fold_text()
|
||||
setlocal fillchars-=fold:-
|
||||
endif
|
||||
23
ftplugin/outline.vim
Normal file
23
ftplugin/outline.vim
Normal file
@@ -0,0 +1,23 @@
|
||||
if polyglot#init#is_disabled(expand('<sfile>:p'), 'org', 'ftplugin/outline.vim')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Vim filetype plugin for GNU Emacs' Outline mode
|
||||
"
|
||||
" Maintainer: Alex Vear <av@axvr.io>
|
||||
" License: Vim (see `:help license`)
|
||||
" Location: ftplugin/outline.vim
|
||||
" Website: https://github.com/axvr/org.vim
|
||||
" Last Change: 2020-01-04
|
||||
"
|
||||
" Reference Specification: GNU Emacs Manual, section 'Outline Mode'
|
||||
" GNU Info: `$ info Emacs Outline Mode`
|
||||
" Web: <https://www.gnu.org/software/emacs/manual/html_node/emacs/Outline-Mode.html>
|
||||
|
||||
setlocal foldexpr=org#fold_expr()
|
||||
setlocal foldmethod=expr
|
||||
|
||||
if org#option('org_clean_folds', 0)
|
||||
setlocal foldtext=org#fold_text()
|
||||
setlocal fillchars-=fold:-
|
||||
endif
|
||||
Reference in New Issue
Block a user