Yet another
NeoVim
configuration~
Basic Vim guidance should be found here!
__ __ _ _ __ _
\ \ / /__ | | ___ | |/ /___ | | ___ _ _ __ __ _
\ V / _ \| |/ _ \| ' // _ \| |/ / | | | '__/ _` |
| | (_) | | (_) | . \ (_) | <| |_| | | | (_| |
|_|\___/|_|\___/|_|\_\___/|_|\_\\__,_|_| \__,_|
[TOC]
This chapter gives a summary of custom key bindings, click here for more detailed information.
Key | Control |
---|---|
Space + s | quick select text objects |
Key | Control |
---|---|
T | open tagbar to view code structure |
: + e + filepath |
open file |
g + f | open file at the path where cursor is pointing at |
z + z | set the current line to the center of the screen |
: + % + Tohtml | export current file as a html file (so you can save it PDF, etc) |
m + p/ | markown preview |
F1 | toggle undotree |
Key | Control |
---|---|
Space + s + c | toggle spell check |
z + = | open spell correct suggestion |
Ctrl + x | open complete suggestion |
: + Tabularize | align text |
Ctrl + q | reformat code of the whole file |
Key | Control |
---|---|
Space + z + r + c | open init.vim in NeoVim |
Space + r + c | open init.vim in NeoVim |
Space + f | open Fuzzy File Finder to open a file in a new tab |
t + t | open NerdTree to open a file in a new tab |
Space + RM | open README.md |
Key | Control |
---|---|
Ctrl + w + h / v | split windows horizontaly or verticaly |
Space + Direction Key | switch window |
Up / Down / Left / Right | adjust window size |
Key | Control |
---|---|
/ + query + Enter |
search something |
Space + Enter | clear search results |
n | find next result |
N | find previous result |
Key | Control |
---|---|
Space + Space | find the next placeholder, clear it and switch into insert mode |
Space + p + h | insert a placeholder at current position |
Key | Control |
---|---|
Space + c + c | comment |
Space + c + u | uncomment |
Ctrl + c | comment toggle |
Key | Control |
---|---|
Ctrl + a | add number by 1 |
Key | Control |
---|---|
Space + logo | convert the input string into a nice digital artwork! |
Space + g + y | Zen mode! |
This chapter includes all plugins used in this NeoVim config.
- vim-airline: add a nice statusline at the bottom of Vim window.
- vim-airline-themes: provide various airline themes, click here for more options.
- gruvbox: a beautiful Vim theme!
- vim-devicons: add fancy icons for Vim ui (NerdTree, airline, statify, etc).
- nerdtree-git-plugin: support git status display on nerdtree.
- vim-indent-guides: visually display indent levels.
- vim-cursorword: underline the word under the cursor.
- nerdcommenter: enable smart commenting behaviour like most IDEs.
- coc-snippets: enable quick code snippets input.
- vim-snippets: get snippets.
- ale: (Asynchronous Lint Engine) enable error checking.
- undotree: visualize undo history and switch between undo branches.
- coc.nvim: give nvim/vim a VS Code like experience!
- vim-signature: place, toggle and display marks.
- vim-surround: quick change surround symbols!
- tabular: align text easily.
- wildfire.vim: quick select closed text objects!
- auto-pair: enable auto pair!
- coc-marketplace: search coc extensions.
- coc-highlight: default syntax highlight for coc.nvim.
- coc-prettier: a code formatter.
- vim-visual-multi: enable multi-cursor visual mode!
- vim-FIGlet: enables figlet input in Vim!
- vim-startify: display a cute start screen when launching nvim/vim without a specific file path.
- goyo.vim: Zen mode~
- vim-android: support Gradle based project development.
- indentpython.vim: deal with annoying Python indentation!
- markdown-preview.nvim: preview markdown in a specific web browser.
- vimwiki: personal wiki for vim.
- coc-pyright: python linting and auto completion.
- conflict-marker.vim: visualize git conflicts and jump between them.
- vim-fugitive: a Git wrapper for vim/nvim. Call
:Git
or:G
to execute git commands. - vim-signify: use the left gutter to indicate code status managed by a version control system (VCS).
- vim-gitignore: provide highlighting and code snippets for
.gitignore
file.