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