Quramy / vim-js-pretty-template

highlights JavaScript's Template Strings in other FileType syntax rule
http://www.vim.org/scripts/script.php?script_id=5222
MIT License
142 stars 11 forks source link

Error 'Not an editor command : JsPreTmpl markdown' #10

Open ryanwells-rwc opened 7 years ago

ryanwells-rwc commented 7 years ago

I'm still learning about how Vim works, so if this isn't a bug I'm sorry. I'm experiencing something similar to #5, however reordering things in my .vimrc doesn't seem to help.

error

The above error happens when I open a TypeScript file with this line in my .vimrc:

autocmd FileType typescript JsPreTmpl markdown

Here's the whole .vimrc file for reference (in case I'm doing something silly):

execute pathogen#infect()
syntax on
set nocompatible
set shiftwidth=2 tabstop=2
set nu
runtime! ftplugin/man.vim
filetype plugin indent on
if has('gui_running')
    colorscheme darkmate
    set guifont=Droid\ Sans\ Mono
else
endif
let g:indent_guides_enable_on_vim_startup = 1
autocmd FileType typescript JsPreTmpl markdown
autocmd FileType typescript syn clear foldBraces
PostImpatica commented 7 years ago

@ryanwells-rwc I always forget this, but don't forget that even though you add plugins to your .vimrc and it takes a while to open like it's downloading your plugins (including your new one), you still have to run :PlugInstall if you are using Plug to actually install your new plugin.