質問編集履歴
6
add messages
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,13 @@
|
|
28
28
|
|
29
29
|
:echo has("lua")
|
30
30
|
|
31
|
-
|
31
|
+
1
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
:messages
|
36
|
+
|
37
|
+
Messages maintainer: Bram Moolenaar <Bram@vim.org>
|
32
38
|
|
33
39
|
|
34
40
|
|
5
add image
test
CHANGED
File without changes
|
test
CHANGED
@@ -161,3 +161,13 @@
|
|
161
161
|
let g:neocomplete#keyword_patterns._ = '\h\w*'
|
162
162
|
|
163
163
|
```
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
期待した結果(/usr/local/bin/vim)
|
168
|
+
|
169
|
+
![期待した結果](f15f2df7cf8b61a51209f84559d9426b.png)
|
170
|
+
|
171
|
+
実際に起きた結果(/usr/local/Cellar/macvim/HEAD/bin/vim)
|
172
|
+
|
173
|
+
![実際に起きた結果](41127be3c5ce253cc4134e4f8e36b896.png)
|
4
補足:自動補完が出ないとは 追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
brewで入れたvimの場合自動補完(NeoComplete)が出ますが、
|
2
2
|
|
3
3
|
同じ設定ファイルを使用してMacVimで開くと自動補完がでません。
|
4
|
+
|
5
|
+
> **補足** (自動補完が出ないとは)
|
6
|
+
|
7
|
+
> vimrcで2文字打つと自動で補完候補が出てくる仕様にしており、
|
8
|
+
|
9
|
+
> brew install vim --with-lua のvim(/usr/local/bin/vim)では2文字打つと候補一覧が自動で出ます。
|
10
|
+
|
11
|
+
> しかしmacvimでは2文字打っても候補一覧が出てこないため、<C-n>で自分で補完候補を出さなければならない状況です。
|
4
12
|
|
5
13
|
|
6
14
|
|
3
fix vimrc
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,6 +102,18 @@
|
|
102
102
|
|
103
103
|
```
|
104
104
|
|
105
|
+
if has('lua')
|
106
|
+
|
107
|
+
NeoBundle 'Shougo/neocomplete.vim', {
|
108
|
+
|
109
|
+
\ 'depends' : 'Shougo/vimproc.vim',
|
110
|
+
|
111
|
+
\ 'autoload' : { 'insert' : 1,}
|
112
|
+
|
113
|
+
\ }
|
114
|
+
|
115
|
+
else
|
116
|
+
|
105
117
|
let g:neocomplete#enable_at_startup = 1
|
106
118
|
|
107
119
|
let g:neocomplete#auto_completion_start_length = 2
|
2
fix markdown
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,17 +8,25 @@
|
|
8
8
|
|
9
9
|
brew install --HEAD macvim-dev/macvim/macvim
|
10
10
|
|
11
|
+
|
12
|
+
|
11
13
|
$ which vim
|
12
14
|
|
13
15
|
/usr/local/Cellar/macvim/HEAD/bin/vim
|
16
|
+
|
17
|
+
|
14
18
|
|
15
19
|
$ vim
|
16
20
|
|
17
21
|
:echo has("lua")
|
18
22
|
|
19
|
-
|
23
|
+
> 1
|
24
|
+
|
25
|
+
|
20
26
|
|
21
27
|
:version
|
28
|
+
|
29
|
+
```
|
22
30
|
|
23
31
|
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 4 2016 09:54:04)
|
24
32
|
|
@@ -86,9 +94,13 @@
|
|
86
94
|
|
87
95
|
amework Cocoa -fstack-protector -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE
|
88
96
|
|
97
|
+
```
|
98
|
+
|
89
99
|
|
90
100
|
|
91
101
|
.vimrc(NeoComplete周辺)
|
102
|
+
|
103
|
+
```
|
92
104
|
|
93
105
|
let g:neocomplete#enable_at_startup = 1
|
94
106
|
|
@@ -127,3 +139,5 @@
|
|
127
139
|
endif
|
128
140
|
|
129
141
|
let g:neocomplete#keyword_patterns._ = '\h\w*'
|
142
|
+
|
143
|
+
```
|
1
which, has\("lua"\), version, vimrcの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,9 +1,129 @@
|
|
1
|
-
brewで入れたvimの場合NeoComplete
|
1
|
+
brewで入れたvimの場合自動補完(NeoComplete)が出ますが、
|
2
2
|
|
3
3
|
同じ設定ファイルを使用してMacVimで開くと自動補完がでません。
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
MacVimは以下の手順でインストールして
|
7
|
+
MacVimは以下の手順でインストールしています。
|
8
8
|
|
9
9
|
brew install --HEAD macvim-dev/macvim/macvim
|
10
|
+
|
11
|
+
$ which vim
|
12
|
+
|
13
|
+
/usr/local/Cellar/macvim/HEAD/bin/vim
|
14
|
+
|
15
|
+
$ vim
|
16
|
+
|
17
|
+
:echo has("lua")
|
18
|
+
|
19
|
+
> 1
|
20
|
+
|
21
|
+
:version
|
22
|
+
|
23
|
+
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 4 2016 09:54:04)
|
24
|
+
|
25
|
+
MacOS X (unix) version
|
26
|
+
|
27
|
+
Included patches: 1-2149
|
28
|
+
|
29
|
+
Compiled by
|
30
|
+
|
31
|
+
Huge version with MacVim GUI. Features included (+) or not (-):
|
32
|
+
|
33
|
+
+acl +comments +extra_search +jumplist +mouseshape +odbeditor +scrollbind +textobjects +windows
|
34
|
+
|
35
|
+
+arabic +conceal +farsi +keymap +mouse_dec +packages +signs +timers +writebackup
|
36
|
+
|
37
|
+
+autocmd +cryptv +file_in_path +lambda -mouse_gpm +path_extra +smartindent +title -X11
|
38
|
+
|
39
|
+
+balloon_eval +cscope +find_in_path +langmap -mouse_jsbterm +perl/dyn +startuptime +toolbar -xfontset
|
40
|
+
|
41
|
+
+browse +cursorbind +float +libcall +mouse_netterm +persistent_undo +statusline +transparency +xim
|
42
|
+
|
43
|
+
++builtin_terms +cursorshape +folding +linebreak +mouse_sgr +postscript -sun_workshop +user_commands -xsmp
|
44
|
+
|
45
|
+
+byte_offset +dialog_con_gui -footer +lispindent -mouse_sysmouse +printer +syntax +vertsplit -xterm_clipboard
|
46
|
+
|
47
|
+
+channel +diff +fork() +listcmds +mouse_urxvt +profile +tag_binary +virtualedit -xterm_save
|
48
|
+
|
49
|
+
+cindent +digraphs +fullscreen +localmap +mouse_xterm +python/dyn +tag_old_static +visual -xpm
|
50
|
+
|
51
|
+
+clientserver +dnd +gettext +lua/dyn +multi_byte +python3/dyn -tag_any_white +visualextra
|
52
|
+
|
53
|
+
+clipboard -ebcdic -hangul_input +menu +multi_lang +quickfix -tcl +viminfo
|
54
|
+
|
55
|
+
+cmdline_compl +emacs_tags +iconv +mksession -mzscheme +reltime +termguicolors +vreplace
|
56
|
+
|
57
|
+
+cmdline_hist +eval +insert_expand +modify_fname +netbeans_intg +rightleft +terminfo +wildignore
|
58
|
+
|
59
|
+
+cmdline_info +ex_extra +job +mouse +num64 +ruby/dyn +termresponse +wildmenu
|
60
|
+
|
61
|
+
system vimrc file: "$VIM/vimrc"
|
62
|
+
|
63
|
+
user vimrc file: "$HOME/.vimrc"
|
64
|
+
|
65
|
+
2nd user vimrc file: "~/.vim/vimrc"
|
66
|
+
|
67
|
+
user exrc file: "$HOME/.exrc"
|
68
|
+
|
69
|
+
system gvimrc file: "$VIM/gvimrc"
|
70
|
+
|
71
|
+
user gvimrc file: "$HOME/.gvimrc"
|
72
|
+
|
73
|
+
2nd user gvimrc file: "~/.vim/gvimrc"
|
74
|
+
|
75
|
+
defaults file: "$VIMRUNTIME/defaults.vim"
|
76
|
+
|
77
|
+
system menu file: "$VIMRUNTIME/menu.vim"
|
78
|
+
|
79
|
+
fall-back for $VIM: "/usr/local/Cellar/macvim/HEAD-a1fea82/MacVim.app/Contents/Resources/vim"
|
80
|
+
|
81
|
+
Compilation:
|
82
|
+
|
83
|
+
clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
|
84
|
+
|
85
|
+
Linking: clang -L. -L/usr/local/lib -L. -L/usr/local/lib -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm -lncurses -liconv -lintl -fr
|
86
|
+
|
87
|
+
amework Cocoa -fstack-protector -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
.vimrc(NeoComplete周辺)
|
92
|
+
|
93
|
+
let g:neocomplete#enable_at_startup = 1
|
94
|
+
|
95
|
+
let g:neocomplete#auto_completion_start_length = 2
|
96
|
+
|
97
|
+
let g:neocomplete#enable_smart_case = 1
|
98
|
+
|
99
|
+
let g:neocomplete#enable_camel_case_completion = 1
|
100
|
+
|
101
|
+
let g:neocomplete#enable_underbar_completion = 1
|
102
|
+
|
103
|
+
let g:neocomplete#min_syntax_length = 25
|
104
|
+
|
105
|
+
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
|
106
|
+
|
107
|
+
let g:neocomplete#lock_iminsert = 1
|
108
|
+
|
109
|
+
let g:neocomplete#enable_quick_match = 1
|
110
|
+
|
111
|
+
let g:neocomplete#max_list = 30
|
112
|
+
|
113
|
+
let g:neocomplete#enable_auto_select = 1
|
114
|
+
|
115
|
+
let g:neocomplete#enable_refresh_always = 1
|
116
|
+
|
117
|
+
let g:neocomplete#sources#dictionary#dictionaries = {
|
118
|
+
|
119
|
+
\ 'default' : '',
|
120
|
+
|
121
|
+
\ }
|
122
|
+
|
123
|
+
if !exists('g:neocomplete#keyword_patterns')
|
124
|
+
|
125
|
+
let g:neocomplete#keyword_patterns = {}
|
126
|
+
|
127
|
+
endif
|
128
|
+
|
129
|
+
let g:neocomplete#keyword_patterns._ = '\h\w*'
|