From 59f084e3de7c4b23dcf50b1e09f4cb55a11ede0b Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 17 Jun 2016 00:22:55 +0200 Subject: update vim configuration and move .vimrc to .vim/vimrc --- .gitmodules | 3 +++ .vim/after/ftplugin/cpp.vim | 5 +++++ .vim/after/ftplugin/cs.vim | 3 +++ .vim/bundle/Vundle.vim | 1 + .vim/ftdetect/Xresources.vim | 1 - .vim/ftdetect/muttrc.vim | 1 - .vim/vimrc | 44 ++++++++++++++++++++++++++++++++++++++++++++ .vimrc | 29 ----------------------------- 8 files changed, 56 insertions(+), 31 deletions(-) create mode 100644 .gitmodules create mode 100644 .vim/after/ftplugin/cpp.vim create mode 100644 .vim/after/ftplugin/cs.vim create mode 160000 .vim/bundle/Vundle.vim delete mode 100644 .vim/ftdetect/Xresources.vim delete mode 100644 .vim/ftdetect/muttrc.vim create mode 100644 .vim/vimrc delete mode 100644 .vimrc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a9995d5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".vim/bundle/Vundle.vim"] + path = .vim/bundle/Vundle.vim + url = https://github.com/Vundlevim/Vundle.vim diff --git a/.vim/after/ftplugin/cpp.vim b/.vim/after/ftplugin/cpp.vim new file mode 100644 index 0000000..0e18e2e --- /dev/null +++ b/.vim/after/ftplugin/cpp.vim @@ -0,0 +1,5 @@ +setlocal expandtab +setlocal shiftwidth=4 +setlocal softtabstop=4 + +setlocal cino=N-s diff --git a/.vim/after/ftplugin/cs.vim b/.vim/after/ftplugin/cs.vim new file mode 100644 index 0000000..765e06c --- /dev/null +++ b/.vim/after/ftplugin/cs.vim @@ -0,0 +1,3 @@ +setlocal expandtab +setlocal shiftwidth=4 +setlocal softtabstop=4 diff --git a/.vim/bundle/Vundle.vim b/.vim/bundle/Vundle.vim new file mode 160000 index 0000000..4984767 --- /dev/null +++ b/.vim/bundle/Vundle.vim @@ -0,0 +1 @@ +Subproject commit 4984767509e3d05ca051e253c8a8b37de784be45 diff --git a/.vim/ftdetect/Xresources.vim b/.vim/ftdetect/Xresources.vim deleted file mode 100644 index 0054363..0000000 --- a/.vim/ftdetect/Xresources.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead */.Xresources.d/* set filetype=xdefaults diff --git a/.vim/ftdetect/muttrc.vim b/.vim/ftdetect/muttrc.vim deleted file mode 100644 index 910fe15..0000000 --- a/.vim/ftdetect/muttrc.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead */.mutt.d/* set filetype=muttrc diff --git a/.vim/vimrc b/.vim/vimrc new file mode 100644 index 0000000..91025df --- /dev/null +++ b/.vim/vimrc @@ -0,0 +1,44 @@ +" Initialize Vundle for plugin management + +set nocompatible +filetype off + +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +Plugin 'VundleVim/Vundle.vim' +Plugin 'a.vim' +Plugin 'andreasvc/vim-256noir' +Plugin 'aperezdc/vim-template' +Plugin 'cespare/vim-toml' +Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'godlygeek/tabular' +Plugin 'OmniSharp/omnisharp-vim' +Plugin 'rodjek/vim-puppet' +Plugin 'rust-lang/rust.vim' +Plugin 'scrooloose/syntastic' +Plugin 'tpope/vim-dispatch' +Plugin 'tpope/vim-fugitive' +call vundle#end() + +filetype plugin indent on + +runtime! ftplugin/man.vim + +" Syntax highlighting +syntax on + +" Status line and numbers +set laststatus=2 +set number + +" Colors +set background=dark + +" LaTeX instead of Plain TeX +let g:tex_flavor = "latex" + +" Temporary workaround: csproj indicates a project root +let g:ctrlp_root_markers = ['*.csproj'] + +" Ignore some additional patterns when opening files +set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*/vendor/*,*/node_modules/* diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 12f9eac..0000000 --- a/.vimrc +++ /dev/null @@ -1,29 +0,0 @@ -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