diff options
author | Santo Cariotti <dcariotti24@gmail.com> | 2020-04-19 18:04:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 18:04:07 +0200 |
commit | 4de533bfc684a3b96fee2d68a80dfe66db5caaf3 (patch) | |
tree | 73ca4b11a80d5c5b9908d1d52b46cd023bcb7e29 | |
parent | fc107be13c7e0404546a0e219df648990f77f8be (diff) |
Update .vimrc
-rwxr-xr-x | .vimrc | 33 |
1 files changed, 26 insertions, 7 deletions
@@ -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<CR> nnoremap ve :Vexplore<CR> +nnoremap di ciw +nnoremap rt :RainbowToggle<CR> + +" mapping fzf commands +" ff = open files explorer +" co = open commits explorer +" gf = open git ls-files +" gs = open git status +nnoremap ff :Files .<CR> +nnoremap co :Commits<CR> +nnoremap gf :GFiles<CR> +nnoremap gs :GFiles?<CR> +let g:fzf_preview_window = 'right:70%' +let g:ale_fix_on_save = 1 + call vundle#end() " required filetype plugin indent on " required |