luaify vim init, add mouse scroll binds
This commit is contained in:
@@ -18,7 +18,7 @@ vim.opt.completeopt = noinsert,menuone,noselect
|
||||
vim.opt.cursorline = true
|
||||
|
||||
-- don't require writing files when changing buffers
|
||||
vim.cmd("set hidden")
|
||||
vim.opt.hidden = true
|
||||
|
||||
-- show find/replace preview in split window
|
||||
vim.opt.inccommand = split
|
||||
@@ -29,6 +29,9 @@ vim.opt.mouse = a
|
||||
-- set title of window to filename
|
||||
vim.opt.title = true
|
||||
|
||||
-- make line breaks on words instead of characters
|
||||
vim.opt.linebreak = true
|
||||
|
||||
-- replace tabs with spaces
|
||||
vim.opt.expandtab = true
|
||||
|
||||
@@ -229,3 +232,7 @@ vim.keymap.set('i', '<C-BS>', '<C-W>')
|
||||
|
||||
-- map ctrl-delete to delete next word
|
||||
vim.keymap.set('i', '<C-Del>', '<C-o>dw')
|
||||
|
||||
-- mouse scrolling
|
||||
vim.keymap.set('n', '<ScrollWheelUp>', '<C-u>')
|
||||
vim.keymap.set('n', '<ScrollWheelDown>', '<C-d>')
|
||||
|
||||
Reference in New Issue
Block a user