Skip to content

Commit eaae3ba

Browse files
committed
Create a separate file for zsh instead of a symlink
1 parent 1fbef2b commit eaae3ba

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

ftplugin/sh.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
" Contents should be identical for zsh, sh - not creating symlinks to make it
2+
" compatible for potential Windows users.
13
let g:path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
24

35
function! s:DebugStringFun(desc, ...)

ftplugin/zsh.vim

Lines changed: 0 additions & 1 deletion
This file was deleted.

ftplugin/zsh.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
" Contents should be identical for zsh, sh - not creating symlinks to make it
2+
" compatible for potential Windows users.
3+
let g:path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
4+
5+
function! s:DebugStringFun(desc, ...)
6+
execute 'source ' . g:path . '/common/sh_like.vim'
7+
if len(a:000) ==# 0
8+
return DebugStringFunShellBase(a:desc)
9+
else
10+
return DebugStringFunShellBase(a:desc, a:1)
11+
endif
12+
endfunc
13+
14+
command! -buffer -nargs=0 AddDebugString
15+
\ put=s:DebugStringFun(g:DebugstringPrefixStr() . g:debugStringCounter)
16+
command! -buffer -nargs=1 AddDebugStringExpr
17+
\ put=s:DebugStringFun(<args> . ': ', <args>)

0 commit comments

Comments
 (0)