I have YouCompleteMe installed; however that only complete certain words or phrases. I am looking for something similar in VSCode or Emacs' Yasnippet. For example, if I type if, then press Tab, then a snippet of the if statement would get inserted like this:
if($1){
$2
}
where $1 and $2 are my cursor placeholders. I navigate between them with Tab. Is there anything like this for vim?