chore(config): split vim and neovim config, keep it the same for now

main
Tran Hau 2021-04-14 03:22:41 +00:00
parent dca5bf145c
commit 4f41315db6
2 changed files with 52 additions and 1 deletions

View File

@ -11,7 +11,7 @@
"vim": {
"files": [
{
"internal": "config/nvim/init.vim",
"internal": "config/vim/vimrc",
"external": "~/.vimrc"
}
]

51
config/vim/vimrc Normal file
View File

@ -0,0 +1,51 @@
set breakindent
set completeopt=menuone,noinsert,noselect
set noswapfile
set number
set relativenumber
set scrolloff=4
set virtualedit=block
set whichwrap=<,>,[,]
" True color
" https://gist.github.com/XVilka/8346728
if (empty($TMUX))
if (has('termguicolors'))
set termguicolors
endif
endif
" Disable cursor styling
set guicursor=
" Install xclip or xsel
set clipboard+=unnamedplus
" FZF
set rtp+=~/.fzf
" Plugins config
let g:go_fmt_command='gopls'
let g:go_gopls_gofumpt=1
let g:lightline={'colorscheme':'onedark'}
" vim-plug
" https://github.com/junegunn/vim-plug
call plug#begin()
" Should use
Plug 'sheerun/vim-polyglot'
Plug 'preservim/nerdtree'
Plug 'machakann/vim-sandwich'
Plug 'itchyny/lightline.vim'
" Colorschemes
Plug 'joshdick/onedark.vim'
" Languages
Plug 'fatih/vim-go'
call plug#end()
set background=dark
colorscheme onedark