[vim] added swap and undo stuff, dumped old crap

This commit is contained in:
Josh Sherman 2017-09-27 14:20:24 -05:00
parent 52870676fb
commit 6c9f277db3
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
7 changed files with 8 additions and 16 deletions

11
install
View file

@ -36,14 +36,11 @@ ln -s $DOTFILES/vim $HOME/.vim
ln -s $DOTFILES/vim $HOME/.config/nvim ln -s $DOTFILES/vim $HOME/.config/nvim
ln -s $DOTFILES/zshrc $HOME/.zshrc ln -s $DOTFILES/zshrc $HOME/.zshrc
# Probably will end up dropping this mkdir -p \
# curl -fLo $DOTFILES/vim/autoload/plug.vim --create-dirs \ ~/.local/share/vim/{swap,undo} \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ~/.vim/pack/plugins/start
#
# /usr/bin/env vim +PlugInstall +qa
mkdir -p ~/.vim/pack/git-plugins/start git clone https://github.com/w0rp/ale.git ~/.vim/pack/plugins/start/ale
git clone https://github.com/w0rp/ale.git ~/.vim/pack/git-plugins/start/ale
if [[ `uname` == 'Darwin' ]]; then if [[ `uname` == 'Darwin' ]]; then
defaults write com.apple.dock autohide-delay -float 86400; killall Dock defaults write com.apple.dock autohide-delay -float 86400; killall Dock

View file

@ -1 +0,0 @@
plug.vim

View file

@ -1,2 +0,0 @@
*
!.gitignore

View file

@ -1,2 +0,0 @@
*
!.gitignore

2
vim/swap/.gitignore vendored
View file

@ -1,2 +0,0 @@
*
!.gitignore

2
vim/undo/.gitignore vendored
View file

@ -1,2 +0,0 @@
*
!.gitignore

View file

@ -10,6 +10,10 @@ set shiftwidth=2
set softtabstop=2 set softtabstop=2
set tabstop=2 set tabstop=2
set directory=~/.local/share/vim/swap,/tmp
set undodir=~/.local/share/vim/undo,/tmp
set undofile
autocmd FileType php setlocal sw=4 sts=4 ts=4 autocmd FileType php setlocal sw=4 sts=4 ts=4
autocmd FileType gitcommit,markdown,text setlocal nosi spell tw=80 wm=2 autocmd FileType gitcommit,markdown,text setlocal nosi spell tw=80 wm=2