a few format things
This commit is contained in:
parent
c30637ace3
commit
28a83d6c61
|
@ -52,7 +52,7 @@ opt.startofline = false -- Cursor in same column for few commands
|
||||||
opt.splitbelow = true -- Splits open bottom right
|
opt.splitbelow = true -- Splits open bottom right
|
||||||
opt.splitright = true
|
opt.splitright = true
|
||||||
opt.breakindentopt = { shift = 2, min = 20 }
|
opt.breakindentopt = { shift = 2, min = 20 }
|
||||||
opt.formatoptions = "qnlmBjpt" -- see :h fo-table & :h formatoptions
|
opt.formatoptions = "qnlmBjp" -- see :h fo-table & :h formatoptions
|
||||||
|
|
||||||
-- Diff
|
-- Diff
|
||||||
-- ===
|
-- ===
|
||||||
|
|
|
@ -399,7 +399,6 @@ M.edit = {
|
||||||
["<leader>s"] = { "s", "replace with insert mode" },
|
["<leader>s"] = { "s", "replace with insert mode" },
|
||||||
|
|
||||||
-- split and join lines
|
-- split and join lines
|
||||||
["J"] = { "j" },
|
|
||||||
["<C-s-j>"] = { "<cmd>join<cr>", "join lines" },
|
["<C-s-j>"] = { "<cmd>join<cr>", "join lines" },
|
||||||
["<C-s-s>"] = { "i<cr><esc>l", "split line" },
|
["<C-s-s>"] = { "i<cr><esc>l", "split line" },
|
||||||
|
|
||||||
|
@ -437,6 +436,7 @@ M.edit = {
|
||||||
["<Down>"] = { ":move'>+<CR>gv=gv", "Move lines down", opts = { silent = true } },
|
["<Down>"] = { ":move'>+<CR>gv=gv", "Move lines down", opts = { silent = true } },
|
||||||
["<Left>"] = { "<gv", "Less indentation" },
|
["<Left>"] = { "<gv", "Less indentation" },
|
||||||
["<Right>"] = { ">gv", "More indentation" },
|
["<Right>"] = { ">gv", "More indentation" },
|
||||||
|
["<leader>fl"] = {":!fmt -w80<CR>", "Reorder lines"}
|
||||||
},
|
},
|
||||||
x = {},
|
x = {},
|
||||||
t = {
|
t = {
|
||||||
|
|
Loading…
Reference in New Issue