This commit is contained in:
Adam 2024-01-19 00:14:15 -05:00
parent 275600879d
commit ee5b10d8f0

View file

@ -6,8 +6,8 @@ vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
vim.keymap.set('n', '<leader>pv', vim.cmd.Ex) vim.keymap.set('n', '<leader>pv', vim.cmd.Ex)
-- Select and Drag -- Select and Drag
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv")
-- J without moving cursor -- J without moving cursor
vim.keymap.set('n', 'J', 'mzJ`z') vim.keymap.set('n', 'J', 'mzJ`z')
@ -21,10 +21,10 @@ vim.keymap.set('n', 'n', 'nzzzv')
vim.keymap.set('n', 'N', 'Nzzzv') vim.keymap.set('n', 'N', 'Nzzzv')
-- Paste without yank -- Paste without yank
vim.keymap.set('x', '<leader>p', '\"_dP') vim.keymap.set('x', '<leader>p', '"_dP')
-- Delete without yank -- Delete without yank
vim.keymap.set({ 'n', 'v' }, '<leader>d', '\"_d') vim.keymap.set({ 'n', 'v' }, '<leader>d', '"_d')
-- no -- no
vim.keymap.set('n', 'Q', '<nop>') vim.keymap.set('n', 'Q', '<nop>')
@ -62,10 +62,9 @@ vim.api.nvim_create_autocmd('TextYankPost', {
}) })
-- Git stuff -- Git stuff
vim.keymap.set('n', '<leader>gs', ":G status<CR>") vim.keymap.set('n', '<leader>gs', ':G status<CR>')
vim.keymap.set('n', '<leader>ga', ":G add %<CR>") vim.keymap.set('n', '<leader>ga', ':G add %<CR>')
vim.keymap.set('n', '<leader>gc', [[:G commit -m ""<Left>]]) vim.keymap.set('n', '<leader>gc', [[:G commit -m ""<Left>]])
vim.keymap.set('n', '<leader>gp', ":G push<CR>") vim.keymap.set('n', '<leader>gp', ':G push<CR>')
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et