-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.vimrc
62 lines (45 loc) · 1.28 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
let mapleader=" "
syntax on
set number
set relativenumber
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
set smartindent
set wrap
set incsearch
set ignorecase
set smartcase
set hlsearch
set cursorline
set showmatch
set wildmenu
set lazyredraw
set clipboard=unnamedplus
set mouse=a
inoremap jk <ESC>
nnoremap <leader>ww :wa!<CR>
nnoremap <leader>wq :wqa!<CR>
nnoremap <leader>ee :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
nnoremap <leader>ff :Files<CR>
nnoremap <leader>pv :Ex<CR>
set laststatus=2
" Set colorscheme to gruvbox and make it transparent
colorscheme retrobox
set background=dark
" Vim-Plug configuration
call plug#begin('~/.vim/plugged')
" Example Plugins
Plug 'sheerun/vim-polyglot' " Language packs for syntax highlighting
Plug 'scrooloose/nerdtree' " File explorer
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fuzzy finder
Plug 'junegunn/fzf.vim' " FZF integration
Plug 'tpope/vim-fugitive' " Git commands in Vim
Plug 'airblade/vim-gitgutter' " Show git diff in gutter
Plug 'preservim/nerdcommenter' " Commenting utility
Plug 'itchyny/lightline.vim' " Lightweight statusline
call plug#end()
" Set retro-style cursor with block in normal mode and bar in insert mode
set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50