mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-09 10:13:48 -05:00
complain if the user doesnt have filetype plugins enabled
This commit is contained in:
@@ -1001,6 +1001,10 @@ function! NERDComment(isVisual, type) range
|
|||||||
let oldIgnoreCase = &ignorecase
|
let oldIgnoreCase = &ignorecase
|
||||||
set noignorecase
|
set noignorecase
|
||||||
|
|
||||||
|
if !exists("g:did_load_ftplugin") || g:did_load_ftplugin != 1
|
||||||
|
call s:NerdEcho("filetype plugins should be enabled. See :help NERDComInstallation and :help :filetype-plugin-on", 0)
|
||||||
|
endif
|
||||||
|
|
||||||
if a:isVisual
|
if a:isVisual
|
||||||
let firstLine = line("'<")
|
let firstLine = line("'<")
|
||||||
let lastLine = line("'>")
|
let lastLine = line("'>")
|
||||||
|
|||||||
Reference in New Issue
Block a user