# HG changeset patch # User "Tomas Zeman " # Date 1287474031 -7200 # Node ID bb4a42b3b61fed130c3e66cdc94f2bfc780efe02 # Parent e5dfbac5f5879c6b367696444eef87d05cd6a953 Added screenrc, vimrc diff -r e5dfbac5f587 -r bb4a42b3b61f config/screenrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/screenrc Tue Oct 19 09:40:31 2010 +0200 @@ -0,0 +1,7 @@ +term xterm +vbell on +escape `` +defscrollback 2000 +hardstatus alwayslastline +startup_message off +hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%H %l %Y-%m-%d %c:%s%{-}' diff -r e5dfbac5f587 -r bb4a42b3b61f config/vimrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/vimrc Tue Oct 19 09:40:31 2010 +0200 @@ -0,0 +1,59 @@ +" An example for a vimrc file. +" +" Maintainer: Bram Moolenaar +" Last change: 2000 Oct 14 +" +" To use it, copy it to +" for Unix and OS/2: ~/.vimrc +" for Amiga: s:.vimrc +" for MS-DOS and Win32: $VIM\_vimrc +" for OpenVMS: sys$login:.vimrc + +" Use Vim settings, rather then Vi settings (much better!). +" This must be first, because it changes other options as a side effect. +set nocompatible + +set bs=2 " allow backspacing over everything in insert mode +set ai " always set autoindenting on +if has("vms") + set nobackup " do not keep a backup file, use versions instead +else + set backup " keep a backup file +endif +set viminfo='20,\"50 " read/write a .viminfo file, don't store more + " than 50 lines of registers +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time + +" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries +" let &guioptions = substitute(&guioptions, "t", "", "g") + +" Don't use Ex mode, use Q for formatting +map Q gq + +" Make p in Visual mode replace the selected text with the "" register. +vnoremap p :let current_reg = @"gvdi=current_reg + +" Switch syntax highlighting on, when the terminal has colors +" Also switch on highlighting the last used search pattern. +if &t_Co > 2 || has("gui_running") + syntax on + set hlsearch +endif + +" Only do this part when compiled with support for autocommands. +if has("autocmd") + " In text files, always limit the width of text to 78 characters + autocmd BufRead *.txt set tw=78 +endif " has("autocmd") + +set encoding=utf8 +set background=dark +set number +set hidden +colorscheme desert +set exrc +set secure +let g:proj_flags="imstbvSc" +nmap p ToggleProject +