From 7897ff15b694b96fecf0280b975a06efbeb78222 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Wed, 18 Jan 2023 16:43:06 -0800 Subject: [PATCH] :pencil2: Adjusted neovim config settings slightly --- .config/nvim/lua/neovim/remap.lua | 3 ++- .config/nvim/lua/neovim/set.lua | 2 +- nvim_custom_keys.txt | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/neovim/remap.lua b/.config/nvim/lua/neovim/remap.lua index e4b57a97..50d8acfa 100755 --- a/.config/nvim/lua/neovim/remap.lua +++ b/.config/nvim/lua/neovim/remap.lua @@ -31,7 +31,7 @@ vim.keymap.set("n", "", ":set spell!", { silent = true }) vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) -- Vimium Like Keybindings -vim.keymap.set("n", "t", ":tabnew", {}) +vim.keymap.set("n", "", ":tabnew", {}) vim.keymap.set("n", "", ":tabprevious", {}) vim.keymap.set("n", "", ":tabprevious", {}) @@ -92,3 +92,4 @@ vim.cmd([[nnoremap rg :silent :Rg]]) --toggle autocompletion vim.cmd([[nnoremap cmp :silent lua SetAutoCmp(Mode)]]) + diff --git a/.config/nvim/lua/neovim/set.lua b/.config/nvim/lua/neovim/set.lua index 2fb73c37..2e8e851c 100644 --- a/.config/nvim/lua/neovim/set.lua +++ b/.config/nvim/lua/neovim/set.lua @@ -86,7 +86,7 @@ endfunction]]) vim.cmd([[command! -nargs=* FZFExplore call FzfExplore(shellescape())]]) -- fzf is on bottom of screen -vim.cmd([[let g:fzf_layout = { 'down': '~30%' }]]) +-- vim.cmd([[let g:fzf_layout = { 'down': '~30%' }]]) --lastplace ignores fzf vim.cmd([[let g:lastplace_ignore_buftype = "quickfix, nofile, help, FZF"]]) diff --git a/nvim_custom_keys.txt b/nvim_custom_keys.txt index daee4758..ba910f99 100644 --- a/nvim_custom_keys.txt +++ b/nvim_custom_keys.txt @@ -17,6 +17,14 @@ bindkey -v When setting up keybindings in say a tiling window manager like i3 or bspwm(my preferred twm), it may be a good idea to set up vim keybindings in that. Lastly, install vimium into your browser, as this will allow you to navigate your browser using vim keybindings (hjkldu for navigation, yy to grab the current url, / to search the page, etc.). Vimium is available in either chromium or firefox based browsers and is an essential part of my workflow along with Neovim. +-- Notes on opening/closing neovim +All jokes aside (:q to quit btw), there are many command line flags you can add +to opening nvim and interesting tricks. + +- Ctrl + Z will suspend nvim but save your session (place in text, open nvim +tree folders, etc.). To re-enter from the shell, simply type 'fg' to +return from suspend. + -- Standard keybindings (all neovim) NORMAL MODE