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
# duti settings file | |
# src: https://gist.github.com/apfelchips/0073cb3e8d186115f590d318998c1025 | |
# mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/duti/" && curl -L "https://git.io/JRtzH" -o "${XDG_CONFIG_HOME:-$HOME/.config}/duti/default.duti" | |
# duti-apply wrapper: alias duti-apply='duti -v "${XDG_CONFIG_HOME:-$HOME/.config}/duti"' | |
## duti documentation https://web.archive.org/web/20180901095433/http://duti.org/documentation.html | |
## see also: https://github.com/Lord-Kamina/SwiftDefaultApps#readme | |
# List of MIME Types: |
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
# -*- coding: utf-8 -*- | |
import json | |
import sys | |
from ConfigParser import (ConfigParser, MissingSectionHeaderError, | |
ParsingError, DEFAULTSECT) | |
class StrictConfigParser(ConfigParser): | |
def _read(self, fp, fpname): |
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
#!/usr/bin/env bash | |
# | |
# Open new iTerm window from the command line using v3 syntax for applescript as needed in iTerm2 Version 3+ | |
# This script blocks until the cmd is executed in the new iTerm2 window. It then leaves the window open. | |
# TODO Add option to close iTerm2 after cmd execs | |
# See also https://www.iterm2.com/documentation-scripting.html | |
# | |
# Usage: |
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
" Canonical is at https://gist.github.com/aberezin/0ee9c5e6354996849d3b0bcb50c6e29c" | |
" This didnt work for me so lets just manually synch with the gist above | |
" let configpath = '/Users/aberezin/.cvimrc' | |
" set localconfig | |
" ccim_server in ~/bin needs to be run mannually for now. Maybe make a | |
" service | |
set noautofocus | |
set autoupdategist |
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
let hintcharacters="asdfgjkl" | |
map H previousTab | |
map L nextTab | |
map b :buffer<Space> | |
map B :buffer<Space> | |
map u lastClosedTab | |
map O :tabnew<Space> | |
map T :tabnew&<Space> |
My collection of vim tips to make the best editor even better. This is by no means complete or a tutorial on how to use vim, but a set of commands I don't want to forget and need to write them down before they burn into memory. See the resources section below for a more complete introduction and a set of in-depth tutorials.
:tabe SomePath " open a new tab on path :split SomePath (vsplit) " open window (vertical window) on path :r SomePath " read into current buffer
:nn " Jump to line nn