diff options
author | Robin Krahl <me@robin-krahl.de> | 2016-06-17 00:22:55 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2016-06-17 00:22:55 +0200 |
commit | 59f084e3de7c4b23dcf50b1e09f4cb55a11ede0b (patch) | |
tree | b7b538916e0cb3687ff9b73e00037176cf29d32d | |
parent | 31a73f5e9ab793eb2e0f6f7541c62a041cb8d068 (diff) | |
download | dotfiles-59f084e3de7c4b23dcf50b1e09f4cb55a11ede0b.tar.gz dotfiles-59f084e3de7c4b23dcf50b1e09f4cb55a11ede0b.tar.bz2 |
update vim configuration and move .vimrc to .vim/vimrc
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | .vim/after/ftplugin/cpp.vim | 5 | ||||
-rw-r--r-- | .vim/after/ftplugin/cs.vim | 3 | ||||
m--------- | .vim/bundle/Vundle.vim | 0 | ||||
-rw-r--r-- | .vim/ftdetect/Xresources.vim | 1 | ||||
-rw-r--r-- | .vim/ftdetect/muttrc.vim | 1 | ||||
-rw-r--r-- | .vim/vimrc (renamed from .vimrc) | 19 |
7 files changed, 28 insertions, 4 deletions
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 +Subproject 4984767509e3d05ca051e253c8a8b37de784be4 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 @@ -1,3 +1,5 @@ +" Initialize Vundle for plugin management + set nocompatible filetype off @@ -5,11 +7,16 @@ 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 '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() @@ -17,13 +24,21 @@ 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 -colorscheme 256_noir " 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/* |