Plugin error - "Not an editor command: Javascript.vim"
alexandermckay opened this issue · 4 comments
Hello and thanks for taking the time to file this issue.
From a quick glance I think this issue arises because the typescript.vim
files giving an error are softlinks to the respective javascript.vim
files. (The link files contain a path to their targets so that's why it raises a syntax error with javascript.vim
not being a command). This might be because you are using bash on windows (I think), which I honestly have never considered to check.
Have you run vim/nvim natively in your windows environment before? It would be interestibg to see, if this problem persists. If you could elaborate on your setup a bit I might be able to try to reproduce the issue and find an appropriate fix for this.
✌️
I get this error as well.
I use cmder and powershell.
My .vimrc file:
set number
set encoding=utf-8
set history=500
" Enable filetype plugins
filetype plugin on
filetype indent on
" Set to auto read when a file is changed from the outside
set autoread
syntax on
set showmatch
" Regex
set magic
" Use Unix as the standard file type
set ffs=unix,dos,mac
" Turn backup off, since most stuff is in SVN, git et.c anyway...
set nobackup
set nowb
set noswapfile
set shiftwidth=4
set tabstop=4
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
set backspace=2
set ruler
" Ignore compiled files
set wildignore=*.o,*~,*.pyc
if has("win16") || has("win32")
set wildignore+=.git\*,.hg\*,.svn\*
else
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
endif
set nocompatible " be iMproved, required
filetype off " required
" Specify a directory for plugins
set rtp+=$HOME/.vim/bundle/Vundle.vim/
call vundle#begin('$HOME/.vim/bundle/')
" Make sure you use single quotes
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdtree'
"Plugin 'valloric/youcompleteme'
Plugin 'ajh17/vimcompletesme'
Plugin 'ludovicchabant/vim-gutentags'
Plugin 'craigemery/vim-autotag'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'tpope/vim-fugitive'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-surround'
Plugin 'chiel92/vim-autoformat'
Plugin 'editorconfig/editorconfig-vim'
Plugin 'prettier/vim-prettier'
Plugin 'mattn/emmet-vim'
Plugin 'isruslan/vim-es6'
Plugin 'mxw/vim-jsx'
Plugin 'styled-components/vim-styled-components'
Plugin 'jparise/vim-graphql'
" Initialize plugin system
call vundle#end()
filetype plugin indent on
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_checkers = ['standard']
" JSX syntax
let g:jsx_ext_required = 0
"filetype plugin indent on NERDTree config
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
map <C-n> :NERDTreeToggle<CR>
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
let NERDTreeShowHidden=1
" tagbar config
nmap <C-m> :TagbarToggle<CR>
" CTRLP config
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
let g:mwDefaultHighlightingPalette = 'maximum'
@alexandermckay @marcusrognes as I suspected the symlinks were not working on Windows. I tried to circumvent this by creating actual files using the runtime
command.
I will give this a week or so. And otherwise close this issue. 👍
Edit: Feel free to test out the develop
branch to see, if it works for you as well. (I wasn't able to test the new version on windows, yet.)
I was also seeing this issue while working on #80, which has been merged to the develop
branch. I think I fixed it.