-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
60 lines (47 loc) · 1.64 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
" Set background color to dark.
set background=dark
" Disable compatibility with vi to avoid unexpected issues.
set nocompatible
" Enable file type detection, plugin loading, and indentation settings.
filetype plugin indent on
" Turn on syntax highlighting.
syntax on
" Display line numbers on the left side.
set number
" Highlight the line and column under the cursor.
set cursorline
set cursorcolumn
" Disable error bells, visual bells, and sounds.
set noerrorbells
set novisualbell
set t_vb=
" Enable true color support in the terminal.
set termguicolors
" Configure cursor shapes for different modes:
" 1 -> blinking block
" 2 -> solid block
" 3 -> blinking underscore
" 4 -> solid underscore
" 5 -> blinking vertical bar
" 6 -> solid vertical bar
" Cursor shape settings
let &t_EI = "\<Esc>[2 q" " NORMAL/VISUAL mode
let &t_SR = "\<Esc>[4 q" " REPLACE mode
let &t_SI = "\<Esc>[6 q" " INSERT mode
" Configure cursor shape changes for command line mode:
" Set cursor shape when entering command line mode.
autocmd CmdlineEnter * execute 'silent !echo -ne "' . "\<Esc>[1 q" . '"'
" Revert cursor shape when leaving command line mode.
autocmd CmdlineLeave * execute 'silent !echo -ne "' . "\<Esc>[2 q" . '"'
" Ensure you have `vim-plug` installed.
" Installation:
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin()
" Add your plugins here.
Plug 'iibe/gruvbox-high-contrast'
call plug#end()
" Plugin settings
" ===============
let g:gruvbox_contrast_dark = 'hard' " Use hard contrast for gruvbox
colorscheme gruvbox-high-contrast " Set colorscheme to gruvbox-high-contrast