質問編集履歴
3
編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
WSLをインストール済み
|
4
4
|
python3を実行できるように環境構築済み
|
5
5
|
##実現したいこと
|
6
|
-
vim-testの:TestFileを実行したい
|
6
|
+
[ここにあるサイトによると](https://qiita.com/lighttiger2505/items/96d4cda9074f9719bc82#vim-test)vim-testでvimの編集画面上でエラー画面を表示できるらしいのですが、とりあえずvim-testのプラグインを導入してみようとしたのですが、正常に実行できなかったので、実現したいこととしては、vim-testの:TestFileを実行したいです。
|
7
7
|
##やってみたこと
|
8
8
|
vimのプラグインマネージャーはvundleを使用しました。
|
9
9
|
セットアップを[このサイト](https://webrandum.net/vundle/)にしたがってやりました。
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,8 +12,8 @@
|
|
12
12
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
13
13
|
```
|
14
14
|
を実行しました。
|
15
|
-
vim ~/.vimrcを実行して先ほどのサイトに書かれてあるとおりにvundleが
|
15
|
+
vim ~/.vimrcを実行して先ほどのサイトに書かれてあるとおりにvundleが使えるように、.vimrcファイルを編集しました。
|
16
|
-
[vim-test](https://vimawesome.com/plugin/vim-test-all-too-well)は先ほどのサイトに書かれている通り、VimAweSomeにて参照
|
16
|
+
[vim-test](https://vimawesome.com/plugin/vim-test-all-too-well)は先ほどのサイトに書かれている通り、VimAweSomeにて参照しました。
|
17
17
|
```
|
18
18
|
Plug 'janko/vim-test'
|
19
19
|
```
|
@@ -25,7 +25,7 @@
|
|
25
25
|
```
|
26
26
|
を実行して.vimrcを保存しました。
|
27
27
|
|
28
|
-
さらにgithubにあるvim-testの説明にあるとおり.vimrcに
|
28
|
+
さらに[githubにあるvim-testの説明](https://github.com/janko/vim-test)にあるとおり.vimrcに
|
29
29
|
```
|
30
30
|
" these "Ctrl mappings" work well when Caps Lock is mapped to Ctrl
|
31
31
|
nmap <silent> t<C-n> :TestNearest<CR>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
nmap <silent> t<C-l> :TestLast<CR>
|
35
35
|
nmap <silent> t<C-g> :TestVisit<CR>
|
36
36
|
```
|
37
|
-
を保存しました。
|
37
|
+
を加えて保存しました。
|
38
38
|
|
39
39
|
それから、特定のpythonのファイルをvimで開いて:TestFileを実行すると
|
40
40
|
```
|
@@ -91,4 +91,7 @@
|
|
91
91
|
fall-back for $VIM: "/usr/share/vim"
|
92
92
|
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
|
93
93
|
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
|
94
|
-
```
|
94
|
+
```
|
95
|
+
|
96
|
+
TestFileが実行できないので何も起きないのはなぜなんでしょうか。
|
97
|
+
回答お願いします。
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -40,4 +40,55 @@
|
|
40
40
|
```
|
41
41
|
Not a test file
|
42
42
|
```
|
43
|
-
とエラーをはきました。
|
43
|
+
とエラーをはきました。
|
44
|
+
|
45
|
+
vimのバージョンは以下の通りです。
|
46
|
+
```
|
47
|
+
$ vim --version
|
48
|
+
|
49
|
+
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 18 2019 12:34:17)
|
50
|
+
Included patches: 1-2171
|
51
|
+
Modified by jonathon.fernyhough@york.ac.uk
|
52
|
+
Compiled by jonathon.fernyhough@york.ac.uk
|
53
|
+
Huge version without GUI. Features included (+) or not (-):
|
54
|
+
+acl -farsi -mouse_sysmouse -tag_any_white
|
55
|
+
+arabic +file_in_path +mouse_urxvt -tcl
|
56
|
+
+autocmd +find_in_path +mouse_xterm +termguicolors
|
57
|
+
+autochdir +float +multi_byte +terminal
|
58
|
+
-autoservername +folding +multi_lang +terminfo
|
59
|
+
-balloon_eval -footer -mzscheme +termresponse
|
60
|
+
+balloon_eval_term +fork() +netbeans_intg +textobjects
|
61
|
+
-browse +gettext +num64 +textprop
|
62
|
+
++builtin_terms -hangul_input +packages +timers
|
63
|
+
+byte_offset +iconv +path_extra +title
|
64
|
+
+channel +insert_expand -perl -toolbar
|
65
|
+
+cindent +job +persistent_undo +user_commands
|
66
|
+
-clientserver +jumplist +postscript +vartabs
|
67
|
+
-clipboard +keymap +printer +vertsplit
|
68
|
+
+cmdline_compl +lambda +profile +virtualedit
|
69
|
+
+cmdline_hist +langmap -python +visual
|
70
|
+
+cmdline_info +libcall +python3 +visualextra
|
71
|
+
+comments +linebreak +quickfix +viminfo
|
72
|
+
+conceal +lispindent +reltime +vreplace
|
73
|
+
+cryptv +listcmds +rightleft +wildignore
|
74
|
+
+cscope +localmap -ruby +wildmenu
|
75
|
+
+cursorbind -lua +scrollbind +windows
|
76
|
+
+cursorshape +menu +signs +writebackup
|
77
|
+
+dialog_con +mksession +smartindent -X11
|
78
|
+
+diff +modify_fname +sound -xfontset
|
79
|
+
+digraphs +mouse +spell -xim
|
80
|
+
-dnd -mouseshape +startuptime -xpm
|
81
|
+
-ebcdic +mouse_dec +statusline -xsmp
|
82
|
+
+emacs_tags +mouse_gpm -sun_workshop -xterm_clipboard
|
83
|
+
+eval -mouse_jsbterm +syntax -xterm_save
|
84
|
+
+ex_extra +mouse_netterm +tag_binary
|
85
|
+
+extra_search +mouse_sgr -tag_old_static
|
86
|
+
system vimrc file: "$VIM/vimrc"
|
87
|
+
user vimrc file: "$HOME/.vimrc"
|
88
|
+
2nd user vimrc file: "~/.vim/vimrc"
|
89
|
+
user exrc file: "$HOME/.exrc"
|
90
|
+
defaults file: "$VIMRUNTIME/defaults.vim"
|
91
|
+
fall-back for $VIM: "/usr/share/vim"
|
92
|
+
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
|
93
|
+
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
|
94
|
+
```
|