Home  >  Q&A  >  body text

vim shortcut key to delete function

Does anyone know how to quickly delete the entire function in vim (C and js functions, anyway, it’s curly braces {})?
V selects multiple lines to delete or counts the number of lines in the function and then Ndd, which is not convenient when the function is very long.

天蓬老师天蓬老师2712 days ago598

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 16:38:33

    daBYou can delete the entire {} (including { and }) content

    reply
    0
  • Cancelreply