From 6d302d1f4c81630f430405091ff5eea5178e1fe7 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 24 Feb 2016 18:11:29 +0100 Subject: add vim configuration --- .vim/ftdetect/Xresources.vim | 1 + .vim/ftdetect/cls.vim | 1 + .vim/ftdetect/muttrc.vim | 1 + .vim/ftplugin/c.vim | 8 ++++++++ .vim/ftplugin/mail.vim | 2 ++ .vim/ftplugin/tex.vim | 5 +++++ .vimrc | 29 +++++++++++++++++++++++++++++ 7 files changed, 47 insertions(+) create mode 100644 .vim/ftdetect/Xresources.vim create mode 100644 .vim/ftdetect/cls.vim create mode 100644 .vim/ftdetect/muttrc.vim create mode 100644 .vim/ftplugin/c.vim create mode 100644 .vim/ftplugin/mail.vim create mode 100644 .vim/ftplugin/tex.vim create mode 100644 .vimrc diff --git a/.vim/ftdetect/Xresources.vim b/.vim/ftdetect/Xresources.vim new file mode 100644 index 0000000..0054363 --- /dev/null +++ b/.vim/ftdetect/Xresources.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead */.Xresources.d/* set filetype=xdefaults diff --git a/.vim/ftdetect/cls.vim b/.vim/ftdetect/cls.vim new file mode 100644 index 0000000..1a23087 --- /dev/null +++ b/.vim/ftdetect/cls.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead *.cls set filetype=tex diff --git a/.vim/ftdetect/muttrc.vim b/.vim/ftdetect/muttrc.vim new file mode 100644 index 0000000..910fe15 --- /dev/null +++ b/.vim/ftdetect/muttrc.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead */.mutt.d/* set filetype=muttrc diff --git a/.vim/ftplugin/c.vim b/.vim/ftplugin/c.vim new file mode 100644 index 0000000..beaaf90 --- /dev/null +++ b/.vim/ftplugin/c.vim @@ -0,0 +1,8 @@ +setlocal tabstop=8 +setlocal softtabstop=8 +setlocal shiftwidth=8 +setlocal noexpandtab + +setlocal cino=:0 + +setlocal colorcolumn=80 diff --git a/.vim/ftplugin/mail.vim b/.vim/ftplugin/mail.vim new file mode 100644 index 0000000..0915315 --- /dev/null +++ b/.vim/ftplugin/mail.vim @@ -0,0 +1,2 @@ +setlocal noexpandtab +setlocal wrap diff --git a/.vim/ftplugin/tex.vim b/.vim/ftplugin/tex.vim new file mode 100644 index 0000000..46732d4 --- /dev/null +++ b/.vim/ftplugin/tex.vim @@ -0,0 +1,5 @@ +set tabstop=2 +set shiftwidth=2 +set expandtab + +set colorcolumn=80 diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..12f9eac --- /dev/null +++ b/.vimrc @@ -0,0 +1,29 @@ +set nocompatible +filetype off + +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +Plugin 'VundleVim/Vundle.vim' +Plugin 'a.vim' +Plugin 'altercation/vim-colors-solarized' +Plugin 'andreasvc/vim-256noir' +Plugin 'cespare/vim-toml' +Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'rust-lang/rust.vim' +Plugin 'tpope/vim-fugitive' +call vundle#end() + +filetype plugin indent on + +runtime! ftplugin/man.vim + +" Status line and numbers +set laststatus=2 +set number + +" Colors +set background=dark +colorscheme 256_noir + +" LaTeX instead of Plain TeX +let g:tex_flavor = "latex" -- cgit v1.2.3