dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 5bef1b14caaf0a48555bb433872b07626bc7f3ac (patch)
parent 749a3dc9b3e4b717630143df4c3557b2e854c169
Author: Alexander Karle <akarle@umass.edu>
Date:   Tue, 23 Jan 2018 18:40:31 -0500

Adding ftplugins, moving vim scripts to vim/

Diffstat:
Dpluginsettings.vim | 20--------------------
Msetup.sh | 19++++++++++++++-----
Avim/ftplugin/tex.vim | 8++++++++
Rkeys.vim -> vim/keys.vim | 0
Rplugins.vim -> vim/plugins.vim | 0
Avim/pluginsettings.vim | 20++++++++++++++++++++
Rtheme.vim -> vim/theme.vim | 0
Rvimrc -> vim/vimrc | 0
8 files changed, 42 insertions(+), 25 deletions(-)

diff --git a/pluginsettings.vim b/pluginsettings.vim @@ -1,20 +0,0 @@ -" Syntastic Default Settings -"set statusline+=%#warningmsg# -"set statusline+=%{SyntasticStatuslineFlag()} -"set statusline+=%* - -"let g:syntastic_always_populate_loc_list = 1 -"let g:syntastic_auto_loc_list = 1 -"let g:syntastic_check_on_open = 0 -"let g:syntastic_check_on_wq = 0 - -"let g:syntastic_python_checkers = ['flake8'] -"let g:syntastic_python_flake8_post_args='--ignore=E116' - -" vimtex stuff -" Set pdf viewer to sim -let g:vimtex_view_method='skim' - -"for airline status bar -- need to include font -let g:airline_powerline_fonts = 1 -let g:airline_theme = 'onedark' diff --git a/setup.sh b/setup.sh @@ -3,13 +3,22 @@ # Set up vimrc VIMHOME=~/.vim +GITVIM=~/git/dotfiles/vim if [ ! -d $VIMHOME ]; then echo "Making ~/.vim" mkdir $VIMHOME fi -ln -s ~/git/dotfiles/vimrc ~/.vimrc -ln -s ~/git/dotfiles/theme.vim ~/.vim/theme.vim -ln -s ~/git/dotfiles/plugins.vim ~/.vim/plugins.vim -ln -s ~/git/dotfiles/pluginsettings.vim ~/.vim/pluginsettings.vim -ln -s ~/git/dotfiles/keys.vim ~/.vim/keys.vim +ln -s $GITVIM/vimrc ~/.vimrc +ln -s $GITVIM/theme.vim $VIMHOME/theme.vim +ln -s $GITVIM/plugins.vim $VIMHOME/plugins.vim +ln -s $GITVIM/pluginsettings.vim $VIMHOME/pluginsettings.vim +ln -s $GITVIM/keys.vim $VIMHOME/keys.vim + +# filetype plugins +FTPLUGDIR=$VIMHOME/ftplugin +if [ ! -d $FTPLUGDIR ]; then + mkdir $FTPLUGDIR +fi + +ln -s $GITVIM/ftplugin/tex.vim $FTPLUGDIR/tex.vim diff --git a/vim/ftplugin/tex.vim b/vim/ftplugin/tex.vim @@ -0,0 +1,8 @@ +" ignore the wrapped lines +noremap <buffer> <silent> k gk +noremap <buffer> <silent> j gj +noremap <buffer> <silent> 0 g0 +noremap <buffer> <silent> $ g$ + +" spell check! +setlocal spell spelllang=en_us diff --git a/keys.vim b/vim/keys.vim diff --git a/plugins.vim b/vim/plugins.vim diff --git a/vim/pluginsettings.vim b/vim/pluginsettings.vim @@ -0,0 +1,20 @@ +" Syntastic Default Settings +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + +"let g:syntastic_always_populate_loc_list = 1 +"let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 0 +let g:syntastic_check_on_wq = 0 + +let g:syntastic_python_checkers = ['flake8'] +let g:syntastic_python_flake8_post_args='--ignore=E116' + +" vimtex stuff +" Set pdf viewer to sim +let g:vimtex_view_method='skim' + +"for airline status bar -- need to include font +let g:airline_powerline_fonts = 1 +let g:airline_theme = 'onedark' diff --git a/theme.vim b/vim/theme.vim diff --git a/vimrc b/vim/vimrc