https://github.com/amekusa/nvim
Amekusa's Neovim Configuration
https://github.com/amekusa/nvim
Last synced: 2 months ago
JSON representation
Amekusa's Neovim Configuration
- Host: GitHub
- URL: https://github.com/amekusa/nvim
- Owner: amekusa
- Created: 2024-03-06T19:12:57.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-31T06:50:41.000Z (2 months ago)
- Last Synced: 2025-03-31T07:32:25.891Z (2 months ago)
- Language: Lua
- Homepage:
- Size: 174 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amekusa's Neovim Configuration
Tested Neovim version: 0.9.5## Install
```sh
# Clone this repository
mkdir -p ~/.config/nvim/lua
git clone [email protected]:amekusa/nvim.git ~/.config/nvim/lua/custom# Require the repo from init.lua
echo "require('custom')" >> ~/.config/nvim/init.lua
```> NOTE: The folder name isn't required to be `custom`, since it's not hardcoded.
## Customize
```sh
cd ~/.config/nvim/lua/custom# Copy config-default.lua as config.lua
cp config-default.lua config.lua# Edit it howerver you want
nvim config.lua
```----
## Appendix: Vim Notes
### Macros
`q` + `any-char` starts recording.
Pressing `q` again finishes the recording and registers it to the `char`.`Q` plays the last recording.
`@` + `char` plays the recording registered to the `char`.Macros work with any actions even for the ones you can't replay with `.`.
### Repeat for each line
1. Select the lines you want to modify with visual mode.
2. Enter command mode with `:`.
3. Execute `:'<,'>norm ` + `any-command`.Example: Play macro `a` for each line:
`:'<,'>norm @a`### Marks
`m` + `any-char` registers the current line to the jumplist of the current buffer.
`'` + `char` makes the cursor jump to the mark.
`'"` jumps to the last mark.### Motions
`f` + `any-char` jumps to the first matched `char` in the current line.
`;` jumps to the next matched `char`.
`,` jumps back to the previous one.### Advanced Editing
`dt` + `any-char` deletes the string between the current position and the `char`.### Running shell commands
`:!`### Setting the language (filetype) of the current buffer manually
`:setf `