Suppose you have weird taste and you absolutely want:
- your visual selection to always have a green background and black foreground,
- your active statusline to always have a white background and red foreground,
- your very own deep blue background.
/* | |
* Author: Felipe Herranz ([email protected]) | |
* Contributors:Francesco Verheye ([email protected]) | |
* Israel Dominguez ([email protected]) | |
*/ | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.atomic.AtomicBoolean; | |
import android.os.Handler; |
# On slow systems, checking the cached .zcompdump file to see if it must be | |
# regenerated adds a noticable delay to zsh startup. This little hack restricts | |
# it to once a day. It should be pasted into your own completion file. | |
# | |
# The globbing is a little complicated here: | |
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
# - '.' matches "regular files" | |
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
autoload -Uz compinit |
-- Fuzzy Window Switcher | |
_fuzzyChoices = nil | |
_fuzzyChooser = nil | |
_fuzzyLastWindow = nil | |
function fuzzyQuery(s, m) | |
s_index = 1 | |
m_index = 1 | |
match_start = nil |
[Desktop Entry] | |
Version=1.0 | |
Name=AVD | |
Comment=AVD | |
Exec=bash -c "DEVICES=$(/home/jason/Android/Sdk/tools/emulator -list-avds 2>&1) && /home/jason/Android/Sdk/tools/emulator @${DEVICES[0]}" | |
Icon=/home/jason/Android/Sdk/platforms/android-23/templates/ic_launcher_xhdpi.png | |
Terminal=false | |
Type=Application | |
Categories=Utility;Application; |
Suppose you have weird taste and you absolutely want:
#!/usr/bin/env python | |
# | |
# Convert .itermcolors files to hex colors for html | |
import sys | |
import xml.etree.ElementTree as ET | |
def rgb_to_hex(rgb): | |
return '#%02x%02x%02x' % rgb |
FOREWORDS
I don't mean the snippet at the bottom of this gist to be a generic plug-n-play solution to your search needs. It is very likely to not work for you or even break things, and it certainly is not as extensively tested and genericised as your regular third-party plugin.
My goal, here and in most of my posts, is to show how Vim's features can be leveraged to build your own high-level, low-maintenance, workflows without systematically jumping on the plugins bandwagon or twisting Vim's arm.
cd "$HOME"/.mozilla/firefox || exit; profile="$(sed -n '/\[Install/,/^$/p' profiles.ini | grep Default=)"; fpath="${profile##*=}" |