Skip to content

Instantly share code, notes, and snippets.

View Raimondi's full-sized avatar

Israel Chauca Fuentes Raimondi

View GitHub Profile
@Raimondi
Raimondi / vim_regex_magic.md
Created July 18, 2023 22:36
Vim Regex Magic Values
Help Tag Very Magic (\v) Magic (\m) No Magic (\M) Very No Magic \V
/^ ^ ^ ^ \^
/$ $ $ $ \$
/\~ ~ ~ \~ \~
/* * * \* \*
/. . . \. \.
/\[] [] [] \[] \[]
/\+ + \+ \+ \+
/\< < \< \< \<
@Raimondi
Raimondi / profile.txt
Last active October 23, 2020 01:38
vim -u profile.vim
FUNCTION Profile1()
Defined: ~/Documents/Source/playground/profile.vim line 2
Called 1 time
Total time: 2.985510
Self time: 2.985510
count total (s) self (s)
1 0.000020 let a = 'a'
1 0.000002 let b = 'b'
1 0.000001 let c = 'c'
@Raimondi
Raimondi / vimModeStateDiagram.svg
Created November 14, 2018 00:51 — forked from darcyparker/vimModeStateDiagram.svg
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Raimondi
Raimondi / SortUnfolded.vim
Last active November 25, 2019 17:15 — forked from inkarkat/SortUnfolded.vim
A sort function for Vim that keeps folded lines intact.
":[range]SortUnfolded[!] [i][u][r][n][x][o] [/{pattern}/]
" Sort visible lines in [range]. Lines inside closed folds
" are kept intact; sorting is done only on the first line
" of the fold; the other lines inside the fold move with
" it as a unit.
" Copyright: (C) 2018 Israel Chauca
" 2012 Ingo Karkat
" The VIM LICENSE applies to this scriptlet; see ':help copyright'.
" Inspiration:
" http://stackoverflow.com/questions/13554191/sorting-vim-folds
@Raimondi
Raimondi / tmux.md
Created October 22, 2017 19:41 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

#!/bin/bash
# https://smithje.github.io/bash/2013/07/08/moon-phase-prompt
get_phase_day () {
local lp=2551443
local now=$(date -ju +"%s")
local newmoon=592500
local phase=$((($now - $newmoon) % $lp))
echo $(((phase / 86400) + 1))
}
" Raimondi @ Freenode
"
" - Next
" - Previous
" - Jump to start
" - Jump to end
" - Jump to N
" - Jump by N
" - List color schemes
" - Refresh color scheme list
@Raimondi
Raimondi / Ledger_3_commands.dat
Created June 17, 2017 18:12 — forked from agaviria/Ledger_3_commands.dat
Collection of ledger-cli commands
# comments example for .dat or .ledger files
@smallexample
; This is a single line comment,
# and this,
% and this,
| and this,
* and this.
# If you have a deeply nested tree of accounts,
# it may be convenient to define an alias, for example:
Processing file /var/folders/rc/owing things:ng your code!bx05jw0000gn/T/nvimGL5Ztr/1.elm
ERRORSp97nn03xncbwbx05jw0000gn/T/nvimGL5Ztr/1.elm
^[[36m-- SYNTAX PROBLEM - /var/folders/rc/yr76zbp97nn03xncbwbx05jw0000gn/T/nvimGL5Ztr/1.el
Processing file /var/folders/rc/owing things:sing your code!
ERRORSp97nn03xncbwbx05jw0000gn/T/nvimGL5Ztr/1.elm