Hello !

In my day to day work I often have to write small snippets to illustrate ticket tech strategy.

I was wondering if you guys knew a cool way to have quick scratchpad where I could manipulate the snippet, format it, and have minimal syntax coloration.

This is usually handled by LSP, but sometimes having a full lsp running is not practical, with all the overhead of typescript config for example.

Main formats are JSON, typescript and soon Rust.

Cheers

  • Butt Pirate@reddthat.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 months ago

    I almost always have a terminal open so I just open Vim run :set ft=json (or whatever format) write what I need then just:

    gg

    shift-v

    G

    Y

    and paste it where I need. You do need set clipboard=unnamedplus in your vimrc so Vim uses your system clipboard.