summaryrefslogtreecommitdiffstats
path: root/ftplugin/toml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/toml.vim')
-rw-r--r--ftplugin/toml.vim20
1 files changed, 3 insertions, 17 deletions
diff --git a/ftplugin/toml.vim b/ftplugin/toml.vim
index baa19ba1..b440a714 100644
--- a/ftplugin/toml.vim
+++ b/ftplugin/toml.vim
@@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
" File: ftplugin/toml.vim
" Author: Kevin Ballard <kevin@sb.org>
" Description: FileType Plugin for Toml
-" Last Change: Dec 09, 2014
+" Last Change: Feb 12, 2019
if exists('b:did_ftplugin')
finish
@@ -12,24 +12,10 @@ let b:did_ftplugin = 1
let s:save_cpo = &cpo
set cpo&vim
+let b:undo_ftplugin = 'setlocal commentstring< comments<'
setlocal commentstring=#\ %s
-
-" Add NERDCommenter delimiters
-
-let s:delims = { 'left': '#' }
-if exists('g:NERDDelimiterMap')
- if !has_key(g:NERDDelimiterMap, 'toml')
- let g:NERDDelimiterMap.toml = s:delims
- endif
-elseif exists('g:NERDCustomDelimiters')
- if !has_key(g:NERDCustomDelimiters, 'toml')
- let g:NERDCustomDelimiters.toml = s:delims
- endif
-else
- let g:NERDCustomDelimiters = { 'toml': s:delims }
-endif
-unlet s:delims
+setlocal comments=:#
let &cpo = s:save_cpo
unlet s:save_cpo