Skip to content

Instantly share code, notes, and snippets.

View Jont828's full-sized avatar

Jonathan Tong Jont828

View GitHub Profile
@Jont828
Jont828 / .Xmodmap
Created February 24, 2018 22:40 — forked from jeffeb3/.Xmodmap
Xmodmap for mimicking pok3r keyboard layer.
! Trying to F*** with my keyboard.
!
! The theory is that if I make the caps lock be the "Mode_switch" key,
! then I can change what happens for each key when I press the "Mode_switch" key.
!
! I'm not using the "Mode_switch" key anyway...
!
! This will make the caps lock be the "Mode_switch" key.
clear Lock
@Jont828
Jont828 / sublime_text_2_perfect_key_bindings
Created June 10, 2017 20:20 — forked from koulmomo/sublime_text_2_perfect_key_bindings
Perfect Sublime Text 2 Key Bindings. Tab to skip out of brackets, braces, parentheses, and quotes/quotations but still be able to indent
[
// Move out of common paired characters () and [] with `Tab`
{
"keys": ["tab"],
"command": "move",
"args": {"by": "characters", "forward": true},
"context": [
// Check if next char matches (followed by anything)
{ "key": "following_text", "operator": "regex_match", "operand": "(:?`|\\)|\\]|\\}).*", "match_all": true },
// ...and that there is a paid character before it on the same
@Jont828
Jont828 / gist:c39726659b96e81d03451157c2885217
Created May 21, 2017 23:11 — forked from zfedoran/gist:2356736
[vim] skip over closing parenthesis with tab button
inoremap <expr> <Tab> SkipClosingParentheses()
function! SkipClosingParentheses()
let line = getline('.')
let current_char = line[col('.')-1]
"Ignore EOL
if col('.') == col('$')
return "\t"
end