vim and tmux small config edits
This commit is contained in:
+6
-4
@@ -56,7 +56,7 @@ opt.wildignorecase = true
|
|||||||
opt.wildignore = opt.wildignore + {"*swp", "*.class", "*.pyc", "*.png", "*.jpg", "*.gif", "*.zip", "*/tmp/*", "*.o", ".obj", "*.so"}
|
opt.wildignore = opt.wildignore + {"*swp", "*.class", "*.pyc", "*.png", "*.jpg", "*.gif", "*.zip", "*/tmp/*", "*.o", ".obj", "*.so"}
|
||||||
|
|
||||||
-- cursor
|
-- cursor
|
||||||
opt.scrolloff = 1 -- Lines of context
|
opt.scrolloff = 5 -- Lines of context
|
||||||
opt.scrolljump = 1 -- Lines to scroll when cursor leaves screen
|
opt.scrolljump = 1 -- Lines to scroll when cursor leaves screen
|
||||||
opt.sidescrolloff = 4 -- Columns of context
|
opt.sidescrolloff = 4 -- Columns of context
|
||||||
opt.showmatch = true -- Show matching brackets / parentheses
|
opt.showmatch = true -- Show matching brackets / parentheses
|
||||||
@@ -133,8 +133,10 @@ map("n", "<leader>o", "m`o<Esc>``", { noremap = true }) -- Insert a newline in
|
|||||||
|
|
||||||
-- WINDOWS / BUFFERS
|
-- WINDOWS / BUFFERS
|
||||||
-- make splits and tabs
|
-- make splits and tabs
|
||||||
map("n", "<M-v>", ":vnew<cr>", { noremap = true })
|
map("n", "<M-V>", ":vnew<cr>", { noremap = true })
|
||||||
map("n", "<M-s>", ":new<cr>", { noremap = true })
|
map("n", "<M-S>", ":new<cr>", { noremap = true })
|
||||||
|
map("n", "<M-v>", ":vsplit<cr>", { noremap = true })
|
||||||
|
map("n", "<M-s>", ":split<cr>", { noremap = true })
|
||||||
map("n", "<M-t>", ":tabe %<cr>", { noremap = true })
|
map("n", "<M-t>", ":tabe %<cr>", { noremap = true })
|
||||||
map("n", "<M-T>", ":tabnew<cr>", { noremap = true })
|
map("n", "<M-T>", ":tabnew<cr>", { noremap = true })
|
||||||
-- buffers and tabs
|
-- buffers and tabs
|
||||||
@@ -227,7 +229,7 @@ require("packer").startup {function(use)
|
|||||||
use {"kyazdani42/nvim-tree.lua",
|
use {"kyazdani42/nvim-tree.lua",
|
||||||
requires = {"kyazdani42/nvim-web-devicons"},
|
requires = {"kyazdani42/nvim-web-devicons"},
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.nvim_tree_auto_open = 1
|
vim.g.nvim_tree_auto_open = 0
|
||||||
vim.g.nvim_tree_disable_netrw = 0
|
vim.g.nvim_tree_disable_netrw = 0
|
||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
map("n", "<M-p>", ":NvimTreeToggle<cr>", {noremap = true})
|
map("n", "<M-p>", ":NvimTreeToggle<cr>", {noremap = true})
|
||||||
|
|||||||
+2
-1
@@ -24,7 +24,8 @@ set -g history-limit 20000
|
|||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
|
|
||||||
# screen colors
|
# screen colors
|
||||||
set -g default-terminal "tmux-256color"
|
set-option -ga terminal-overrides ",st-256color:Tc"
|
||||||
|
set -g default-terminal "st-256color"
|
||||||
|
|
||||||
# Start with index 1
|
# Start with index 1
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|||||||
Reference in New Issue
Block a user