A comprehensive collection of Vim power-user techniques
adapted from zzapper
A comprehensive collection of Vim power-user techniques
adapted from zzapper
vim9script | |
# simple fuzzy find finder | |
# place into ~/.vim/plugin/fuzzyfind.vim | |
set wildmode=noselect:lastused,full | |
set wildmenu wildoptions=pum,fuzzy pumheight=12 | |
cnoremap <Up> <C-U><Up> | |
cnoremap <Down> <C-U><Down> |
#!/usr/bin/env python3 | |
import asyncio | |
import random | |
import datetime | |
import time | |
import os | |
from concurrent.futures import ThreadPoolExecutor | |
# Configuration | |
BATCH_SIZE = 10000 |
" ----------------------------- | |
" rochaCbruno Vim 9.1 config | |
" ----------------------------- | |
" --- Leader keys --- | |
let mapleader = "," | |
let maplocalleader = "," | |
source ~/.vim/functions.vim | |
source ~/.vim/commands.vim | |
source ~/.vim/plugins.vim |
{ | |
"Presenterm Intro Slide": { | |
"prefix": "ptitle", | |
"body": [ | |
"---", | |
"title: \"${1:Your Title}\"", | |
"sub_title: \"${2:Your Subtitle (optional)}\"", | |
"author: ${3:Your Name}", | |
"---" | |
], |
uv run --with gradio gui.py
from dataclasses import dataclass | |
@dataclass | |
class Potato: | |
value: str | |
class EnglishPotato(Potato): ... |
// Python comprehension proc macro that handles multiple nested for-if-clauses, flattening nested structure. | |
// Example: | |
// | |
// let vec_of_vecs = vec![vec![1, 2, 3], vec![4, 5, 6]]; | |
// | |
// let result = comp![x for vec in vec_of_vecs for x in vec].collect::<Vec<_>>(); | |
// assert_eq!(result, [1, 2, 3, 4, 5, 6]); | |
// | |
use proc_macro2::TokenStream as TokenStream2; |