diff options
author | Johannes <stoelp@rhrk.uni-kl.de> | 2016-04-17 22:07:05 +0200 |
---|---|---|
committer | Johannes <stoelp@rhrk.uni-kl.de> | 2016-04-17 22:07:05 +0200 |
commit | b8fcb00d119f1be4381b445e9c62ea3d39d1b5b5 (patch) | |
tree | f2964a4ea50d03a3109fb82d0537b554fdd7568b /.vimrc | |
parent | 26762bd5c324ea62db6ea57de59435cd80d91c66 (diff) | |
download | dotfiles-b8fcb00d119f1be4381b445e9c62ea3d39d1b5b5.tar.gz dotfiles-b8fcb00d119f1be4381b445e9c62ea3d39d1b5b5.zip |
Added initial vimrc and vimcolors and xterm resource file
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 54 |
1 files changed, 54 insertions, 0 deletions
@@ -0,0 +1,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> |