refactor vim & nvim configs

This commit is contained in:
arnaucube
2020-06-06 15:58:28 +02:00
parent 1dd38f1c40
commit a73066d659
2 changed files with 34 additions and 82 deletions

39
.vimrc
View File

@@ -1,34 +1,20 @@
call plug#begin(expand('~/.vim/plugged'))
Plug 'scrooloose/nerdtree'
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
"" Color
Plug 'tomasr/molokai'
Plug 'morhetz/gruvbox'
Plug 'srcery-colors/srcery-vim'
call plug#end()
" call plug#begin(expand('~/.vim/plugged'))
"
"
"
"
" call plug#end()
" visual
syntax on
set ruler
set number
set title
set titlestring=vim-%F
set titlestring=nvim-%F
set t_Co=256
set cursorline
set background=dark " for the dark version
if $COLORTERM == 'gnome-terminal'
set term=gnome-256color
else
if $TERM == 'xterm'
set term=xterm-256color
endif
endif
" abbreviations
cnoreabbrev W! w!
cnoreabbrev Q! q!
@@ -40,6 +26,7 @@ cnoreabbrev WQ wq
cnoreabbrev W w
cnoreabbrev Q q
cnoreabbrev Qall qall
cnoreabbrev Qa qa
"" Switching windows
noremap <C-j> <C-w>j
@@ -55,10 +42,8 @@ tnoremap jk <C-\><C-n>
set scrolloff=5 " keep at least 5 lines above/below
set sidescrolloff=5 " keep at least 5 lines left/right
colorscheme gruvbox
let &t_SI.="\e[6 q" "SI = INSERT mode
let &t_SR.="\e[4 q" "SR = REPLACE mode
let &t_EI.="\e[2 q" "EI = NORMAL mode (ELSE)
colorscheme torte
set background=dark
hi statusline ctermfg=234 ctermbg=250
hi LineNr ctermfg=246