From fafa0b4a755f3e3006e7da6d848d1fc54625396d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 10 Nov 2020 12:34:06 +0100 Subject: Update .vimrc Updated maps and added some plugins. --- vim/.vimrc | 86 ++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 55 insertions(+), 31 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 7afe673..0995fa3 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,5 +1,22 @@ autocmd! bufwritepost .vimrc source % +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +Plugin 'VundleVim/Vundle.vim' + +Plugin 'rust-lang/rust.vim' +Plugin 'airblade/vim-gitgutter' " display git status of the file +Plugin 'vim-airline/vim-airline' " airline at bottom with insert, name, line etc. +Plugin 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} | Plugin 'junegunn/fzf.vim' " fuzzy finder +Plugin 'luochen1990/rainbow' " color parentheses +Plugin 'dense-analysis/ale' " checker syntax +Plugin 'leafOfTree/vim-vue-plugin' +Plugin 'terryma/vim-multiple-cursors' +Plugin 'junegunn/goyo.vim' " ignore numbers and center text +Plugin 'tpope/vim-fugitive' " git extension for commit logs and etc. + +call vundle#end() " required + set term=screen-256color set clipboard=unnamed set mouse=a " click with mouse @@ -36,7 +53,17 @@ set splitright " split on right side set lazyredraw set ttyfast -"colorscheme gruvbox-hard +let g:fzf_preview_window = 'right:70%' +let g:ale_fix_on_save = 1 + +filetype plugin indent on +set nocompatible + +set showcmd " show commands at bottom +syntax on + +colorscheme miramare + augroup remember_folds autocmd! @@ -44,43 +71,40 @@ augroup remember_folds autocmd BufWinEnter * silent! loadview augroup END +" ------------ +" MAPS +" ----------- nnoremap tn :tabnew nnoremap ve :Vexplore -nnoremap :rt :RainbowToggle +nnoremap :rt :RainbowToggle + +" buffers +nnoremap ]b :bnext +nnoremap [b :bprev +nnoremap ,b :Buffers + +" tabs +nnoremap ]t :tabn +nnoremap [t :tabp +nnoremap ,t :tabs + +" only one window +nnoremap ,o :only + " 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? -nnoremap sp :set paste -nnoremap snp :set nopaste - -let g:fzf_preview_window = 'right:70%' -let g:ale_fix_on_save = 1 - -filetype plugin indent on -set nocompatible - -set showcmd " show commands at bottom -syntax on - -colorscheme miramare -set rtp+=~/.vim/bundle/Vundle.vim -call vundle#begin() -Plugin 'VundleVim/Vundle.vim' +nnoremap :ff :Files . +nnoremap :co :Commits +nnoremap :gf :GFiles +nnoremap :gs :GFiles? +nnoremap :gd :Git diff -Plugin 'rust-lang/rust.vim' -Plugin 'airblade/vim-gitgutter' " display git status of the file -Plugin 'vim-airline/vim-airline' " airline at bottom with insert, name, line etc. -Plugin 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} | Plugin 'junegunn/fzf.vim' " fuzzy finder -Plugin 'luochen1990/rainbow' " color parentheses -Plugin 'dense-analysis/ale' " checker syntax -Plugin 'leafOfTree/vim-vue-plugin' -Plugin 'terryma/vim-multiple-cursors' +nnoremap :sp :set paste +nnoremap :snp :set nopaste -call vundle#end() " required +nnoremap :go :Goyo +nnoremap :!go :Goyo! -- cgit v1.2.3-18-g5258