Skip to content

Instantly share code, notes, and snippets.

vim.g.keyboard_layout = vim.fn.system("defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleSelectedInputSources | grep -q Colemak && echo 'colemak' || echo 'qwerty'"):gsub("\n", "")
function ToggleKeyboardLayout()
if vim.g.keyboard_layout == "colemak" then
vim.g.keyboard_layout = "qwerty"
-- Unmap Colemak bindings
vim.keymap.del({"n", "v", "o"}, "n")
vim.keymap.del({"n", "v", "o"}, "e")
vim.keymap.del({"n", "v", "o"}, "i")
vim.keymap.del("n", "t")
@jgarcia
jgarcia / Default (OSX).sublime-keymap
Created January 15, 2012 14:45
User Key Bindings on mac
[
{
"keys":["ctrl+w", "h"],
"command":"focus_group",
"args":{"group":0},
"context":[{"key":"setting.vintage_ctrl_keys"}, {"key":"setting.command_mode"}]
},
{
"keys":["ctrl+w", "j"],
@jgarcia
jgarcia / revisa_modulos_spec.rb
Created November 5, 2011 22:19
Rspec en español
describe RevisaModulos do
eso 'hace algo'
contexto 'cuando las cosas salen mal' do
eso 'truena'
end
end