Neovim’s defaults are pretty good. They are much better than Vim’s at least. But they could be improved, which is why I created this plugin. It is inspired by vim-sensible, but vim-sensible’s changes are only useful to Vim users and not Neovim users because Neovim is already more sensible than Vim. Technically, you can use this plugin even if you are a Vim user, but it is intended for Neovim users. If you use Vim, I recommend installing both vim-sensible and Neovim Sensible.
-
window title is enabled
-
default
titlestringis"Neovim – %t%( %m%)" -
line numbering (
numberandrelativenumber) is enabled -
foldenableis disabled -
mouse is for Vim and not the terminal
-
cursorlineis enabled -
the default indentation level is set to 4 instead of 8
-
smartindentis enabled -
termbidiis enabled for right-to-left language writers -
colorcolumnis set totextwidth+ 1 -
do not show the hideous netrw banner
- disable marking tab and space characters for
difffiles - disable spell-checking (if it is enabled) for
diffandebuildfiles - set the
textwidthto 72 forgitcommitfiles - set two
colorcolumns forgitcommit: 51 and 73 - start
gitcommitfiles in insert mode - enable 24-bit colours if the terminal supports it
- set the spell-checker language to the locale’s default language
| Mode | Key | Mapping |
|---|---|---|
| Insert | Control-Space | Omni complete |
| Insert | Control-L | Line complete |
| Mode | Key | Mapping |
|---|---|---|
| Normal | Leader-Y | Copy file contents to clipboard |
| Normal | Leader-P | Paste from clipboard |
| Visual | Shift-Y | Copy to clipboard |
| Visual | Shift-D | Cut to clipboard |
| Mode | Key | Mapping |
|---|---|---|
| Insert | Up | Go up even when a completion menu is visible |
| Insert | Down | Go down even when a completion menu is visible |
`# user` git clone https://github.com/amarakon/vim-sensible ~/.vim/pack/vendor/start/vim-sensible`# user` git clone https://github.com/amarakon/vim-sensible ~/.local/share/nvim/site/pack/default/start/vim-sensible