-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
46 lines (40 loc) · 965 Bytes
/
.vimrc
File metadata and controls
46 lines (40 loc) · 965 Bytes
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
set autoindent
set smartindent
set linebreak
set number
set relativenumber
set nowrap
set splitbelow
set splitright
set undofile
set noswapfile
set termguicolors
set scrolloff=5
set tabstop=4
set shiftwidth=0
set ignorecase
set smartcase
set completeopt=menuone,noselect
if has('nvim-0.11')
endif
let mapleader = " "
nnoremap <silent> - :Explore<CR>
nnoremap <silent> <C-Right> :vert res +5<CR>
nnoremap <silent> <C-Left> :vert res -5<CR>
nnoremap <silent> <C-Up> :res +2<CR>
nnoremap <silent> <C-Down> :res -2<CR>
hi Normal guibg=NONE
function! s:SetColorScheme() abort
colo default
hi Normal guibg=NONE
hi NormalFloat guibg=NONE
hi QuickFixLine gui=underline
hi DiagnosticUnderlineError gui=undercurl
hi DiagnosticUnderlineHint gui=undercurl
hi DiagnosticUnderlineInfo gui=undercurl
hi DiagnosticUnderlineWarn gui=undercurl
endfunction
augroup AfterBackgroundSet
autocmd!
autocmd OptionSet background call s:SetColorScheme()
augroup END