function! sj#vue#SplitCssDefinition()
    if s:GetVueSection() != 'style'
        return 0
    endif
    return sj#css#SplitDefinition()
endfunction

function! sj#vue#JoinCssDefinition()
    if s:GetVueSection() != 'style'
        return 0
    endif
    return sj#css#JoinDefinition()
endfunction

function! sj#vue#SplitCssMultilineSelector()
    if s:GetVueSection() != 'style'
        return 0
    endif
    return sj#css#SplitMultilineSelector()
endfunction

function! sj#vue#JoinCssMultilineSelector()
    if s:GetVueSection() != 'style'
        return 0
    endif
    return sj#css#JoinMultilineSelector()
endfunction

function! s:GetVueSection()
  let l:startofsection = search('\v^\<(template|script|style)\>', 'bn')
  return substitute(getline(startofsection), '\v[<>]', '', 'g')
endfunction


function! sj#vue#SplitCssDefinition()
  if s:GetVueSection() != 'style'
    return 0
  endif
  return sj#css#SplitDefinition()
endfunction

function! sj#vue#JoinCssDefinition()
  if s:GetVueSection() != 'style'
    return 0
  endif
  return sj#css#JoinDefinition()
endfunction

function! sj#vue#SplitCssMultilineSelector()
  if s:GetVueSection() != 'style'
    return 0
  endif
  return sj#css#SplitMultilineSelector()
endfunction

function! sj#vue#JoinCssMultilineSelector()
  if s:GetVueSection() != 'style'
    return 0
  endif
  return sj#css#JoinMultilineSelector()
endfunction

function! s:GetVueSection()
  let l:startofsection = search('\v^\<(template|script|style)\>', 'bn')
  return substitute(getline(startofsection), '\v[<>]', '', 'g')
endfunction

Use 2 spaces for consistency with the codebase
Use 2 spaces for consistency with the codebase

AndrewRadev/splitjoin.vim