summaryrefslogtreecommitdiff
path: root/src/.vimrc.bak
blob: 3aa6721960b1e1c41f7a363da9f08c3bbdb0da0c (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
syntax on
set background=dark
colorscheme cyberpunk

" Your usual config below
set number
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
set autoindent
set smartindent
set scrolloff=999
set mouse=a

" Cursor can rest beyond the last character
set virtualedit=onemore

" Highlight
set hlsearch

" Disable expandtab for make files
autocmd FileType make setlocal noexpandtab


if has("clipboard")
  set clipboard=unnamedplus
endif


" F2: absolute numbers only
nnoremap <F2> :set number!<CR>

" F4: absolute numbers only
nnoremap <F4> :set relativenumber!<CR>

" Search highlight
nnoremap <F5> :nohlsearch<CR>

if &term =~ 'tmux\|xterm\|konsole'
  " Map HOME key to move to beginning of line in normal mode
  noremap <Esc>[1~ 0
  noremap <Esc>[H 0
  noremap <Esc>OH 0
endif



if has('termguicolors')
  set termguicolors
endif