add alias to vim homedir and git remaps
This commit is contained in:
parent
38bb8948a6
commit
2184d0d904
4 changed files with 51 additions and 26 deletions
|
|
@ -7,7 +7,8 @@ local nmap = Remap.nmap
|
|||
nnoremap("<leader>pv", "<cmd>Ex<CR>")
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set("n", "<leader>ff", builtin.find_files, {})
|
||||
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
|
||||
vim.keymap.set("n", "<leader>/", builtin.live_grep, {})
|
||||
vim.keymap.set("n", "<leader>*", builtin.grep_string, {})
|
||||
vim.keymap.set("n", "<leader>fb", builtin.buffers, {})
|
||||
vim.keymap.set("n", "<leader>fh", builtin.help_tags, {})
|
||||
|
||||
|
|
@ -25,6 +26,8 @@ nnoremap("<leader>ga", ":G add %:p<CR><CR>")
|
|||
nnoremap("<leader>gc", ":G commit -v -q<CR>")
|
||||
nnoremap("<leader>gt", ":G commit -v -q %:p<CR>")
|
||||
nnoremap("<leader>gca", ":G commit --amend --no-edit<CR>")
|
||||
nnoremap("<leader>gff", ":G ff<CR>")
|
||||
nnoremap("<leader>gfo", ":G fetch origin<CR>")
|
||||
nnoremap("<leader>gd", ":Gdiff<CR>")
|
||||
nnoremap("<leader>ge", ":Gedit<CR>")
|
||||
nnoremap("<leader>gr", ":Gread<CR>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue