Skip to content

Instantly share code, notes, and snippets.

Cece Hedrick piqueen314

Block or report user

Report or block piqueen314

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@piqueen314
piqueen314 / rotate_lines.vim
Created Jul 3, 2016 — forked from anonymous/rotate_lines.vim
Vim rotating lines "screensaver"
View rotate_lines.vim
" Press \r to start rotating lines and <C-c> (Control+c) to stop.
function! s:RotateString(string)
let split_string = split(a:string, '\zs')
return join(split_string[-1:] + split_string[:-2], '')
endfunction
function! s:RotateLine(line, leading_whitespace, trailing_whitespace)
return substitute(
\ a:line,
View OpenWithSublimeText2.bat
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
You can’t perform that action at this time.