summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.vimrc33
1 files 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<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