From 4de533bfc684a3b96fee2d68a80dfe66db5caaf3 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 19 Apr 2020 18:04:07 +0200 Subject: Update .vimrc --- .vimrc | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.vimrc b/.vimrc index 6208d55..79b8f32 100755 --- a/.vimrc +++ b/.vimrc @@ -8,7 +8,11 @@ Plugin 'VundleVim/Vundle.vim' Plugin 'rust-lang/rust.vim' Plugin 'airblade/vim-gitgutter' -Plugin 'itchyny/lightline.vim' +"Plugin 'itchyny/lightline.vim' +Plugin 'vim-airline/vim-airline' +Plugin 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} | Plugin 'junegunn/fzf.vim' +Plugin 'luochen1990/rainbow' +Plugin 'dense-analysis/ale' augroup remember_folds autocmd! @@ -16,11 +20,11 @@ augroup remember_folds autocmd BufWinEnter * silent! loadview augroup END -let g:netrw_banner = 0 -let g:netrw_liststyle = 3 -let g:netrw_browse_split = 4 -let g:netrw_altv = 1 -let g:netrw_winsize = 20 +"let g:netrw_banner = 0 +"let g:netrw_liststyle = 3 +"let g:netrw_browse_split = 4 +"let g:netrw_altv = 1 +"let g:netrw_winsize = 20 set ai set autoread @@ -30,7 +34,7 @@ set wildignore+=*.pyc set wrap set hlsearch set incsearch -set visualbell +set nowritebackup set laststatus=2 set cursorline set ruler @@ -39,6 +43,21 @@ set listchars=eol:⏎,tab:»·,trail:ˑ,nbsp:⎵ nnoremap tn :tabnew nnoremap ve :Vexplore +nnoremap di ciw +nnoremap rt :RainbowToggle + +" mapping fzf commands +" ff = open files explorer +" co = open commits explorer +" gf = open git ls-files +" gs = open git status +nnoremap ff :Files . +nnoremap co :Commits +nnoremap gf :GFiles +nnoremap gs :GFiles? +let g:fzf_preview_window = 'right:70%' +let g:ale_fix_on_save = 1 + call vundle#end() " required filetype plugin indent on " required -- cgit v1.2.3-18-g5258