Skip to content

Instantly share code, notes, and snippets.

View EgZvor's full-sized avatar

Egor Zvorykin EgZvor

  • Санкт-Петербург
View GitHub Profile
@EgZvor
EgZvor / ash.vim
Last active January 25, 2022 11:22
Automatic search highlighting clearing for Vim
if exists('g:loaded_auto_search_highlighting')
finish
endif
let g:loaded_auto_search_highlighting = 1
if ! exists('g:auto_search_highlighting')
let g:auto_search_highlighting = 1
endif
@EgZvor
EgZvor / focus_vim.py
Created February 17, 2022 19:38
Find Vim window in i3 by its server name
#!/usr/bin/python3
"""
The script accepts either an argument or stdin line as a Vim server name
and focuses on i3 window contaning that Vim instance.
Read `:help client-server
<http://vimdoc.sourceforge.net/htmldoc/remote.html#client-server>`_.
Requires ``psutil`` ::
@EgZvor
EgZvor / process-vim-log.py
Last active July 4, 2022 12:40
A script to convert specially constructed Vim log into a lines with raw key presses.
"""See
https://hub.netzgemeinde.eu/channel/vim_sensei?mid=b64.aHR0cHM6Ly9odWIuaG90ZWxkYWFuLm5sL2l0ZW0vZGU2MjI1MDgtZjc1Ni00MGUzLWI1MTgtYjE1YTkwYTg2MWJi
for details on how to set up Vim to produce the log that this script parses.
"""
import fileinput
import os
import re
import signal
import sys
@EgZvor
EgZvor / keymap.c
Created May 27, 2023 07:32
[QMK] feature/streak
#include <string.h>
#include QMK_KEYBOARD_H
#include "streak.h"
enum keycodes {
STREAK = SAFE_RANGE,
};