Solinvictus :verified: · @dminca
37 followers · 930 posts · Server mastodontech.de

Copy to system clipboard from guide:

1. In your ~/.vimrc set
set clipboard=unnamed

2. Open a file and yank whatever you want, in this example we yank lines 4 and 5 to system clipboard; in command mode, type 4,5y *
set ts=2
set sts=2
set sw=2
filetype off
filetype plugin indent on
syntax on
set expandtab

3. Profit
Paste anywhere you want
filetype off
filetype plugin indent on

#vim #vimtricks #vimtips

Last updated 2 years ago

Solinvictus :verified: · @dminca
37 followers · 930 posts · Server mastodontech.de

Copy to system clipboard from guide:

1. In your ~/.vimrc set
set clipboard=unnamed

2. Open a file and yank whatever you want, in this example we yank lines 4 and 5 to system clipboard; in command mode, type 4,5y
set ts=2
set sts=2
set sw=2
filetype off
filetype plugin indent on
syntax on
set expandtab

3. Profit
Paste anywhere you want
filetype off
filetype plugin indent on

#vim #vimtricks #vimtips

Last updated 2 years ago

casper · @asynkronxyz
34 followers · 35 posts · Server hachyderm.io

jq, the little cli json processor, is an elegant way to transform JSON files inside Vim. For easy format and compress I do:

format :%!jq . [leader-j-f]
compress :%!jq -c . [leader-j-c]

#vim #vimtricks

Last updated 2 years ago

Tom Brand · @Eggfreckles
193 followers · 1764 posts · Server mastodon.mit.edu

I am training up my left hand escape key pinky finger.

#vimtricks

Last updated 2 years ago

OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social

How To Comment Out Multiple Lines At Once In Vim Editor
ostechnix.com/comment-multiple

#CLI #vimtricks #Linux #vim

Last updated 5 years ago