blob: 577da88c52657951371f51f9e3c060288b164006 (
plain) (
blame)
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
|
runtime! debian.vim
set nocompatible
" +----------------------------+
" | Color Settings |
" +----------------------------+
syntax on
"set background=light
set background=dark
colorscheme solarized
"colorscheme scheakur
"colorscheme pride
"colorscheme buddy
"colorscheme gruvbox
set autoindent "Copy indent from current line when starting a new line
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set mouse=a " Enable mouse usage (all modes)
set encoding=utf-8 " Set default encoding to UTF-8.
set history=1000 " Sets how many lines of history VIM has to remember
set ruler " display cursor position
set laststatus=2 " always show status line
set wildignore=*.o,*~,*.pyc " ignore compiled files
set scrolloff=7 " set vertical scroll distance to 7 lines
set wildmenu " turn on the wild menu
set hlsearch " highlight search results
set magic " for regular expressions turn magic on
set mat=2 " how many tenths of a second to blink when matching brackets
" No annoying sound on errors
set noerrorbells
set novisualbell
set tm=500
set number " Display line numbers
set tabstop=4 " set Tab-length
set expandtab " expand tabs to spaces
set tabpagemax=100 " Sets how many tabs will be opened
" +----------------------------+
" | Own Functions and Key Maps |
" +----------------------------+
function! ToggleRelativeNumber()
set invrelativenumber
endfunc
nnoremap <C-n> :call ToRelativeNumber()<CR>
|