https://github.com/aaronvb/nvim
nvim config
https://github.com/aaronvb/nvim
Last synced: 2 months ago
JSON representation
nvim config
- Host: GitHub
- URL: https://github.com/aaronvb/nvim
- Owner: aaronvb
- Created: 2020-09-12T03:36:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T21:02:43.000Z (almost 4 years ago)
- Last Synced: 2025-03-21T22:38:20.819Z (3 months ago)
- Language: Vim script
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setup
Base config taken from https://github.com/amix/vimrcInstall neovim:
```
> brew install neovim
```Install pynvim support:
```
> python3 -m pip install --user --upgrade pynvim
```Clone repo into `~/.config`
```
> cd ~/.config
> git clone [email protected]:aaronvb/nvim.git
```Install plugings:
```
> curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
````:PlugInstall` to install all plugins.
`:CocInstall coc-snippets` to install snippet support with coc.nvim## Cheat sheet
Note: leader is `,``,w` fast save
`:W` sudo save
`,return` clear highlight
`# or *` searches current selection
`ctrl hjkl` move between windows
`,bd` close buffer
`,be` or `,o` opens buffer explorer
`,ba` close all buffers
`,l` next buffer
`,h` previous buffer
`,tn` tab new
`,to` tab only
`,tc` tab close
`,tm` tab move
`,t,` tab next
`,tl` last tab
`,te` tab edit
`,cd` switch cwd to directory of open buffer
`,ss` toggle spell check
`,pp` toggle paste mode
`,g` ack
`,r` (visual) search and replace
`,cc` brings up ack cope
`,n` next search result
`,p` previous search result
`,j` or `ctrl p` ctrlP file
`,b` ctrlP buffer
`,f` ctrlP recently opened
`,nn` toggle nerd tree
`,nb` nerd tree from bookmark
`,nf` nerd tree reveal file
`ctrl s` multi select word
`,d` toggle git gutter
`shift k` coc toggle lookup documentation
`ctrl space` coc trigger completion
`[g ]g` coc to navigate coc diagnostics
`gd` coc jump to definition
`gy` coc jump to type definition
`gi` coc jump to implementation
`gr` coc jump to references
`,rn` coc symbol rename
`,f` coc format selected
`,qf` coc auto fix current line
`,ac` coc code action
`:Format` coc format file (happens automatically on save)
`:Fold` coc fold file
`:OR` coc auto add imports (happens automatically on save)
`space a` coc open diagnostics
`space e` coc open extensions
`space c` coc open commands
`space o` coc open outline
`space s` coc open symbols