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