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.
At the top directory,
./install.sh
- vim-gitgutter - Show git changes of each line
- vim-autoformat - Format buffers automatically
- vim-easymotion - Jump anywhere, faster
- vim-lastplace - Restore previous position of files
- auto-pairs - Insert or delete brackets, parens, quotes in pair
- vim-yankstack - Make your yank register a stack
- vim-better-whitespace - Highlight and delete extra whitespaces
- vim-mkdir - Create missing directories before saving buffers
- vim-quickrun - Run a whole or part of buffers as scripts
- vim-commentary - Comment or comment out code by one command
- vim-endwise - Complement
end
-like keywords - vim-sleuth - Set indent settings with heuristics
- vim-surround - Manipulate surroundings like parens, brackets, and quotes
- lightline.vim - Lightweight and configurable statusline
- ale - Asynchronous syntax check & linting
- vim-auto-save - Save buffers automatically
- vim-polyglot - Multi language integration
- deoplete.nvim - Auto-completion engine
" 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.
Edit your own ~/.config/nvim/init.vim
!