Skip to content

Instantly share code, notes, and snippets.

View jamessan's full-sized avatar

James McCoy jamessan

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jamessan on github.
  • I am jamessan (https://keybase.io/jamessan) on keybase.
  • I have a public key whose fingerprint is 91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB

To claim this, I am signing this object:

@jamessan
jamessan / gist:73a2ea1e610cfe757ca6
Created June 29, 2014 16:12
Build entire file list
let files=join(map(range(0, argc()-1), 'shellescape(argv(v:val))'), ' ')
call system('gvim ' . files . ' ' . opts)
qall
@jamessan
jamessan / gist:5794112
Last active December 18, 2015 13:59
Exit vim with an error if a command-line argument is a directory
fun! ErrorOnDirectory()
for i in range(argc())
if isdirectory(argv(i))
cquit
endif
endfor
endfun
augroup NoDirectories
autocmd!