51ec87e1d131

Shit
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 08 Feb 2018 20:08:57 +0000
parents 28205343c464
children 43b11c2a5746
branches/tags (none)
files .hgsubstate bin/scratch vim/vimrc

Changes

--- a/.hgsubstate	Fri Jan 19 20:06:06 2018 +0000
+++ b/.hgsubstate	Thu Feb 08 20:08:57 2018 +0000
@@ -40,5 +40,5 @@
 f6f2d6618a321f5b0065586a7bc934325fec81ab vim/bundle/targets
 5d5c71044880443035e07009497962feacb56b20 vim/bundle/vimtex
 bf3fd7f67e730f93765bd3c1cfcdb18fd4043521 vim/bundle/vitality
-065b95f3ac7a455314c2bdefeb2b792f290034df vim/bundle/vlime
+bc3ea6be7274265c85bd9ab3416357a233436f4e vim/bundle/vlime
 6876fe38b33732cb124d415ffc4156f16da5e118 vim/bundle/windowswap
--- a/bin/scratch	Fri Jan 19 20:06:06 2018 +0000
+++ b/bin/scratch	Thu Feb 08 20:08:57 2018 +0000
@@ -1,4 +1,7 @@
 #!/usr/bin/env bash
 
-set -e
-nvim ~/Dropbox/scratch
+set -euo pipefail
+
+mkdir -p "$HOME/Desktop/scratch"
+cd "$HOME/Desktop/scratch"
+$EDITOR "$HOME/Desktop/scratch/scratch.$1"
--- a/vim/vimrc	Fri Jan 19 20:06:06 2018 +0000
+++ b/vim/vimrc	Thu Feb 08 20:08:57 2018 +0000
@@ -6,24 +6,7 @@
 " a few minutes to kill.
 
 " Preamble ---------------------------------------------------------------- {{{
-
-" Dear /bin/bash: fuck you and your bullshit, arcane command-line behaviour.
 "
-" Basically, I want to set this to a non-login, non-interactive bash shell.
-" Using a login/interactive bash as Vim's 'shell' breaks subtle things, like
-" ack.vim's command-line argument parsing.  However, I *do* want bash to load
-" ~/.bash_profile so my aliases get loaded and such.
-"
-" You might think you could do this with the --init-file command line option,
-" which is used to specify an init file.  Or with --rcfile.  But no, those only
-" get loaded for interactive/login shells.
-"
-" So how do we tell bash to source a goddamned file when it loads?  With an
-" *environment variable*.  Jesus, you have multiple command line options for
-" specifying files to load and none of them work?
-"
-" Computers are bullshit.
-" let $BASH_ENV = "~/.bash_profile"
 set shell=/bin/bash\ --login
 
 filetype off
@@ -2758,7 +2741,7 @@
 
     " Settings
     au FileType vlime_sldb setlocal nowrap
-    au FileType vlime_repl setlocal nowrap
+    au FileType vlime_repl setlocal nowrap winfixheight
 
     " Keys for Lisp files
     au FileType lisp nnoremap <buffer> <localleader>e :call vlime#plugin#Compile(vlime#ui#CurTopExpr(v:true))<cr>