change colorscheme, add write keymap

This commit is contained in:
James Dixon 2023-01-23 07:43:30 -05:00
parent a2b5368128
commit aa340b05a9
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@
vim.g.mapleader = ' ' vim.g.mapleader = ' '
-- common vim commands in normal mode
vim.keymap.set('n', '<leader>w', ':w<CR>')
-- paste and search -- paste and search
vim.keymap.set('n', '<silent><leader><space>', ':noh <BAR> :let @/ = ""<CR>') vim.keymap.set('n', '<silent><leader><space>', ':noh <BAR> :let @/ = ""<CR>')
vim.keymap.set('n', '<leader>i', ':set invpaste<CR>') vim.keymap.set('n', '<leader>i', ':set invpaste<CR>')

View File

@ -3,9 +3,9 @@
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night') -- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night')
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon') -- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon')
-- local ok, _ = pcall(vim.cmd, 'colorscheme nightfly') local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
-- local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
if not ok then if not ok then
vim.cmd 'colorscheme default' -- if the above fails, then use default vim.cmd 'colorscheme default' -- if the above fails, then use default
end end