Last active
April 26, 2018 20:19
-
-
Save jsylvanus/caec49dd76b6299f935b to your computer and use it in GitHub Desktop.
Squint test w/ BLOKK font
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Throw me in your ~/.gvimrc | |
let g:squinty = 0 | |
function! Squint() | |
let windowBounds = system("osascript -e 'tell application \"MacVim\" to get bounds of window 1'")[:-2] | |
if g:squinty | |
set guifont=InputMonoCondensed_Thin:h14 | |
let g:squinty = 0 | |
else | |
set guifont=BLOKK:h6 | |
let g:squinty = 1 | |
endif | |
let thecommand = "osascript -e 'tell application \"MacVim\" to set bounds of window 1 to {" . windowBounds . "}'" | |
let result = system(thecommand) | |
redraw! | |
endfunction | |
nnoremap <F6> :call Squint()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It does seem to lose a little bit of height over several toggles...