Skip to content

Instantly share code, notes, and snippets.

View morhetz's full-sized avatar

Pavel Pertsev morhetz

View GitHub Profile
map <silent> <F4> :call gruvbox#hls_toggle()<CR>
imap <silent> <F4> <ESC>:call gruvbox#hls_toggle()<CR>a
vmap <silent> <F4> <ESC>:call gruvbox#hls_toggle()<CR>gv
nnoremap <silent> <CR> :call gruvbox#hls_hide()<CR><CR>
nnoremap * :let @/ = ""<CR>:call gruvbox#hls_show()<CR>*
nnoremap / :let @/ = ""<CR>:call gruvbox#hls_show()<CR>/
nnoremap ? :let @/ = ""<CR>:call gruvbox#hls_show()<CR>?
function! gruvbox#hls_show()
set hlsearch
call s:HL('Cursor', 'dark0', 'orange')
call s:HL('vCursor', 'dark0', 'orange')
call s:HL('iCursor', 'dark0', 'orange')
call s:HL('lCursor', 'dark0', 'orange')
endfunction
function! gruvbox#hls_hide()
set nohlsearch
@morhetz
morhetz / better-typist.ahk
Created December 13, 2012 19:28
Force hand alteration with Shift, Control and Alt
; -----------------------------------------------------------------------------
; File: better-typist.ahk
; Description: Force hand alteration with Shift, Control and Alt
; Author: morhetz <[email protected]>
; Last Modified: 13 Dec 2012
; -----------------------------------------------------------------------------
keysLeft := "q*w*e*r*t*a*s*d*f*g*z*x*c*v*b"
keysRight := "y*u*i*o*p*[*]*\*h*j*k*l*;*'*n*m*,*.*/"
@morhetz
morhetz / slim-html5-boilerplate.slim
Created November 11, 2012 02:52
Slim HTML5 Boilerplate
doctype html
/[if lt IE 7]
html.no-js.lt-ie9.lt-ie8.lt-ie7
/[if IE 7]
html.no-js.lt-ie9.lt-ie8
/[if IE 8]
html.no-js.lt-ie9
/![if gt IE 8]><!
html.no-js
@morhetz
morhetz / curl.cmd
Created April 6, 2011 00:41
Just put it to your "Git\cmd" directory
@rem Do not use "echo off" to not affect any child calls.
@setlocal
@rem Get the abolute path to the parent directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%