##環境
windows10 pro
WSLをインストール済み
python3を実行できるように環境構築済み
##実現したいこと
ここにあるサイトによるとvim-testでvimの編集画面上でエラー画面を表示できるらしいのですが、とりあえずvim-testのプラグインを導入してみようとしたのですが、正常に実行できなかったので、実現したいこととしては、vim-testの:TestFileを実行したいです。
##やってみたこと
vimのプラグインマネージャーはvundleを使用しました。
セットアップをこのサイトにしたがってやりました。
ターミナルで適当なcurrent directoryで
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
を実行しました。
vim ~/.vimrcを実行して先ほどのサイトに書かれてあるとおりにvundleが使えるように、.vimrcファイルを編集しました。
vim-testは先ほどのサイトに書かれている通り、VimAweSomeにて参照しました。
Plug 'janko/vim-test'
を追加し、
.vimrcを保存してvimとwslのterminalを閉じてから
もう一度.vimrcを開いて
:PluginInstall
を実行して.vimrcを保存しました。
さらにgithubにあるvim-testの説明にあるとおり.vimrcに
" these "Ctrl mappings" work well when Caps Lock is mapped to Ctrl nmap <silent> t<C-n> :TestNearest<CR> nmap <silent> t<C-f> :TestFile<CR> nmap <silent> t<C-s> :TestSuite<CR> nmap <silent> t<C-l> :TestLast<CR> nmap <silent> t<C-g> :TestVisit<CR>
を加えて保存しました。
それから、特定のpythonのファイルをvimで開いて:TestFileを実行すると
Not a test file
とエラーをはきました。
vimのバージョンは以下の通りです。
$ vim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 18 2019 12:34:17) Included patches: 1-2171 Modified by jonathon.fernyhough@york.ac.uk Compiled by jonathon.fernyhough@york.ac.uk Huge version without GUI. Features included (+) or not (-): +acl -farsi -mouse_sysmouse -tag_any_white +arabic +file_in_path +mouse_urxvt -tcl +autocmd +find_in_path +mouse_xterm +termguicolors +autochdir +float +multi_byte +terminal -autoservername +folding +multi_lang +terminfo -balloon_eval -footer -mzscheme +termresponse +balloon_eval_term +fork() +netbeans_intg +textobjects -browse +gettext +num64 +textprop ++builtin_terms -hangul_input +packages +timers +byte_offset +iconv +path_extra +title +channel +insert_expand -perl -toolbar +cindent +job +persistent_undo +user_commands -clientserver +jumplist +postscript +vartabs -clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +virtualedit +cmdline_hist +langmap -python +visual +cmdline_info +libcall +python3 +visualextra +comments +linebreak +quickfix +viminfo +conceal +lispindent +reltime +vreplace +cryptv +listcmds +rightleft +wildignore +cscope +localmap -ruby +wildmenu +cursorbind -lua +scrollbind +windows +cursorshape +menu +signs +writebackup +dialog_con +mksession +smartindent -X11 +diff +modify_fname +sound -xfontset +digraphs +mouse +spell -xim -dnd -mouseshape +startuptime -xpm -ebcdic +mouse_dec +statusline -xsmp +emacs_tags +mouse_gpm -sun_workshop -xterm_clipboard +eval -mouse_jsbterm +syntax -xterm_save +ex_extra +mouse_netterm +tag_binary +extra_search +mouse_sgr -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fdebug-prefix-map=/build/vim-gosGG0/vim-8.1.2171=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lcanberra -lacl -lattr -lgpm -ldl -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl -lutil -lm
TestFileが実行できないので何も起きないのはなぜなんでしょうか。
回答お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/11/28 05:28