Skip to content

Instantly share code, notes, and snippets.

@kumikoda
Created January 17, 2018 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumikoda/e3bdcca8c0a40e4d416ff80878049352 to your computer and use it in GitHub Desktop.
Save kumikoda/e3bdcca8c0a40e4d416ff80878049352 to your computer and use it in GitHub Desktop.
nvim init
set nocompatible
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim " path to dein.vim
call dein#begin(expand('~/.cache/dein')) " path to plugins dir
call dein#add('Shougo/dein.vim') " the plugin manager itself
call dein#add('Shougo/deoplete.nvim') " autocomplete
call dein#add('scrooloose/nerdtree') " file tree explorer
call dein#add('vim-airline/vim-airline') " status bar
call dein#end()
" Custom leader key
nnoremap <space> <Nop>
let mapleader = " "
" New tab
nnoremap <leader>t :vnew<cr>
" Splits
set splitright " split new window on the right<Paste>
set splitbelow " split new window below
nnoremap <leader><Left> <C-w>h
nnoremap <leader><Down> <C-w>j
nnoremap <leader><Up> <C-w>k
nnoremap <leader><Right> <C-w>l
" Nerd Tree toggle
map <C-n> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment