Add vim dotfiles

master
Hektor Misplon 2020-02-16 08:45:55 +00:00
commit 21a570e173
12 changed files with 2650 additions and 0 deletions

2597
.vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

5
.vim/coc-settings.json Normal file
View File

@ -0,0 +1,5 @@
{
"coc.preferences.formatOnSaveFiletypes": ["javascript", "typescript", "typescriptreact", "json", "javascriptreact", "typescript.tsx"],
"eslint.filetypes": ["javascript", "typescript", "typescriptreact", "javascriptreact", "typescript.tsx"],
"coc.preferences.diagnostic.virtualText": true,
}

1
.vim/plugged/coc.nvim Submodule

@ -0,0 +1 @@
Subproject commit 33d4a71b983a7164d0749cfc58a4814788be167f

1
.vim/plugged/fzf Submodule

@ -0,0 +1 @@
Subproject commit b57e6cff7e54bd8dfcb60b2917ffe53d67507046

1
.vim/plugged/fzf.vim Submodule

@ -0,0 +1 @@
Subproject commit 467c3277884240f7b5430f8f4d600e3415c38f3b

1
.vim/plugged/nerdtree Submodule

@ -0,0 +1 @@
Subproject commit 07612557ebb4118ef4a337faa7033d0270773c71

1
.vim/plugged/nord-vim Submodule

@ -0,0 +1 @@
Subproject commit f06189a4c054fe8c22e46aca4d451e03456f2283

@ -0,0 +1 @@
Subproject commit 17d85d8051ba21283e62a9101734981e10b732fd

@ -0,0 +1 @@
Subproject commit b06f5418a434644f64ba9f218472b5aa86eb03a6

@ -0,0 +1 @@
Subproject commit 838cfce82df8cf99df5e3a200ad23f6c0f027550

@ -0,0 +1 @@
Subproject commit 007a4e3856a90c3ce0f2e2079992e798a0175043

39
.vimrc Normal file
View File

@ -0,0 +1,39 @@
" keybindings
map <Up> <NOP>
map <Down> <NOP>
map <Left> <NOP>
map <Right> <NOP>
" plugins
call plug#begin()
Plug 'arcticicestudio/nord-vim'
Plug 'scrooloose/nerdtree'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'ryanoasis/vim-devicons'
Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'
call plug#end()
" theme
colorscheme nord
" NERDTree
let g:NERDTreeShowHidden = 1
let g:NERDTreeMinimalUI = 1
let g:NERDTreeIgnore = []
let g:NERDTreeStatusline = ''
" fzf - use silversearcher-ag to respect .gitignore
let $FZF_DEFAULT_COMMAND = 'ag -g ""'
" plugin keybindings
nnoremap <silent> <C-b> :NERDTreeToggle<CR>
nnoremap <C-p> :FZF<CR>
let g:fzf_action = {
\ 'ctrl-t': 'tab split',
\ 'ctrl-s': 'split',
\ 'ctrl-v': 'vsplit'
\}