begin-with-init.vim icon indicating copy to clipboard operation
begin-with-init.vim copied to clipboard

Minimal neovim distribution as init.vim

begin-with-init.vim

Circle CI License

Minimal neovim distribution as init.vim

begin-with-init.vim gives you a starter kit of neovim with state-of-the-art plugins and common best practices. It's just your initial configuration file init.vim, but not a heavy stack of plugins.

Installation

At the top directory,

./install.sh

Bundled Plugins

Fuzzy finder

  • fzf - Fuzzy finder command
  • fzf.vim - fzf integration for Vim

Language support

Key mappings

" Map a leader to the easiest key to push ever.
let g:mapleader = "\<space>"

" Swap gj/gk with j/k.
nnoremap <expr> j v:count ? 'j' : 'gj'
nnoremap <expr> k v:count ? 'k' : 'gk'
nnoremap gj j
nnoremap gk k

" Unhighlight by pusing escape keys twice.
nnoremap <esc><esc> :nohlsearch<cr>

" Yank a line with Y.
nnoremap Y y$

" Open buffers, files, and so on with fzf.
nnoremap <leader>b :Buffers<cr>
nnoremap <leader>c :History:<cr>
nnoremap <leader>f :Files<cr>
nnoremap <leader>g :GFiles<cr>
nnoremap <leader>h :History<cr>
nnoremap <leader>l :Lines<cr>
nnoremap <leader>m :Maps<cr>
nnoremap <leader>r :Ag<cr>

You can navigate completion results from deoplete.nvim with Ctrl-N/P.

You may also check other key mappings from the plugins.

Customization

Edit your own ~/.config/nvim/init.vim!

License

MIT