Skip to content

Instantly share code, notes, and snippets.

View b3niup's full-sized avatar

Benedykt Przybyło b3niup

  • Don't Panic! ~ Benedykt Przybyło
  • Cracow, Poland
View GitHub Profile
@b3niup
b3niup / .vimrc
Created September 6, 2015 13:40
vim H and L mappings
" Jump to first character or last column
noremap <silent> L :call FirstCharOrLastCol()<cr>
function! FirstCharOrLastCol()
let current_col = virtcol('.')
normal ^
let first_char = virtcol('.')
if current_col >= first_char
normal $
endif
endfunction
@b3niup
b3niup / catch
Last active August 29, 2015 14:24
Simple script to create gifs and screenshots (depends on out file extension) of selected part of the screen.
#!/bin/bash
#
# Author: Benedykt 'b3niup' Przybyło
# Date: 2015-07-02
#
# Required: curl, scrot, ffmpeg, ffcast (https://github.com/lolilolicon/FFcast)
#
# Simple script to create gifs and screenshots (depends on out file extension) of selected part of the screen.
#
#!/bin/bash
### Author: Benedykt 'b3niup' Przybyło
USAGE="Usage: ./$0 [options as for regular cp]"
#*****************************************************************************#
#** Helpers **#