Neovim Knowledge
Disable Highlighting from search until the next search
:noh
Go to specific line
42G
:42<CR>
Surround stuff (with the vim-surround plugin)
-- surround word
viwS<Input Character to surround>
Change Multiple Occurrences of the same word
*ciw n.n.n.n.n
Delete multiple Occurrences of the same selection
# Enter Visual selection
# Select what you want to delete
dgn,dgn,dgn
A tale of Buffers, Splits and Tabs
Buffers, are proxies for files, e.g. save a buffer -> its content gets written to a file. Multiple buffers can be open at the same time
Split are a way to show multiple buffers at the same time.
Split Horizontal <C-w>h
Split Vertical <C-w>v
Resize splits with mouse is easiest
Tabs
Move to next Tab gt
Move to previous Tab gT
move to specific Tab 3gt -> remapped to <leader>3
Use / for opening vertical splits across
telescope -> (
neotree
require("neo-tree").setup({
hide_root_node = true,
window = {
mappings = {
["<C-v>"] = "open_vsplit",
["<C-x>"] = "open_split"
}
},
});
lspsaga / goto definition
require("lspsaga").setup({
symbol_in_winbar = {
enable = false
},
finder = {
keys = {
vsplit = "<C-v>",
split = "<C-x>",
}
},
lightbulb = {
enable = false
},
})