mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-15 23:13:50 -05:00
26 lines
639 B
VimL
26 lines
639 B
VimL
let files = filter(globpath(&rtp, 'ftplugin/gitignore.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gitignore') == -1
|
|
|
|
scriptencoding utf-8
|
|
|
|
" Copyright (c) 2017-2020 Filip Szymański. All rights reserved.
|
|
" Use of this source code is governed by an MIT license that can be
|
|
" found in the LICENSE file.
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal commentstring=#\ %s
|
|
|
|
let b:undo_ftplugin = 'setlocal commentstring<'
|
|
|
|
" vim: ts=2 et sw=2
|
|
|
|
endif
|