first
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
local o = vim.opt
|
||||
local map = vim.api.nvim_set_keymap
|
||||
|
||||
vim.g.mapleader = ","
|
||||
vim.g.maplocalleader = ","
|
||||
o.modeline = true
|
||||
o.number = true
|
||||
o.relativenumber = true
|
||||
o.clipboard = "unnamedplus"
|
||||
o.viminfo = ""
|
||||
-- why viminfo not work
|
||||
o.tabstop = 4
|
||||
o.viminfo = ''
|
||||
|
||||
o.termguicolors = false
|
||||
vim.cmd('colorscheme wal')
|
||||
vim.g.airline_theme='wal'
|
||||
|
||||
map('n', '<Leader>s', ':%s//g<Left><Left>', {})
|
||||
map('n', '<Leader>e', ':make!<CR>', {noremap = true})
|
||||
map('n', '<C-o>', ':cclose<CR>', {noremap = true})
|
||||
map('n', '<C-L>', ':nohlsearch<CR><C-L>', {noremap = true, silent = true})
|
||||
map('n', ';', ':', {noremap = true})
|
||||
map('v', ';', ':', {noremap = true})
|
||||
|
||||
for i = 1,9,1 do
|
||||
map('', '<Leader>' .. tostring(i), tostring(i) .. 'gt', {noremap = true})
|
||||
end
|
||||
|
||||
map('n', '<C-Left>', ':tabprevious<CR>', {noremap = true})
|
||||
map('n', '<C-Right>', ':tabnext<CR>', {noremap = true})
|
||||
map('', '<Leader>0', ':tablast<CR>', {noremap = true})
|
||||
map('n', 'ZX', '<Cmd>q<CR>', {noremap = true, silent = true})
|
||||
|
||||
map('t', '<Esc>', '<C-\\><C-n>', {noremap = true})
|
||||
|
||||
o.list=true
|
||||
o.listchars = {
|
||||
tab = '▸ ',
|
||||
eol = '¬',
|
||||
trail = '·',
|
||||
extends = '›'
|
||||
}
|
||||
|
||||
vim.cmd [[
|
||||
augroup options_guicursor
|
||||
au!
|
||||
" Reset to underscore cursor for terminal nvim (https://github.com/neovim/neovim/issues/4867#issuecomment-291249173)
|
||||
au VimLeave * set guicursor=a:ver90
|
||||
augroup END
|
||||
]]
|
||||
Reference in New Issue
Block a user