Home

Awesome

Vim for Humans

Name inspired by the song of my favorite band THE KILL⚡RS.

Collection of Vim default options for humans.

Features:

<small>NOTE: feats with # only available for Vim and feats with * only available for Neovim.</small>

Requirements

Installation

You can install human.vim in many ways that you know and prefer, just make sure to load it before all your other plugins to ensure you don't overwrite any options contained in those other plugins.

Usage

To use this plugin you just have to install it, load it correctly and you will start to notice small changes in Vim or Neovim that will make more sense by default.

Options

To see the many options contained in this plugin, look directly at the source code in the plugin/human.vim directory, where all the options are nicely organized. If you need to change the value of an option contained in this plugin, you must do so after loading this plugin, otherwise, your options value will be rewritten.

Mappings

Local leader

This plugin sets the <LocalLeader> key to a | (pipe), to avoid clash with default <Leader> key, only if the localleader variable has not been previously set.

Neovim's defaults

The following Neovim's default mappings are created for Vim:

nnoremap Y y$
nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<Bar>normal! <C-L><CR>
inoremap <C-U> <C-G>u<C-U>
inoremap <C-W> <C-G>u<C-W>
xnoremap * y/\V<C-R>"<CR>
xnoremap # y?\V<C-R>"<CR>
nnoremap & :&&<CR>

Navigation with buffers

Also, creates the following mappings to navigate between buffers, following the same Vim philosophy for navigating between tabs. Why not include it by default!

VI ModeKeymapDescription
Normalg + BGo to the previous buffer
Normal and InsertSHIFT + PAGE UPGo to the previous buffer
Normalg + bGo to the next buffer
Normal and InsertSHIFT + PAGE DOWNGo to the next buffer

Toggle options

Finally, creates the following mappings to toggle some Vim options that are useful on-demand but not all the time.

VI ModeKeymapDescription
Normal<underscore> + lToggle cursorline option
Normal<underscore> + cToggle cursorcolumn option
Normal<underscore> + sToggle spell option
Normal<underscore> + wToggle wrap option

Maintainer

Hi 👋, I'm Wuelner, a software developer from Guatemala, passionate about creating minimalist solutions using solid fundamentals focused on "how things should be".

License

MIT © Wuelner Martínez.

<p align="center">With 💖 from <strong>LATAM</strong> to the world!</p>