local map = vim.api.nvim_set_keymap local opts = {noremap = true} -- [,w] SAVE map('', 'w', ':update', opts) -- [Q] REFORMAT TEXT map('v', 'Q', 'gq', opts) -- Clipboard Bindings, Prefixing with leader copies to global map('n', 'y', '"+y', opts) map('n', 'p', '"+p', opts) map('v', 'y', '"+y', opts) map('v', 'p', '"+p', opts) map('n', 'Y', '"+Y', opts) map('n', 'P', '"+P', opts) map('v', 'd', '"+d', opts) map('n', 'D', '"+D', opts) -- Find and replace with Ctrl-R map('v', '', '"hy:%s/h//g', opts) -- Apply . to all selected lines map('v', '.', ':normal .', opts) -- Quit window map('', 'qb', ':q', opts) -- Quit all without saving map('', 'qq', ':qa!', opts)