configs/.vimrc
.vimrcRaw
1call plug#begin(expand('~/.vim/plugged'))
2
3Plug 'morhetz/gruvbox'
4
5
6
7call plug#end()
8
9" visual
10syntax on
11set ruler
12set number
13set title
14set titlestring=nvim-%F
15set t_Co=256
16set cursorline
17set background=dark " for the dark version
18
19" abbreviations
20cnoreabbrev W! w!
21cnoreabbrev Q! q!
22cnoreabbrev Qall! qall!
23cnoreabbrev Wq wq
24cnoreabbrev Wa wa
25cnoreabbrev wQ wq
26cnoreabbrev WQ wq
27cnoreabbrev W w
28cnoreabbrev Q q
29cnoreabbrev Qall qall
30cnoreabbrev Qa qa
31
32"" Switching windows
33noremap <C-j> <C-w>j
34noremap <C-k> <C-w>k
35noremap <C-l> <C-w>l
36noremap <C-h> <C-w>h
37
38"" esc mapping
39inoremap jk <ESC>
40tnoremap jk <C-\><C-n>
41
42" scroll
43set scrolloff=5 " keep at least 5 lines above/below
44set sidescrolloff=5 " keep at least 5 lines left/right
45
46colorscheme torte
47set background=dark
48hi statusline ctermfg=234 ctermbg=250
49hi LineNr ctermfg=246
50
51
52colorscheme gruvbox