Skip to content

Instantly share code, notes, and snippets.

View alok's full-sized avatar

Alok Singh alok

View GitHub Profile
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Last edited by Ukelele version 3.2.5.180 on 2017-09-14 at 19:19 (PDT)-->
<keyboard group="0" id="11194" name="No Unicode Colemak" maxout="1">
<layouts>
<layout first="0" last="17" mapSet="16c" modifiers="f4"/>
<layout first="18" last="18" mapSet="984" modifiers="f4"/>
<layout first="21" last="23" mapSet="984" modifiers="f4"/>
<layout first="30" last="30" mapSet="984" modifiers="f4"/>
<layout first="194" last="194" mapSet="984" modifiers="f4"/>
hs.window.animationDuration = 0
hs.hotkey.bind({"shift", "ctrl"}, "T", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
@alok
alok / a.rb
Created November 18, 2016 09:38
E121: Undefined variable: b:dittoMatchedwords
Error detected while processing function <SNR>333_dittoTextChangedI[7]..<SNR>333_clearCurrentScope[15]..<SNR>333_clearMatches:
line 13:
E116: Invalid arguments for function len(b:dittoMatchedwords)
Error detected while processing function <SNR>333_dittoTextChangedI[7]..<SNR>333_clearCurrentScope[15]..<SNR>333_clearMatches:
line 13:
E15: Invalid expression: i < len(b:dittoMatchedwords)
Error detected while processing function <SNR>333_dittoTextChangedI[7]..<SNR>333_clearCurrentScope[15]..<SNR>333_clearMatches:
line 13:
E121: Undefined variable: b:dittoMatchedwords
hs.hotkey.bind({"shift", "ctrl"}, "T", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h
@alok
alok / a.rb
Created November 15, 2016 13:20
/Users/alokbeniwal/.config/nvim/after/init-after.vim:43:let g:incsearch#auto_nohlsearch = 1
/Users/alokbeniwal/.config/nvim/after/init-after.vim:45:let g:incsearch#magic = '\v'
/Users/alokbeniwal/.config/nvim/after/init-after.vim:46:let g:incsearch#separate_highlight = 1
/Users/alokbeniwal/.config/nvim/after/init-after.vim:47:let g:incsearch#do_not_save_error_message_history = 1
/Users/alokbeniwal/.config/nvim/after/init-after.vim:48:map / <Plug>(incsearch-index-/)
/Users/alokbeniwal/.config/nvim/after/init-after.vim:49:map ? <Plug>(incsearch-index-?)
/Users/alokbeniwal/.config/nvim/after/init-after.vim:50:map <silent> n <Plug>(incsearch-nohl-n)zv:ShowSearchIndex<CR>
/Users/alokbeniwal/.config/nvim/after/init-after.vim:51:map <silent> N <Plug>(incsearch-nohl-N)zv:ShowSearchIndex<CR>
/Users/alokbeniwal/.config/nvim/after/init-after.vim:52:map <silent> * <Plug>(incsearch-nohl0)<Plug>(asterisk-z*)zv:ShowSearchIndex<CR>
/Users/alokbeniwal/.config/nvim/after/init-after.vim:53:map <silent> g* <Plug>(incsearch-no
@alok
alok / a.rb
Created November 15, 2016 05:45
docker run -a stderr --rm -v /Users/alokbeniwal/neomake:/testplugin -v /Users/alokbeniwal/neomake/tests/vim:/home neomake/vims-for-tests make -C /testplugin testvim TEST_VIM=/vim-build/bin/vim8069 VIM_ARGS="'+Vader! tests/neomake.vader'"
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 10 2016 21:01:18)
Included patches: 1-69
Compiled by vim-testbed
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl