Lightweight Neovim configuration built around tasks I find myself repeating.
<leader>' - Replaces all double quotes (") in the file with single quotes (').
<leader>" - Replaces all single quotes (') in the file with double quotes (").
<leader>s - Wraps the current line in <strong></strong> tags.
<leader>b - Moves the cursor to the first non-whitespace character of the current line.
<leader>e - Moves the cursor to the end of the current line.
| Language | Key Mapping | Action |
|---|---|---|
| Python | <leader>p |
Insert print('var', var) for word under cursor |
| JavaScript | <leader>p |
Insert console.log('var', var) for word under cursor |
vim.opt.clipboard = "unnamedplus" - Use the system clipboard for copying and pasting lines from Neovim's yanking and putting, this is my favorite change so far.
-
Install Neovim or an Equivalent Editor
- Neovim Download
- VSCode Neovim Extension
- Or use any other compatible editor of your choice.
-
Add This Configuration to Your Neovim Directory
-
Clone or copy this repository to the appropriate config location for your OS:
OS Neovim Config Location Linux/macOS ~/.config/nvimWindows %LOCALAPPDATA%\nvim(C:\Users\<User>\AppData\Local\nvim)
-
-
Restart Neovim or Your Editor