add .vimrc

This commit is contained in:
Arjun Patel
2026-06-06 15:13:12 -07:00
parent 3a9e5aeec1
commit 37c85c1e60
2 changed files with 26 additions and 0 deletions
+1
View File
@@ -19,3 +19,4 @@
!.zshrc !.zshrc
!.Xresources !.Xresources
!wallpaper.jpg !wallpaper.jpg
!.vimrc
+25
View File
@@ -0,0 +1,25 @@
call plug#begin()
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-fugitive'
call plug#end()
" Use ripgrep to list files (fast, respects .gitignore)
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --glob "!.git/*"'
let mapleader = " "
set autochdir
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set hlsearch
set incsearch
" Mappings
nnoremap <C-p> :GFiles<CR>
nnoremap <leader>b :Buffers<CR>
nnoremap <leader>r :Rg<CR>