-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
78 lines (57 loc) · 1.24 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
noremap <Space> <Nop>
let mapleader=" "
noremap <C-h> <Left>
noremap <C-j> <Down>
noremap <C-k> <Up>
noremap <C-l> <Right>
noremap! <C-h> <Left>
noremap! <C-j> <Down>
noremap! <C-k> <Up>
noremap! <C-l> <Right>
noremap H ^
noremap L $
noremap K 020kzz
noremap J 020jzz
noremap p "0p
noremap P "0gP
vnoremap x "0x
noremap <C-p> "+p
noremap <C-y> "+y
noremap <C-x> "+x
inoremap <C-p> <Esc>"0pa
inoremap <C-v> <Esc>"+pa
vnoremap <TAB> >gv
vnoremap <S-TAB> <gv
nnoremap <Leader>n :noh<CR>
noremap <Leader>w :w<CR>
noremap <Leader>W :wa<CR>
noremap <Leader>q :q<CR>
noremap <Leader>Q :q!<CR>
noremap go :copen<CR>
noremap gq :cclose<CR>
noremap <Leader>h <C-w>h
noremap <Leader>j <C-w>j
noremap <Leader>k <C-w>k
noremap <Leader>l <C-w>l
noremap <Up> :resize -2<CR>
noremap <Down> :resize +2<CR>
noremap <Left> :vertical resize -2<CR>
noremap <Right> :vertical resize +2<CR>
noremap R <C-r>
noremap <Leader>i <C-a>
noremap <Leader>I <C-x>
set number
set relativenumber
set splitright
set splitbelow
set ts=4
set sw=4
set breakindent
set ignorecase
set smartcase
autocmd FileType * set formatoptions-=cro
set termguicolors
syntax enable
let g:tokyonight_style = 'storm' " available: night, storm
let g:tokyonight_enable_italic = 0
source ~/.tokyonight.vim