Skip to content

Instantly share code, notes, and snippets.

@Huluk
Huluk / gist:5117702
Last active December 8, 2023 22:34
Open Files with Terminal Vim by default [mac, iterm]
If you want your terminal vim to open files you double click, follow the following steps (MacOS only):
1. Open Automator
2. Select Application
3. Copy the attached file
4. Save and set as default for opening files
Multiple files are opened in vim tabs.
If there is already a vim instance running, files are opened in it.
@darcyliu
darcyliu / cbom.go
Created August 13, 2012 16:32
UTF-8 BOM Checker
// Check UTF-8 BOM
// go run cbom.go -path=hello.txt
package main
import(
"flag"
"os"
"log"
"fmt"
)