Compare commits
3 Commits
1754a23e65
...
907b112514
Author | SHA1 | Date | |
---|---|---|---|
|
907b112514 | ||
|
3479853e69 | ||
|
0619ef4e1e |
@ -37,10 +37,10 @@ M.general = {
|
|||||||
-- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/
|
-- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/
|
||||||
-- empty mode is same as using <cmd> :map
|
-- empty mode is same as using <cmd> :map
|
||||||
-- also don't use g[j|k] when in operator pending mode, so it doesn't alter d, y or c behaviour
|
-- also don't use g[j|k] when in operator pending mode, so it doesn't alter d, y or c behaviour
|
||||||
["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } },
|
["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "move down", opts = { expr = true } },
|
||||||
["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } },
|
["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "move up", opts = { expr = true } },
|
||||||
["<Up>"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } },
|
["<Up>"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "move up", opts = { expr = true } },
|
||||||
["<Down>"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } },
|
["<Down>"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "move down", opts = { expr = true } },
|
||||||
|
|
||||||
-- new buffer
|
-- new buffer
|
||||||
["<leader>b"] = { "<cmd> enew <CR>", "new buffer" },
|
["<leader>b"] = { "<cmd> enew <CR>", "new buffer" },
|
||||||
@ -57,8 +57,8 @@ M.general = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
x = {
|
x = {
|
||||||
["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "move left", opts = { expr = true } },
|
["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "move down", opts = { expr = true } },
|
||||||
["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "move down", opts = { expr = true } },
|
["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "move up", opts = { expr = true } },
|
||||||
-- Don't copy the replaced text after pasting in visual mode
|
-- Don't copy the replaced text after pasting in visual mode
|
||||||
-- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste
|
-- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste
|
||||||
["p"] = { 'p:let @+=@0<CR>:let @"=@0<CR>', "dont copy replaced text", opts = { silent = true } },
|
["p"] = { 'p:let @+=@0<CR>:let @"=@0<CR>', "dont copy replaced text", opts = { silent = true } },
|
||||||
@ -70,14 +70,14 @@ M.tabufline = {
|
|||||||
|
|
||||||
n = {
|
n = {
|
||||||
-- cycle through buffers
|
-- cycle through buffers
|
||||||
["<TAB>"] = {
|
["<tab>"] = {
|
||||||
function()
|
function()
|
||||||
require("nvchad_ui.tabufline").tabuflineNext()
|
require("nvchad_ui.tabufline").tabuflineNext()
|
||||||
end,
|
end,
|
||||||
"goto next buffer",
|
"goto next buffer",
|
||||||
},
|
},
|
||||||
|
|
||||||
["<S-Tab>"] = {
|
["<S-tab>"] = {
|
||||||
function()
|
function()
|
||||||
require("nvchad_ui.tabufline").tabuflinePrev()
|
require("nvchad_ui.tabufline").tabuflinePrev()
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user