[vim] added swap and undo stuff, dumped old crap
This commit is contained in:
parent
52870676fb
commit
6c9f277db3
7 changed files with 8 additions and 16 deletions
11
install
11
install
|
@ -36,14 +36,11 @@ ln -s $DOTFILES/vim $HOME/.vim
|
|||
ln -s $DOTFILES/vim $HOME/.config/nvim
|
||||
ln -s $DOTFILES/zshrc $HOME/.zshrc
|
||||
|
||||
# Probably will end up dropping this
|
||||
# curl -fLo $DOTFILES/vim/autoload/plug.vim --create-dirs \
|
||||
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
#
|
||||
# /usr/bin/env vim +PlugInstall +qa
|
||||
mkdir -p \
|
||||
~/.local/share/vim/{swap,undo} \
|
||||
~/.vim/pack/plugins/start
|
||||
|
||||
mkdir -p ~/.vim/pack/git-plugins/start
|
||||
git clone https://github.com/w0rp/ale.git ~/.vim/pack/git-plugins/start/ale
|
||||
git clone https://github.com/w0rp/ale.git ~/.vim/pack/plugins/start/ale
|
||||
|
||||
if [[ `uname` == 'Darwin' ]]; then
|
||||
defaults write com.apple.dock autohide-delay -float 86400; killall Dock
|
||||
|
|
1
vim/autoload/.gitignore
vendored
1
vim/autoload/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
plug.vim
|
2
vim/backup/.gitignore
vendored
2
vim/backup/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
2
vim/plugged/.gitignore
vendored
2
vim/plugged/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
2
vim/swap/.gitignore
vendored
2
vim/swap/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
2
vim/undo/.gitignore
vendored
2
vim/undo/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
|
@ -10,6 +10,10 @@ set shiftwidth=2
|
|||
set softtabstop=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 gitcommit,markdown,text setlocal nosi spell tw=80 wm=2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue