vim.cmd("set mouse=") vim.cmd("set number relativenumber") vim.cmd("set nowrap") vim.cmd("set scrolloff=9") vim.cmd("set tabstop=4") vim.cmd("set shiftwidth=4") vim.cmd("set ignorecase smartcase") vim.keymap.set('n', 'ff', 'Telescope find_files') vim.keymap.set('n', 'fr', 'Telescope oldfiles') vim.keymap.set('n', 'fg', 'Telescope git_files') vim.keymap.set('n', '>', '>>^') vim.keymap.set('n', '<', '<<^') vim.keymap.set('v', '<', '', '>gv^') vim.keymap.set('n', 'w', 'w') vim.keymap.set('n', 'q', 'q') vim.keymap.set('n', 'c', ':bdelete') vim.keymap.set('n', '', 'bprevious') vim.keymap.set('n', '', 'bnext') vim.keymap.set('n', "", "resize -2") vim.keymap.set('n', "", "resize +2") vim.keymap.set('n', "", "vertical resize -2") vim.keymap.set('n', "", "vertical resize +2") vim.keymap.set('n', "", ":terminal") vim.keymap.set('n', "", ":terminal") -- This is Ctrl+/ on some terminals? vim.cmd("autocmd TermOpen * setlocal nonumber norelativenumber signcolumn=no") for _, key in pairs({ 'h', 'j', 'k', 'l' }) do for _, mod in pairs({ 'C', 'A' }) do vim.keymap.set( 't', '<' .. mod .. '-' .. key .. '>', '<' .. mod .. '-' .. key .. '>', { remap = true } ) end end vim.api.nvim_create_autocmd('TextYankPost', { callback = function() vim.highlight.on_yank() end }) local fname = os.getenv("HOME") .. "/.bck-nvim.lua" local f = io.open(fname, "r") if f ~= nil then io.close(f) vim.cmd('luafile ' .. fname) end