summary refs log tree commit diff
path: root/configs/.vimrc
blob: 18fa9103963fd33920234be30278789ea9d8b514 (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
" COMMON VIM SETTINGS, REV. 2

" NECESSITIES:

" disable vi compatability, if still on for some reason
set nocompatible

" enable syntax highlight
syntax on

" indent settings
set autoindent
set smarttab
set smartindent
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround

" disable text wrapping
set nowrap

" allow backspace over everything, default is dumb
set backspace=indent,eol,start

" search settings
set incsearch
set hlsearch
set smartcase
set ignorecase
" map CTRL+L to remove search highlights
nnoremap <silent> <C-L> :noh<C-R><CR><CR><C-L>

" open windows below and to the right of current (why is the default opposite lol)
set splitbelow splitright

" bar settings
" never hide statusbar
set laststatus=2
" show unfinished command in the last line (like 4dd)
set showcmd
" enable command tab completion
set wildmenu
" expand command line history
set history=250

" show relative numbers and absolute number for current line
set number relativenumber

" always show at least 2 more lines below or above cursor
set scrolloff=2

" don't ask for confirm to update file with outside changes
set autoread

" COLOR:

" temporary default color scheme
colorscheme habamax

" dont change default background color
highlight Normal ctermbg=NONE

" enable bright colors
set t_Co=16

" CUSTOMIZATION:

" disable arrow keys, use hjkl instead
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>