dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0cb8cb295fc610fe3bf9510a695cd28f7a89a145
parent 0aedffa51726cbc34944cd8923ff8747d4dd9c42
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Mon, 15 Oct 2018 17:32:08 +0200

Add filetype depending options to vim

Diffstat:
Mdotfiles.sh | 5+++++
Avim/ftdetect/markdown.vim | 1+
Avim/ftdetect/text.vim | 1+
Avim/ftplugin/markdown.vim | 3+++
Avim/ftplugin/text.vim | 3+++
5 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/dotfiles.sh b/dotfiles.sh @@ -30,6 +30,11 @@ rsync -ac --progress $GIT_REPO/taskrc ~/.taskrc rsync -ac --progress $GIT_REPO/vim/vimrc ~/.vimrc rsync -ac --progress $GIT_REPO/vim/colors/obsidian.vim ~/.vim/colors/obsidian.vim +rsync -ac --progress $GIT_REPO/vim/autoload/plug.vim ~/.vim/autoload/plug.vim +rsync -ac --progress $GIT_REPO/vim/ftdetect/text.vim ~/.vim/ftdetect/text.vim +rsync -ac --progress $GIT_REPO/vim/ftdetect/markdown.vim ~/.vim/ftdetect/markdown.vim +rsync -ac --progress $GIT_REPO/vim/ftplugin/text.vim ~/.vim/ftplugin/text.vim +rsync -ac --progress $GIT_REPO/vim/ftplugin/markdown.vim ~/.vim/ftplugin/markdown.vim rsync -ac --progress $GIT_REPO/scripts/tmux_pane_current_path.sh ~/scripts/tmux_pane_current_path.sh diff --git a/vim/ftdetect/markdown.vim b/vim/ftdetect/markdown.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.md,*.wiki setfiletype markdown diff --git a/vim/ftdetect/text.vim b/vim/ftdetect/text.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.txt setfiletype text diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim @@ -0,0 +1,3 @@ +setlocal wrap +setlocal spell spelllang=de,en +setlocal tw=72 diff --git a/vim/ftplugin/text.vim b/vim/ftplugin/text.vim @@ -0,0 +1,3 @@ +setlocal wrap +setlocal spell spelllang=de,en +setlocal tw=72