Skip to content

Commit 619a7a8

Browse files
committed
Remove man plugin from vim, it does not work for nvim, closes #576
1 parent 3f79f79 commit 619a7a8

File tree

12 files changed

+191
-334
lines changed

12 files changed

+191
-334
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A collection of language packs for Vim.
77
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
88
99
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
10-
- It **installs and updates 120+ times faster** than the <!--Package Count-->591<!--/Package Count--> packages it consists of.
10+
- It **installs and updates 120+ times faster** than the <!--Package Count-->590<!--/Package Count--> packages it consists of.
1111
- It is more secure because scripts loaded for all extensions are generated by vim-polyglot (ftdetect).
1212
- Solid syntax and indentation support (other features skipped). Only the best language packs.
1313
- All unnecessary files are ignored (like enormous documentation from php support).

autoload/polyglot/sleuth.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ let s:globs = {
308308
\ 'mailcap': '.mailcap,mailcap',
309309
\ 'mako': '*.mako,*.mao',
310310
\ 'mallard': '*.page',
311-
\ 'man': '*.man',
312311
\ 'manconf': 'man.config',
313312
\ 'map': '*.map',
314313
\ 'maple': '*.mv,*.mpl,*.mws',

ftdetect/polyglot.vim

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,10 +970,6 @@ if !has_key(s:disabled_packages, 'manconf')
970970
au BufNewFile,BufRead */etc/man.conf,man.config setf manconf
971971
endif
972972

973-
if !has_key(s:disabled_packages, 'man')
974-
au BufNewFile,BufRead *.man setf man
975-
endif
976-
977973
if !has_key(s:disabled_packages, 'mallard')
978974
au BufNewFile,BufRead *.page setf mallard
979975
endif

ftplugin/man.vim

Lines changed: 0 additions & 254 deletions
This file was deleted.

ftplugin/purescript.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1
22

33
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--\ \|,:--
4+
setlocal commentstring=--\ %s
45
setlocal include=^import
56
setlocal includeexpr=printf('%s.purs',substitute(v:fname,'\\.','/','g'))
67

ftplugin/yaml.vim

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1
2+
3+
" Vim filetype plugin file
4+
" Language: YAML (YAML Ain't Markup Language)
5+
" Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive)
6+
" Last Change: 2020 Mar 02
7+
8+
if exists("b:did_ftplugin")
9+
finish
10+
endif
11+
let b:did_ftplugin = 1
12+
13+
let s:cpo_save = &cpo
14+
set cpo&vim
15+
16+
let b:undo_ftplugin = "setl com< cms< et< fo<"
17+
18+
setlocal comments=:# commentstring=#\ %s expandtab
19+
setlocal formatoptions-=t formatoptions+=croql
20+
21+
if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0
22+
let b:undo_ftplugin .= " sw< sts<"
23+
setlocal shiftwidth=2 softtabstop=2
24+
endif
25+
26+
let &cpo = s:cpo_save
27+
unlet s:cpo_save
28+
29+
endif

0 commit comments

Comments
 (0)