✏️ Adjusted neovim config settings slightly
This commit is contained in:
parent
d3a284c77b
commit
7897ff15b6
3 changed files with 11 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ vim.keymap.set("n", "<F11>", ":set spell!<cr>", { silent = true })
|
|||
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
|
||||
|
||||
-- Vimium Like Keybindings
|
||||
vim.keymap.set("n", "t", "<c-w>:tabnew<CR>", {})
|
||||
vim.keymap.set("n", "<S-t>", "<c-w>:tabnew<CR>", {})
|
||||
|
||||
vim.keymap.set("n", "<S-tab>", "<c-w>:tabprevious<CR>", {})
|
||||
vim.keymap.set("n", "<S-j>", "<c-w>:tabprevious<CR>", {})
|
||||
|
|
@ -92,3 +92,4 @@ vim.cmd([[nnoremap rg :silent :Rg]])
|
|||
|
||||
--toggle autocompletion
|
||||
vim.cmd([[nnoremap cmp :silent lua SetAutoCmp(Mode)]])
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ endfunction]])
|
|||
vim.cmd([[command! -nargs=* FZFExplore call FzfExplore(shellescape(<q-args>))]])
|
||||
|
||||
-- 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"]])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue