1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: restructure config files

This commit is contained in:
Henrik Hautakoski 2024-02-29 13:07:20 +01:00
parent feea9886f5
commit 0ac177ee21
5 changed files with 25 additions and 43 deletions

View file

@ -0,0 +1,21 @@
local map = vim.keymap.set
local cmd = vim.cmd
vim.g.mapleader = " "
-- Undo/Redo in insert mode
map("i", "<C-z>", cmd.undo)
map("i", "<C-y>", cmd.redo)
-- Ctrl+s saves the current buffer in normal/insert mode.
map("n", "<C-s>", cmd.w)
map("i", "<C-s>", cmd.w)
-- Move Text
map("n", "<S-a>", ":m+1<CR>")
map("n", "<S-d>", ":m-2<CR>")
-- Indent
-- Make Shift-Tab undo indent.
map("i", "<S-Tab>", "<C-d>")