summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorJohannes <stoelp@rhrk.uni-kl.de>2016-04-17 22:07:05 +0200
committerJohannes <stoelp@rhrk.uni-kl.de>2016-04-17 22:07:05 +0200
commitb8fcb00d119f1be4381b445e9c62ea3d39d1b5b5 (patch)
treef2964a4ea50d03a3109fb82d0537b554fdd7568b /.vimrc
parent26762bd5c324ea62db6ea57de59435cd80d91c66 (diff)
downloaddotfiles-b8fcb00d119f1be4381b445e9c62ea3d39d1b5b5.tar.gz
dotfiles-b8fcb00d119f1be4381b445e9c62ea3d39d1b5b5.zip
Added initial vimrc and vimcolors and xterm resource file
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc54
1 files changed, 54 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..577da88
--- /dev/null
+++ b/.vimrc
@@ -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>