File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,8 @@ autocmd BufRead *
6
6
\ setlocal filetype = fish |
7
7
\ endif
8
8
9
- " Start Insert inside function edited with `funced`.
10
- autocmd BufRead fish_funced_*_*.fish
11
- \ ?\C ^end \> ?-1 |
12
- \ if getline (' .' ) == # ' ' |
13
- \ execute " normal! i\<C-t> " |
14
- \ endif |
15
- \ startinsert !
9
+ " Move cursor to first empty line when using funced.
10
+ autocmd BufRead fish_funced_*_*.fish call search (' ^$' )
16
11
17
12
" Fish histories are YAML documents.
18
13
autocmd BufRead ,BufNewFile ~/.config/fish/fish_{read_,}history setfiletype yaml
@@ -23,6 +18,6 @@ autocmd BufRead,BufNewFile ~/.config/fish/fishd.* setlocal readonly
23
18
" Mimic `funced` when manually creating functions.
24
19
autocmd BufNewFile ~/.config/fish/functions/*.fish
25
20
\ call append (0 , [' function ' .expand (' %:t:r' ),
26
- \r epeat ( ' ' , & shiftwidth ) ,
21
+ \' ' ,
27
22
\' end ']) |
28
- \ 4 delete | 2 | startinsert !
23
+ \ 2
You can’t perform that action at this time.
0 commit comments