Copy to system clipboard from #vim 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
Copy to system clipboard from #vim 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
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]
How To Comment Out Multiple Lines At Once In Vim Editor #vim #linux #VimTricks #CLI
https://www.ostechnix.com/comment-multiple-lines-vim-editor/