local map = vim.keymap.set local default_options = { noremap = true, silent = true } --local expr_options = { noremap = true, expr = true, silent = true } -- space one line, home,end globally increase/decrease map('n', '', 'zc', default_options) map('n', '', 'zo', default_options) map('t', '', '', default_options) map('i', 'jj', '', default_options) map('i', 'jk', '', default_options) --map('i', ':w', ':w', default_options) map('n', 'Q', ':q', default_options) -- Reselect visual block after incrementing/decrementing map('v', '', 'gv', default_options) map('v', '', 'gv', default_options) map('n', 'y', '"_y', default_options) map('n', 'd', '"_d', default_options) map('v', 'p', '"_p', default_options) map('v', 'p', '"_dp', default_options) map('v', 'P', '"_dP', default_options) map('n', '2', 'set tabstop=2 softtabstop=2 shiftwidth=2', default_options) map('n', '4', 'set tabstop=4 softtabstop=4 shiftwidth=4', default_options) map('n', '8', 'set tabstop=8 softtabstop=8 shiftwidth=8', default_options)