We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96a1b24 + 7658794 commit a2241c1Copy full SHA for a2241c1
plugin/phpns.vim
@@ -12,6 +12,10 @@ let g:php_namespace_sort = get(g:, 'php_namespace_sort', "'{,'}-1sort i")
12
13
let g:php_namespace_sort_after_insert = get(g:, 'php_namespace_sort_after_insert', 0)
14
15
+if !exists("g:php_namespace_expand_to_absolute")
16
+ let g:php_namespace_expand_to_absolute=0
17
+endif
18
+
19
function! PhpFindMatchingUse(name)
20
21
" matches use [function] Foo\Bar as <name>
@@ -163,7 +167,11 @@ function! PhpExpandClass()
163
167
if fqn is 0
164
168
return
165
169
endif
166
- substitute /\%#[[:alnum:]\\_]\+/\=fqn[1]/
170
+ if g:php_namespace_expand_to_absolute
171
+ substitute /\%#[[:alnum:]\\_]\+/\='\'.fqn[1]/
172
+ else
173
+ substitute /\%#[[:alnum:]\\_]\+/\=fqn[1]/
174
+ endif
175
exe restorepos
176
" move cursor after fqn
177
call search('\([[:blank:]]*[[:alnum:]\\_]\)*', 'ceW')
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments