call plug#begin('~/.vim/plugged') Plug 'Smirnov-O/nten.vim' Plug 'jiangmiao/auto-pairs' Plug 'sheerun/vim-polyglot' Plug 'neoclide/coc.nvim' Plug 'axvr/zepl.vim' call plug#end() "== General colo nten-light " Color scheme set nu rnu cul " Line numbers & cursor highlight set lbr wrap " Line wrap set mouse=a mousehide " Mouse set ruler laststatus=0 " Status line set history=500 " Set history size set autoread " Auto read file on change set hidden " Change buffet without warning set visualbell t_vb= " Disable sounds set pumheight=8 " Maximum items in pop up set modeline " Enable modeline set nobk noswf noudf " Swap files set is ic scs " Search set scrolloff=3 set enc=utf-8 fenc=utf-8 " Encoding set list listchars=tab:\|·,trail:~,space:· "== Tab(or spaces) set ts=4 sw=4 sts=4 set sta et ai "== Netrw file tree let g:netrw_liststyle = 3 let g:netrw_banner = 0 let g:netrw_dirhistmax = 0 "== Custom setting for another files au FileType python,elm setl sw=4 ts=4 au FileType javascript,javascriptreact,json,yaml setl sw=2 ts=2 "== Custom commands com! -nargs=1 REpl :cal zepl#start("")|winc L|se nonu nornu com! Prettier :sil !prettier -w % com! Term :vs|winc L|se nonu nornu|term com! GoFmt :sil !gofmt -w % com! Black :sil !black % "== Mapping let mapleader=";" nn :w nn :noh tno nn t :Term nn r :REpl nn e :Ex nn j :bn nn k :bp nn w :bd nn :wincmd h nn :wincmd j nn :wincmd k nn :wincmd l nn cpp :ReplSend vn cpp :ReplSend nn spv :vs nn sph :sp "== LSP(coc) so $HOME/.config/nvim/coc.vim