Skip to content

Commit 2ffdc9c

Browse files
committed
set &define so things like ]d work for functions
For example `C-w d` jumps to the definition of the function under the cursor in a split window, if it is defined in the same file or a file it sources.
1 parent 5635a89 commit 2ffdc9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ftplugin/fish.vim

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
setlocal comments=:#
22
setlocal commentstring=#%s
3+
setlocal define=\\v^\\s*function>
34
setlocal foldexpr=fish#Fold()
45
setlocal foldmethod=expr
56
setlocal formatoptions+=ron1j

0 commit comments

Comments
 (0)