This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bindkey '^H' backward-delete-char | |
bindkey '^?' backward-delete-char | |
for keymap in emacs viins vicmd | |
do | |
bindkey -M $keymap '^[[H' vi-beginning-of-line | |
bindkey -M $keymap '^[[F' vi-end-of-line | |
bindkey -M $keymap '^[[5~' beginning-of-buffer | |
bindkey -M $keymap '^[[6~' end-of-buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
==UserCSS== | |
@name Tumblr | |
@match *://www.tumblr.com/* | |
@version 1.0 | |
==/UserCSS== | |
*/ | |
/* Tumblr hide noise: */ | |
/* 1. Side bar: */ | |
body#tumblr .e1knl .hF8Wr, /* Headings */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vi-put-before() | |
{ | |
local cursor_position=$CURSOR && | |
zle .vi-put-before && | |
CURSOR=$cursor_position | |
} | |
zle -N vi-put-before |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _history-search-backward() | |
{ | |
zle .history-incremental-pattern-search-backward $BUFFER | |
} | |
function _history-search-forward() | |
{ | |
zle .history-incremental-pattern-search-forward $BUFFER | |
} | |
zle -N history-incremental-pattern-search-backward _history-search-backward | |
zle -N history-incremental-pattern-search-backward _history-search-forward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _vi_ps1_update | |
{ | |
local mode_indicator=? | |
case "$KEYMAP" in | |
'vicmd') | |
mode_indicator=- | |
;; | |
'main') | |
case $(bindkey -lL main) in | |
'bindkey -A viins main') |