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
*CapsLock::Escape |
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
; Since I disable interop in WSL, this means I isolate my VM from Windows | |
; but copy pasting between WSL and Windows is also isolated. | |
; It's easier to copy from Windows to WSL via `Shift + Ins` | |
; but not easy to copy from WSL to Window, hence this autohotkey v2 script. | |
; Pressing `Win + V` will read a txt file that WSL can write to, and | |
; add to the clipboard. Save the old clipboard contents that I can | |
; still use `Ctrl + V` to paste the original copied content. |
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
/** | |
* A quick, simple way to connect to a channel as a twitch chat bot. Works in the browser, deno and nodejs. | |
* Note for nodejs, you will need the `ws` package. | |
* | |
* OAUTH_TOKEN: https://twitchapps.com/tmi/ (omit 'oauth:' from the string) | |
* BOT_USERNAME: Name of the bot that will be used to post messages to the main channel | |
* CHANNEL_NAME: Name of the target channel for the BOT_USERNAME to join | |
*/ | |
// For NodeJS only: `npm install ws` |
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
Shamelessly copied from: https://github.com/jarun/nnn/wiki/Usage | |
NAVIGATION | |
Up k Up PgUp ^U Scroll up | |
Dn j Down PgDn ^D Scroll down | |
Lt h Parent ~ ` @ - HOME, /, start, last | |
Ret Rt l Open ' First file | |
g ^A Top . F5 Toggle hidden | |
G ^E End 0 Lock terminal | |
b ^/ Bookmark key , Pin CWD |
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
-- ==================================================================================== | |
-- Functions | |
-- ==================================================================================== | |
-- For plugins that use g: for configurations | |
local function plugins_init() | |
vim.g.airline_theme = 'base16' | |
vim.g.github_enterprise_urls = { 'https://github.prod.hulu.com' } | |
vim.g.airline_powerline_fonts = 1 | |
vim.g['airline#extensions#tabline#enabled'] = 1 |
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
-- ============================================================================= | |
-- = Utils/Functions = | |
-- ============================================================================= | |
function CursorMode() | |
local mode = vim.fn.mode() | |
if mode == 'n' then | |
return 'NORMAL' | |
elseif mode == 'i' then | |
return 'INSERT' |
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
" ============================================================================= | |
" = Utils/Functions = | |
" ============================================================================= | |
function! CursorMode() abort | |
if mode() == 'n' | |
return 'NORMAL' | |
elseif mode() == 'i' | |
return 'INSERT' | |
elseif mode() == 'c' |
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
-- ============================================================================= | |
-- = Utils/Functions = | |
-- ============================================================================= | |
-- Global option | |
local o = vim.o | |
-- Window option | |
local wo = vim.wo | |
-- One line execution, like :h execute | |
local cmd = vim.cmd |
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
-- ============================================================================= | |
-- = Plugins = | |
-- ============================================================================= | |
-- Plugin settings that are set with g: variable should be declared BEFORE you load the plugins | |
-- For example: "let g:varname = ..." becomes "vim.g.varname = ..." | |
-- "let g:var#name#with#hash = ..." => "vim.g['var#name#with#hash'] = ..." | |
-- Load the plugins |
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
" Minimal vim config | |
" ============================================================================= | |
filetype plugin indent on | |
" ============================================================================= | |
" = Plugin Manager = | |
" ============================================================================= | |
" Use any plugin manager here |
NewerOlder