From aafc352dd06cace58c98cea9b335149231ac6e72 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 13 May 2017 16:37:56 -0700 Subject: [PATCH 1/3] Add vim command to remove "smart" quotes. --- dotfiles/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 6d26407..a9959c2 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -151,3 +151,6 @@ autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL " Color column at end of lines set colorcolumn=+1 highlight ColorColumn ctermbg=black guibg=lightgrey + +" Remove smart quotes +command Unsmartquote %s/“\|”/"/g From c7166479a9c1f7cb1919e4e3f3f2c15d47eb4ccb Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 13 May 2017 16:52:42 -0700 Subject: [PATCH 2/3] Vim options for markdown. --- dotfiles/vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/vimrc b/dotfiles/vimrc index a9959c2..9bdc2c9 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -153,4 +153,7 @@ set colorcolumn=+1 highlight ColorColumn ctermbg=black guibg=lightgrey " Remove smart quotes -command Unsmartquote %s/“\|”/"/g +command Unsmartquote %s/“\|”/"/g + +" Markdown options +autocmd Filetype markdown set expandtab tw=4 From 493fec9ceddfaf7b8a4eb7c374cdb65f14aa86d1 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Fri, 19 May 2017 08:36:16 -0700 Subject: [PATCH 3/3] Fix markdown formatting in vim. --- bin/install_tool | 1 + dotfiles/vimrc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/install_tool b/bin/install_tool index 1e3cb5d..1c48574 100755 --- a/bin/install_tool +++ b/bin/install_tool @@ -98,6 +98,7 @@ case ${TOOL} in bunzip2 ${DESTDIR}/hak5.txt.bz2 ;; gcloud) + mkdir -p ${DESTDIR} gtemp=`mktemp -d` gbase="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/" # TODO: find a way to make this version independent diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 9bdc2c9..50ca7e3 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -156,4 +156,4 @@ highlight ColorColumn ctermbg=black guibg=lightgrey command Unsmartquote %s/“\|”/"/g " Markdown options -autocmd Filetype markdown set expandtab tw=4 +autocmd Filetype markdown set expandtab shiftwidth=4