Update vim config
parent
aa11fa196b
commit
0e09197f09
26
.vimrc
26
.vimrc
|
@ -13,17 +13,16 @@ set timeout timeoutlen=1000 ttimeoutlen=50
|
||||||
set undolevels=500
|
set undolevels=500
|
||||||
set history=500
|
set history=500
|
||||||
set shortmess+=c
|
set shortmess+=c
|
||||||
set signcolumn=yes
|
" set signcolumn=yes
|
||||||
set nowrap
|
set nowrap
|
||||||
set relativenumber
|
set nu rnu " hybrid line numbers
|
||||||
set number
|
|
||||||
set signcolumn=yes
|
|
||||||
set clipboard=unnamedplus "use p to paste clipboard
|
set clipboard=unnamedplus "use p to paste clipboard
|
||||||
|
|
||||||
" indentation
|
" indentation
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent
|
|
||||||
set ignorecase smartcase incsearch hlsearch
|
set incsearch ignorecase smartcase hlsearch
|
||||||
|
set autoindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab
|
||||||
set emoji
|
set emoji
|
||||||
|
|
||||||
" no backups
|
" no backups
|
||||||
|
@ -44,8 +43,13 @@ set novisualbell
|
||||||
" Keybindings
|
" Keybindings
|
||||||
" ______________________________
|
" ______________________________
|
||||||
|
|
||||||
" leader key
|
" split navigation
|
||||||
|
nnoremap <c-j> <c-w><c-j>
|
||||||
|
nnoremap <c-k> <c-w><c-k>
|
||||||
|
nnoremap <c-l> <c-w><c-l>
|
||||||
|
nnoremap <c-h> <c-w><c-h>
|
||||||
|
|
||||||
|
" leader key
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
|
|
||||||
" hard mode
|
" hard mode
|
||||||
|
@ -161,7 +165,6 @@ command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'arcticicestudio/nord-vim'
|
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
Plug 'yuezk/vim-js'
|
Plug 'yuezk/vim-js'
|
||||||
Plug 'maxmellon/vim-jsx-pretty'
|
Plug 'maxmellon/vim-jsx-pretty'
|
||||||
|
@ -217,8 +220,5 @@ let g:fzf_action = {
|
||||||
" Theme
|
" Theme
|
||||||
" ______________________________
|
" ______________________________
|
||||||
|
|
||||||
colorscheme nord
|
colorscheme darkness
|
||||||
set t_Co=256
|
|
||||||
if &t_Co == 8 && $TERM !~# '^Eterm'
|
|
||||||
set t_Co=16
|
|
||||||
endif
|
|
||||||
|
|
Loading…
Reference in New Issue