tpope / vim-surround

surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease

Home Page:https://www.vim.org/scripts/script.php?script_id=1697

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In JavaScript, semicolon not move when I wrap with parentheses

KevinGIRAULT opened this issue · comments

I want to easily wrap my code in an argument. For example:

1 + 1;

I want this to be in console.log() after wrapping: console.log(1+1);

It does not move semicolon which is wrapped :

  • V (shift + v) for select entiere line(s).
  • S (shift + s) for use surround.vim
  • add parentheses (round brackets) and function name.
  • result : console.log(1 + 1;)