Skip to content

Commit f8ac0e9

Browse files
committed
vim: define commands after +huge fold
8.1.1210+ includes the +user_commands feature.
1 parent e863bff commit f8ac0e9

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

shared.vim

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -435,20 +435,6 @@ if has('quickfix')
435435
let &grepprg = executable('findstr.exe') ? 'findstr /s /r /p /n $* nul' : ''
436436
endif
437437
endif
438-
439-
if has('user_commands')
440-
command! SpaceToTab setlocal noexpandtab | retab!
441-
command! TabToSpace setlocal expandtab | retab
442-
443-
if has('modify_fname')
444-
command! -nargs=1 SetShell call s:set_shell(<f-args>)
445-
endif
446-
447-
if has('syntax')
448-
command! SynName echo s:synname()
449-
command! ToggleSpell call <SID>toggle_spell()
450-
endif
451-
endif
452438
" }}}normal
453439
" {{{big
454440
if has('langmap')
@@ -464,6 +450,21 @@ if has('signs') && has('patch-7.4.2201')
464450
endif
465451
" }}}big
466452

453+
" Moved from normal to tiny version since 8.1.1210
454+
if has('user_commands')
455+
command! SpaceToTab setlocal noexpandtab | retab!
456+
command! TabToSpace setlocal expandtab | retab
457+
458+
if has('modify_fname')
459+
command! -nargs=1 SetShell call s:set_shell(<f-args>)
460+
endif
461+
462+
if has('syntax')
463+
command! SynName echo s:synname()
464+
command! ToggleSpell call <SID>toggle_spell()
465+
endif
466+
endif
467+
467468
" Moved from normal to tiny version since 8.0.1564
468469
if has('autocmd')
469470
" Vim

0 commit comments

Comments
 (0)