Pages

Saturday, August 17, 2024

3 ways to write html for a blogger post using vim.

there are three ways to input html.

  1. omni complete (ctrl+x+ctrl+o)
  2. emmet (mine is norm comma)
  3. vim surround plugin

I just think its neat that I am SSH'd into a raspberry pi from a macbook running Linux Mint. I am Able to create and post to a blog from within a vim buffer written as html using emmet mostly but also sometimes vim surround or omni complete. What I like about omni complete is it doesn't require any plugins although emmet is just way better imo.

The problem with vim surround is it formats the html a little weird. It puts the tags on their own seperate light, which is kind of great/horrible. In some ways it makes it easier to see and delete the tags if you want but also that can kind of suck If you like everything nice and neat on the same line.

No comments:

Post a Comment