blob: 7b434d86932fdb7da165e6b1d406b9e03abf9c76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
vim.opt.tabstop = 4 -- Number of spaces that a <Tab> in the file counts for.
vim.opt.shiftwidth = 0 -- Number of spaces to use for each step of (auto)indent.
vim.opt.expandtab = false -- Do not use the appropriate number of spaces to insert a <Tab>.
vim.opt.showmatch = true -- When a bracket is inserted, briefly jump to the matching
vim.opt.ignorecase = true -- Ignore case in search patterns.
vim.opt.smartcase = true -- Override 'ignorecase' if the pattern contains upper case
vim.opt.background = dark
vim.opt.mouse = "" -- Disable mouse
vim.opt.number = true
if vim.fn.has('nvim-0.10.0') == 1 then
vim.cmd("colorscheme vim")
end
vim.keymap.set('', '<M-Up>', ':move-2<CR>', { silent = true })
vim.keymap.set('', '<M-Down>', ':move+1<CR>', { silent = true })
vim.keymap.set('t', '<Esc>', '<C-\\><C-n>', { silent = true })
|