arnaucube
arnaucube/configsPublic Self-hosted repository
configs/vimconfigbase.vim
vimconfigbase.vimRaw
 1" visual
 2syntax on
 3set ruler
 4set number
 5set title
 6set titlestring=nvim-%F
 7set t_Co=256
 8set cursorline
 9
10" abbreviations
11cnoreabbrev W! w!
12cnoreabbrev Q! q!
13cnoreabbrev Qall! qall!
14cnoreabbrev Wq wq
15cnoreabbrev Wa wa
16cnoreabbrev wQ wq
17cnoreabbrev WQ wq
18cnoreabbrev W w
19cnoreabbrev Q q
20cnoreabbrev Qall qall
21cnoreabbrev Qa qa
22
23"" Switching windows
24noremap <C-j> <C-w>j
25noremap <C-k> <C-w>k
26noremap <C-l> <C-w>l
27noremap <C-h> <C-w>h
28
29"" esc mapping
30inoremap jk <ESC>
31tnoremap jk <C-\><C-n>
32
33" scroll
34set scrolloff=5               " keep at least 5 lines above/below
35set sidescrolloff=5           " keep at least 5 lines left/right
36
37" line length
38" set textwidth=80
39
40" toggle for paste mode
41set pastetoggle=<F3>
42
43" set ignorecase  " do case insensitive search 
44set incsearch   " show incremental search results as you type