Quickly format a file opened in vim with `npx` and `prettier` with 0 install
▼2 up and 1 down, posted by
2 up and 1 down, posted by
Quickly format a file opened in vim with `npx` and `prettier` with 0 install. :%! npx -q prettier Here is how it works 👇 `%` ➡️ use the actual file `!` ➡️ execute any command `npx -q prettier` ➡️ `-q` makes npx run is silent mode avoiding extra output https://user-images.githubusercontent.com/6654199/40277068-e26ef38e-5be6-11e8-9b45-92f9bcc57142.gif