Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 895 Bytes

NeoVim.md

File metadata and controls

41 lines (38 loc) · 895 Bytes

Neo Vim

Init

Inside $HOME/.config/nvim/init.vim place this:

set laststatus=2
set t_Co=256
syntax on
set number
vnoremap <C-c> "*y
"set rnu
set so=5
call plug#begin('~/.vim/plugged')
	Plug 'itchyny/lightline.vim'
	Plug 'mattn/emmet-vim'
	Plug 'sheerun/vim-polyglot'
	Plug 'jiangmiao/auto-pairs'
	Plug 'joshdick/onedark.vim'
	Plug 'cloudhead/neovim-fuzzy'
	Plug 'scrooloose/nerdtree'
	Plug 'ap/vim-buftabline'
call plug#end()
if (empty($TMUX))
  if (has("nvim"))
  let $NVIM_TUI_ENABLE_TRUE_COLOR=1
  endif
  if (has("termguicolors"))
    set termguicolors
  endif
endif

nnoremap <C-p> :FuzzyOpen<CR>

set hidden
nnoremap <C-N> :bnext<CR>
nnoremap <C-M> :bprev<CR>
nnoremap <C-W> :bdelete<CR>

colorscheme onedark
"LightLine settings"
let g:lightline = {'colorscheme': 'onedark', 'separator': { 'left': '', 'right': '' }, 'subseparator': { 'left': '', 'right': '' }}