-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
52 lines (35 loc) · 891 Bytes
/
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
syntax on
" Indenting is four spaces not eight
set shiftwidth=4
" Number of spaces inserted when inputting tab
set softtabstop=4
" Spaces instead of tabs
set expandtab
set relativenumber
set cursorline
" Better search
set ignorecase
set smartcase
set incsearch
" Disable annoying error noise
set noerrorbells visualbell t_vb=
" Makes lightline work
set laststatus=2
" Removes redundant --INSERT--
set noshowmode
" Fuzzy Find installed via git
set rtp+=~/.fzf
" Persistent undo
" set undodir=~/.vimdid
" set undofile
" Judge me!
set mouse=a
" Use <C-L> to clear the highlighting of :set hlsearch.
if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
endif
inoremap {<CR> {<CR>}<C-o>O
nnoremap <silent> <C-j> <C-e>
nnoremap <silent> <C-k> <C-y>
set background=dark
let g:lightline = { 'colorscheme': 'one', }