-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
99 lines (68 loc) · 1.81 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
"======================
"Vibhav Tuteja's .vimrc
"======================
"------------------------
"show line numbers in vim
"------------------------
set number
set numberwidth=3
"----------------------------------
"show title of the file in terminal
"----------------------------------
set title
"-------------------
"Vim - plugs section -- add Plug 'x' under here
"-------------------
call plug#begin('~/.vim/pluggies')
Plug 'ghifarit53/tokyonight-vim'
"--theme
Plug 'sheerun/vim-polyglot'
"--language pack for indentation support and syntax highlighting
Plug 'ervandew/supertab'
"auto complete on tab
Plug 'Raimondi/delimitMate'
"auto bracket completer
call plug#end()
"------------------------
"tokyonight colour scheme
"------------------------
set termguicolors
let g:tokyonight_style = 'storm' " available: night, storm
let g:tokyonight_enable_italic = 1
colorscheme tokyonight
"-------------------------
"vim-polyglot dependencies
"-------------------------
set nocompatible
"-------------------
"syntax highlighting -- always on
"-------------------
filetype plugin on
syntax on
"------------------
"Auto line wrapping
"------------------
set wrap
set textwidth=132
"----------------
"kitty background -- not displaying properly
"----------------
let &t_ut=''
"------
"Ctrl P
"------
set runtimepath^=~/.vim/bundle/ctrlp.vim
"--------------
"VIM Splits QoL
"--------------
set splitbelow splitright "Splits open on the right and below"
"navigate splits in vim
map <C-j> <C-w><up>
map <C-k> <C-w><down>
map <C-h> <C-w><left>
map <C-l> <C-w><right>
"Make adjusing split sizes a bit more friendly with up left down right arrowkeys
noremap <silent> <C-Left> :vertical resize +3<CR>
noremap <silent> <C-Right> :vertical resize -3<CR>
noremap <silent> <C-Up> :resize +3<CR>
noremap <silent> <C-Down> :resize -3<CR>