@@ -2159,20 +2159,23 @@ endfunction
21592159" }}}1
21602160" Navigation {{{1
21612161
2162- function ! s: BufNavCommands ()
2162+ function ! s: BufNavCommands () abort
2163+ command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related R exe s: Related (' <mods> E<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2164+ command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RE exe s: Related (' <mods> E<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2165+ command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RS exe s: Related (' <mods> S<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2166+ command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RV exe s: Related (' <mods> V<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2167+ command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RT exe s: Related (' <mods> T<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2168+ command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_edit RD exe s: Related (' <mods> D<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2169+ if get (g: , ' rails_no_alternate_commands' , 0 )
2170+ return
2171+ endif
21632172 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_alternate A exe s: Alternate (' <mods> E<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21642173 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_alternate AE exe s: Alternate (' <mods> E<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21652174 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_alternate AS exe s: Alternate (' <mods> S<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21662175 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_alternate AV exe s: Alternate (' <mods> V<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21672176 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_alternate AT exe s: Alternate (' <mods> T<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21682177 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_edit AD exe s: Alternate (' <mods> D<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21692178 command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_edit AR exe s: Alternate (' <mods> D<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2170- command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related R exe s: Related (' <mods> E<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2171- command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RE exe s: Related (' <mods> E<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2172- command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RS exe s: Related (' <mods> S<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2173- command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RV exe s: Related (' <mods> V<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2174- command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_related RT exe s: Related (' <mods> T<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
2175- command ! - buffer - bar -nargs =* -range =0 -complete =customlist ,s: Complete_edit RD exe s: Related (' <mods> D<bang>' ,<line1> ,<line2> ,<count> ,<f-args> )
21762179endfunction
21772180
21782181function ! s: jumpargs (file , jump) abort
0 commit comments