Module: check_mk
Branch: master
Commit: ab49a921307291e07793419b582c56a8c5bb7b6f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab49a921307291…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Apr 29 23:08:31 2014 +0200
Added vimrc and screenrc to doc/treasures
---
doc/treasures/workplace/screenrc | 14 ++++++++
doc/treasures/workplace/vimrc | 74 ++++++++++++++++++++++++++++++++++++++
2 files changed, 88 insertions(+)
diff --git a/doc/treasures/workplace/screenrc b/doc/treasures/workplace/screenrc
new file mode 100644
index 0000000..47a1b33
--- /dev/null
+++ b/doc/treasures/workplace/screenrc
@@ -0,0 +1,14 @@
+startup_message off # Keine Willkommensnachricht
+vbell off # Kein visuelles Blinken
+msgwait 1 # Nachrichten für 1 Sekunden anzeigen
+defutf8 on # utf8 bei neuen fenstern
+shelltitle 'bash' # Fenstertitel
+hardcopydir $HOME # Screenshots ins Homeverzeichnis
+defscrollback 10000 # Buffer
+defmonitor off # Aktivitäten nicht in Fenstertitel schreiben
+
+screen -t bash
+screen -t bash
+
+caption always "%{= wk} %-w%{= KW} [%n %t] %{-}%+w %= | @%H | %l | %Y-%m-%d %c
"
+
diff --git a/doc/treasures/workplace/vimrc b/doc/treasures/workplace/vimrc
new file mode 100644
index 0000000..2247f82
--- /dev/null
+++ b/doc/treasures/workplace/vimrc
@@ -0,0 +1,74 @@
+set ignorecase
+
+" Die just-one-space Funktion von Emacs, direkt auf der Leertaste :-)
+nmap <space> :s/[[:space:]]\+\%#[[:space:]]\+/ /e<CR>
+
+
+syntax on
+
+
+" Einruecken von Python
+" set cindent
+set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
+inoremap # X<BS>#
+
+set cino=g0
+map \ :wa<CR>:make -j 8 -z 2>/dev/null ; f12<CR>
+map <F12> :wa<CR>:make -j 8 -z 2>/dev/null ; f12<CR>
+imap <F12> <ESC>:wa<CR>:make -j 8 -z 2>/dev/null ; f12<CR>
+
+set fileencodings=ucs-bom,utf-8,latin1
+set ls=2
+set ruler
+set showmode
+set nocompatible
+set sidescroll=1
+set sidescrolloff=10
+set nolinebreak
+set nobackup
+
+set incsearch
+set hlsearch
+set tabstop=8
+set softtabstop=4
+set shiftwidth=4
+set expandtab
+set autoindent
+set ignorecase
+
+" Absatz auf ___ Spalten umbrechen
+nmap <C-j> }!{fmt -80 -u<CR>
+
+map! <C-k> <C-o>d$
+map! <C-e> <C-o>dw
+
+" Check_MK-Dateien erkennen
+autocmd BufRead *.mk set syntax=python filetype=python
+autocmd BufRead *.wsgi set syntax=python filetype=python
+autocmd BufRead *.lektion set syntax=tex filetype=tex
+
+" Statusbar
+set laststatus=2
+set statusline=
+set statusline+=%-3.3n\ " buffer number
+set statusline+=%f\ " file name
+set statusline+=%h%m%r%w " flags
+set statusline+=\[%{strlen(&ft)?&ft:'none'}, " filetype
+set statusline+=%{&encoding}, " encoding
+set statusline+=%{&fileformat}] " file format
+set statusline+=%= " right align
+set statusline+=0x%-8B\ " current char
+set statusline+=%-10.(%l,%c%V%)\ %<%P " offset
+
+" Faltung von wato.py
+set foldenable
+map <F7> :set foldlevel=0<CR>
+map <F8> :set foldlevel=1<CR>
+set foldmethod=marker
+set foldmarker=#\ \ \ .,#.
+
+" Zeile vom letzten mal merken
+autocmd BufReadPost *
+ \ if line("'\"") > 0 && line("'\"")
<= line("$") |
+ \ exe "normal g`\"" |
+ \ endif