From 8db4706d45e255eb342f364bc4bfdaff193d93ba Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Sat, 31 Dec 2011 21:40:19 +0200 Subject: [PATCH] vimrc: Add my vimrc to this shell-things. Thank you for everyone who I have copied in this :) (Debian /usr/vim/vimrc and nyuszika7h) --- .cat.sh | 2 ++ vimrc | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 vimrc diff --git a/.cat.sh b/.cat.sh index 061f6b4a..654fe47b 100755 --- a/.cat.sh +++ b/.cat.sh @@ -4,3 +4,5 @@ cat bashrc > ~/.bashrc cat tmux.conf > ~/.tmux.conf cat zshrc > ~/.zshrc #cat gitconfig > ~/.gitconfig # I usually do not want this to be overridden so much. +cat vimrc > ~/.vimrc + diff --git a/vimrc b/vimrc new file mode 100644 index 00000000..f2291de0 --- /dev/null +++ b/vimrc @@ -0,0 +1,35 @@ +" Copied from /usr/local/vim/vimrc of Debian. +" This should read Debian default config files too. +runtime! debian.vim + +" Vim5 and later versions support syntax highlighting. Uncommenting the next +" line enables syntax highlighting by default. +syntax on + +" The following are commented out as they cause vim to behave a lot +" differently from regular Vi. They are highly recommended though. +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 autowrite " Automatically save before commands like :next and :make +"set hidden " Hide buffers when they are abandoned +set mouse=a " Enable mouse usage (all modes) + +" Source a global configuration file if available +if filereadable("/etc/vim/vimrc.local") + source /etc/vim/vimrc.local +endif + +" Copied from nyuszika7h http://nyuszika7h.dyndns.org/~nyuszika7h/.vimrc +set number " Show line numbers. + +set ruler " Show the line and column number of the cursor position, + " separated by a comma. + +set background=dark " When set to "dark", Vim will try to use colors that look + " good on a dark background. When set to "light", Vim will + " try to use colors that look good on a light background. + " Any other value is illegal. +