• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisãoe38320b0e1d45c8d29fcecc30992252330400a81 (tree)
Hora2023-01-13 07:13:40
Autorbadcoff33 <none@none>
Commiterbadcoff33

Mensagem de Log

merged

Mudança Sumário

Diff

--- a/after/ftplugin/vim.vim
+++ b/after/ftplugin/vim.vim
@@ -9,6 +9,11 @@ setlocal nocindent
99 nnoremap <buffer> K :help <C-r><C-w><CR>
1010 nnoremap <buffer> <LocalLeader>o :set <C-r><C-w>?<CR>
1111
12+set path=
13+for p in split(&rtp, ",")
14+ execute "set path+=" .. escape(p .. g:slash, " \\") .. "**"
15+endfor
16+
1217 if empty(matchstr(expand("%:p:h"), "color"))
1318 " source Vim file
1419 nnoremap <special> <buffer> <CR> :w<bar>source%<CR>
@@ -18,22 +23,20 @@ else
1823 endif
1924
2025 " source current visual region
21-vnoremap <buffer> <CR> :<C-U>call VisExecute()<CR>
26+vnoremap <buffer> <CR> :<C-U>call s:VisExecute()<CR>
2227
2328 iabbrev <buffer> _fun function!<CR>endfunction<Up>
2429 iabbrev <buffer> _aug augroup NAME<CR>au!<CR>augroup END<Up><Up><End>
2530
26-if !exists("*VisExecute")
27- function! VisExecute() abort
28- let save_selection = &selection
29- let save_reg_x = @x
30- silent normal '<V'>"xy
31- let @a = substitute(@x, '\r', '\n', 'g')
32- @x
33- let @x = save_reg_x
34- let &selection = save_selection
35- endfunction
36-endif
31+function! s:VisExecute() abort
32+ let save_selection = &selection
33+ let save_reg_x = @x
34+ silent normal '<V'>"xy
35+ let @a = substitute(@x, '\r', '\n', 'g')
36+ @x
37+ let @x = save_reg_x
38+ let &selection = save_selection
39+endfunction
3740
3841 if !exists('*LogError')
3942 " Description: Support testing with Vim's assert functions