Skip to content

Commit c5536ab

Browse files
bergercookienikoskoukis-slamcore
authored andcommitted
Add ftplugin file for fish
1 parent 496b644 commit c5536ab

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

ftplugin/common/sh_like.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ function! DebugStringFunShellBase(desc, ...)
1212
let l:debug_str .= '"'
1313
return l:debug_str
1414
endfunc
15-
16-

ftplugin/fish.vim

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let g:path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
2+
3+
function! s:DebugStringFun(desc, ...)
4+
let l:debug_str = 'echo "' . a:desc
5+
if len(a:000) ==# 1
6+
let l:debug_str .= ' $' . a:1
7+
endif
8+
let l:debug_str .= '"'
9+
return l:debug_str
10+
endfunc
11+
12+
command! -buffer -nargs=0 AddDebugString
13+
\ put=s:DebugStringFun(g:DebugstringPrefixStr() . g:debugStringCounter)
14+
command! -buffer -nargs=1 AddDebugStringExpr
15+
\ put=s:DebugStringFun(<args> . ': ', <args>)

0 commit comments

Comments
 (0)