diff options
author | Robin Krahl <me@robin-krahl.de> | 2016-02-24 18:11:29 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2016-02-24 18:11:29 +0100 |
commit | 6d302d1f4c81630f430405091ff5eea5178e1fe7 (patch) | |
tree | 67782a6cd4281afb79b012aa6065e4bce9d87a7a | |
download | dotfiles-6d302d1f4c81630f430405091ff5eea5178e1fe7.tar.gz dotfiles-6d302d1f4c81630f430405091ff5eea5178e1fe7.tar.bz2 |
add vim configuration
-rw-r--r-- | .vim/ftdetect/Xresources.vim | 1 | ||||
-rw-r--r-- | .vim/ftdetect/cls.vim | 1 | ||||
-rw-r--r-- | .vim/ftdetect/muttrc.vim | 1 | ||||
-rw-r--r-- | .vim/ftplugin/c.vim | 8 | ||||
-rw-r--r-- | .vim/ftplugin/mail.vim | 2 | ||||
-rw-r--r-- | .vim/ftplugin/tex.vim | 5 | ||||
-rw-r--r-- | .vimrc | 29 |
7 files changed, 47 insertions, 0 deletions
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 @@ -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" |