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
titlestring
is"Neovim – %t%( %m%)"
-
line numbering (
number
andrelativenumber
) is enabled -
foldenable
is disabled -
mouse is for Vim and not the terminal
-
cursorline
is enabled -
the default indentation level is set to 4 instead of 8
-
smartindent
is enabled -
termbidi
is enabled for right-to-left language writers -
colorcolumn
is set totextwidth
+ 1 -
do not show the hideous netrw banner
- disable marking tab and space characters for
diff
files - disable spell-checking (if it is enabled) for
diff
andebuild
files - set the
textwidth
to 72 forgitcommit
files - set two
colorcolumn
s forgitcommit
: 51 and 73 - start
gitcommit
files 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