>>> from pprint import pprint as pp
>>> from rich import inspect
>>> import datetime
>>> a = 1
```pycon
>>> from pprint import pprint as pp
[ | |
{ | |
"input_combination": [ | |
{ | |
"type": 1, | |
"code": 58, | |
"origin_hash": "99614f2eb2dff6628bd5eff9210e538f" | |
} | |
], | |
"target_uinput": "keyboard", |
>>> from pprint import pprint as pp
>>> from rich import inspect
>>> import datetime
>>> a = 1
```pycon
>>> from pprint import pprint as pp
let mapleader=' '|set nu rnu hid bs=2 ts=4 sw=4 et ai si nocp wmnu tw=79 cc=80 stal=2 cot=menuone,longest,preview ph=10 ruler statusline=%f%m%r%h%w%=%y\ %l,%c\ %p%% | |
let g:p=executable('uv')?'uv run python3':'python3'|let g:d=g:p.' -m pydoc'|let g:c=g:p.' -m py_compile' | |
filetype plugin indent on|sy on|nn <leader>b :ls<cr>:b<space>|nn <leader><Tab> <C-^> | |
au FileType python setl ofu=python3complete#Complete cot=menuone,longest,preview inc=^\s*\(from\|import\) def=^\s*\(def\|class\)|exe 'setl kp='.escape(g:d,' ')|nn <buffer> <leader>k :exe 'vert term ++close '.g:d.' '.expand('<cword>')<CR>|nn <buffer> <leader>r :w<CR>:exe '!'.g:p.' %'<CR> | |
au BufWritePost *.py silent! exe '!'.g:c.' %' | |
au CompleteDone * pc |
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