From 86628d459cabd0c29f0cdbb699e2e18807b958ed Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 13 Oct 2022 23:52:54 +0200 Subject: Removed unnecessary files/lines --- lua/keys.lua | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'lua/keys.lua') diff --git a/lua/keys.lua b/lua/keys.lua index 1995976..29b59c4 100644 --- a/lua/keys.lua +++ b/lua/keys.lua @@ -22,7 +22,7 @@ vim.g.mapleader = ";" map("i", "jj", "", opts) -- save quickly -map("n", ";w", ":w", d("Save buffer")) +--map("n", ";w", ":w", d("Save buffer")) --Easier split navigations, just ctrl-j instead of ctrl-w then j map("n", "", "", opts) @@ -42,6 +42,35 @@ map("n", "d", ":bd", opts) map("n", "", ':let save_a=@a"add"ap:let @a=save_a', opts) map("n", "", ':let save_a=@a"add"ap:let @a=save_a', opts) +map("n", "", "!clear", opts) +vim.cmd([[ + inoremap + inoremap + inoremap + inoremap +]]) + +vim.cmd([[ + cnoremap + cnoremap + cnoremap + cnoremap +]]) + +--vim.cmd([[ +-- cnoremap +-- cnoremap +-- cnoremap +-- cnoremap +--]]) + +vim.cmd([[ + snoremap + snoremap + snoremap + snoremap +]]) + -- move block easily map("n", "<", "<<", d("Decrease indent")) map("n", ">", ">>", d("Increase indent")) @@ -144,6 +173,10 @@ endfunction nnoremap :call ToggleHiddenAll() ]]) +vim.cmd([[ + map s :up \| saveas! %:p:r-=strftime("%y.%m.%d-%H:%M")-bak.=expand("%:e") \| 3sleep \| e # +]]) + -------------- Telescope -------------- --Telescope find_files cwd=.. map("n", "fc", "lua require('telescope.builtin').commands()", opts) -- cgit v1.2.3