-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
63 lines (46 loc) · 1.52 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
call plug#begin()
Plug 'arcticicestudio/nord-vim'
Plug 'morhetz/gruvbox'
Plug 'itchyny/lightline.vim'
call plug#end()
syntax on
filetype indent plugin on
set tabstop=4 " Number of visual spaces per tab
set softtabstop=4 " Number of spaces in tab when editing
set expandtab " Tabs are spaces
set shiftwidth=4 " Indentation when doing >>
set number relativenumber " Show linenumbers (hybrid)
set showcmd " Show command on bottom right
set wildmenu " Display command line’s tab complete options as a menu
set showmatch " Highlight matching parens
set matchtime=3 " Faster matching
set incsearch " Incremental search
set hlsearch " Highlight search
" turn off search highlight
nnoremap <leader><space> :nohlsearch<CR>
" remove C/C++ single-line comment continuation
au FileType c,cpp setlocal comments-=:// comments+=f://
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
inoremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
set laststatus=2 " Always display the status bar
set noshowmode " Hide -- INSERT --
if ! has('gui_running')
set ttimeoutlen=10
augroup FastEscape
autocmd!
au InsertEnter * set timeoutlen=0
au InsertLeave * set timeoutlen=1000
augroup END
endif
set termguicolors
set background=dark
colorscheme gruvbox
let g:lightline = {
\ 'colorscheme': 'gruvbox',
\ }