<commit_before>filetype plugin on
runtime! plugin/operator/*.vim

scriptencoding utf-8

function! s:paste_code(lines)
  put =a:lines
  1 delete _
endfunction

describe 'del-pair'
  before
    new
    set filetype=
  end

  after
    close!
  end

  it '(tako)'
    call s:paste_code(['(tako)'])
    normal! gg0
    execute 'normal' "\<Plug>(operator-delblock)f)"
    Expect getline(1) == 'tako'
  end

  it '{tako}'
    call s:paste_code(['{tako}'])
    normal! gg0
    execute 'normal' "\<Plug>(operator-delblock)f}"
    Expect getline(1) == 'tako'
  end

  it '[tako]'
    call s:paste_code(['[tako]'])
    normal! gg0
    execute 'normal' "\<Plug>(operator-delblock)f]"
    Expect getline(1) == 'tako'
  end

  it '"tako"'
    call s:paste_code(['"tako"'])
    normal! gg0
    execute 'normal' "\<Plug>(operator-delblock)f\""
    Expect getline(1) == 'tako'
  end

  it '<tako>'
    call s:paste_code(['<tako>'])
    normal! gg0
    execute 'normal' "\<Plug>(operator-delblock)f>"
    Expect getline(1) == 'tako'
  end

  it '''tako'''
    call s:paste_code(['''tako'''])
    normal! gg0
    execute 'normal' "\<Plug>(operator-delblock)f'"
    Expect getline(1) == 'tako'
  end

end

" vim:set et ts=2 sts=2 sw=2 tw=0 fdm=marker:<commit_msg>no_ft.vim<commit_after>filetype plugin on
runtime! plugin/operator/*.vim

scriptencoding utf-8

function! s:paste_code(lines)
  put =a:lines
  1 delete _
endfunction

for g:fp in ['', 'tex', 'c', 'vim']
  describe 'del-pair'
    before
      new
      execute "setlocal filetype=" . g:fp
    end

    after
      close!
    end

    it '(tako)'
      call s:paste_code(['(tako)'])
      normal! gg0
      execute 'normal' "\<Plug>(operator-delblock)f)"
      Expect getline(1) == 'tako'
    end

    it '{tako}'
      call s:paste_code(['{tako}'])
      normal! gg0
      execute 'normal' "\<Plug>(operator-delblock)f}"
      Expect getline(1) == 'tako'
    end

    it '[tako]'
      call s:paste_code(['[tako]'])
      normal! gg0
      execute 'normal' "\<Plug>(operator-delblock)f]"
      Expect getline(1) == 'tako'
    end

    it '"tako"'
      call s:paste_code(['"tako"'])
      normal! gg0
      execute 'normal' "\<Plug>(operator-delblock)f\""
      Expect getline(1) == 'tako'
    end

    it '<tako>'
      call s:paste_code(['<tako>'])
      normal! gg0
      execute 'normal' "\<Plug>(operator-delblock)f>"
      Expect getline(1) == 'tako'
    end

    it '''tako'''
      call s:paste_code(['''tako'''])
      normal! gg0
      execute 'normal' "\<Plug>(operator-delblock)f'"
      Expect getline(1) == 'tako'
    end
  end
endfor

" vim:set et ts=2 sts=2 sw=2 tw=0 fdm=marker:
{'fraction_non_alphanumeric': 0.17323730098559514, 'fraction_numerical': 0.013646702047005308, 'mean_word_length': 2.8525547445255475, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1716252', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1002, 'n_words': 228}