33d393113753

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 08 Oct 2014 13:30:41 -0400
parents b21e7cb29335 (current diff) 4e0d0927fa6b (diff)
children e8ba45f41366
branches/tags (none)
files vim/vimrc

Changes

--- a/dotcss/weather.com.css	Wed Oct 08 13:30:08 2014 -0400
+++ b/dotcss/weather.com.css	Wed Oct 08 13:30:41 2014 -0400
@@ -1,209 +0,0 @@
-// First grab Stylebot: https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en
-
-#wx-breaking-now {
-    display: none;
-}
-
-#wx-wrapper {
-    border-style: none;
-}
-
-#wx-rail {
-    display: none;
-}
-
-div.wx-inner {
-    display: none;
-}
-
-div.wx-module.wx-gptADS {
-    display: none;
-}
-
-div.wx-next a {
-    display: none;
-}
-
-div.wx-nav-arrow.wx-k-lg-rt {
-    display: none;
-}
-
-div.wx-content {
-    display: none;
-}
-
-div.wx-social-share-ls-wrapper ul {
-    display: none;
-}
-
-div.wx-search form input {
-    display: none;
-}
-
-div.wx-searchButton {
-    display: none;
-}
-
-div.wx-search {
-    display: none;
-}
-
-#wx-bottom-inner {
-    height: 400px;
-}
-
-dl.wx-1 {
-    display: none;
-}
-
-dl.wx-2 {
-    display: none;
-}
-
-dl.wx-3 {
-    display: none;
-}
-
-dl.wx-4 {
-    display: none;
-}
-
-ul.wx-social {
-    display: none;
-}
-
-div.wx-legal {
-    display: none;
-}
-
-#wx-Strip {
-    display: none;
-}
-
-#wx-header-tools {
-    display: none;
-}
-
-div.wx-desktop-weather-btn a {
-    display: none;
-}
-
-div.wx-desktop-weather-bg {
-    display: none;
-}
-
-span.wx-icon.wx-desktop-weather {
-    display: none;
-}
-
-li.twc-weather-edit-location {
-    display: none;
-}
-
-div.wx-grid6of6 {
-    height: 0;
-    margin-bottom: 0;
-    padding-bottom: 0;
-}
-
-#wx-inner-rail {
-    clear: left;
-}
-
-div.fby-tab.fby-tab-r a {
-    display: none;
-}
-
-div.fby-tab.fby-tab-r {
-    display: none;
-}
-
-div.wx-prev a {
-    display: none;
-}
-
-div.wx-nav-arrow.wx-k-lg-lt {
-    display: none;
-}
-
-div.wx-free-title h3 {
-    display: none;
-}
-
-a.wx-icon.wx-cond.wx-phone {
-    display: none;
-}
-
-a.wx-icon.wx-cond.wx-desktop {
-    display: none;
-}
-
-a.wx-icon.wx-cond.wx-tablet {
-    display: none;
-}
-
-div.wx-social-share-bar {
-    display: none;
-}
-
-div.wx-lifestyles div {
-    display: none;
-}
-
-#fsr_modalOverlay {
-    display: none;
-}
-
-div.fsrwin {
-    display: none;
-}
-
-div.wx-24hour.wx-module.wx-grid3of6.wx-weather {
-    margin-left: 0;
-    padding-left: 0;
-}
-
-div#wx-footer {
-    border-top: 0;
-}
-
-div#wx-top-wrap {
-    width: 660px;
-}
-
-div#wx-main {
-    float: none;
-    margin: 0 auto;
-}
-
-div.trc_rbox_outer {
-    display: none;
-}
-
-div.trc_rbox_header.trc_rbox_border_elm {
-    display: none;
-}
-
-div.trc_rbox_container div {
-    display: none;
-}
-
-div.wx-map {
-    margin-left: 165px;
-}
-
-div#wx-forecast-container div.wx-map {
-    margin-left: 0;
-}
-
-.wx-grid6of6 {
-    width: auto;
-}
-
-div.wx-corsican {
-    display: none;
-}
-
-div.wx-module.wx-featured.wx-wwir-module.wx-cond-bg {
-    display: none;
-}
\ No newline at end of file
--- a/vim/custom-dictionary.utf-8.add	Wed Oct 08 13:30:08 2014 -0400
+++ b/vim/custom-dictionary.utf-8.add	Wed Oct 08 13:30:41 2014 -0400
@@ -161,5 +161,6 @@
 Reykjavík
 meatspace
 scrollback
+tmux
 precompute
 fuckery
--- a/vim/vimrc	Wed Oct 08 13:30:08 2014 -0400
+++ b/vim/vimrc	Wed Oct 08 13:30:41 2014 -0400
@@ -794,6 +794,10 @@
     " Indent top-level form.
     au FileType clojure nmap <buffer> <localleader>= mz99[(v%='z
     " ])
+
+    " Not sure about this but we'll give it a try.
+    au FileType clojure nmap <buffer> gi mz99[(v%='z
+    " ])
 augroup END
 
 " }}}
@@ -812,9 +816,6 @@
 " }}}
 " Common Lisp {{{
 
-" function! SendToTmuxStripped(text)
-"     call SendToTmux(substitute(a:text, '\v\n*$', '', ''))
-" endfunction
 function! SetLispWords()
     if exists("g:did_set_lisp_words")
         return
@@ -827,6 +828,39 @@
     set lispwords+=eswitch
 endfunction
 
+function! SendLispForm()
+    let view = winsaveview()
+
+    execute "normal! vab\<esc>"
+    SendSelectionToTmuxTrimmed
+
+    call winrestview(view)
+endfunction
+
+function! SendToplevelLispForm()
+    let view = winsaveview()
+
+    " If we're on the first char of the form, calling PareditFindDefunBck will
+    " move us to the previous form, which we don't want.  So instead we'll just
+    " always move a char to the right.
+    silent! normal! l
+
+    call PareditFindDefunBck()
+    execute "normal! vab\<esc>"
+    SendSelectionToTmuxTrimmed
+
+    call winrestview(view)
+endfunction
+
+function! SendLispBuffer()
+    let view = winsaveview()
+
+    execute "normal! ggVG\<esc>"
+    SendSelectionToTmuxTrimmed
+
+    call winrestview(view)
+endfunction
+
 augroup ft_commonlisp
     au!
 
@@ -845,13 +879,13 @@
     " \c - send ctrl-l            [c]lear
 
     " Send the current form to the REPL
-    au FileType lisp nnoremap <buffer> <silent> <localleader>f :let lisp_tslime_view = winsaveview()<cr>vab"ry:call SendToTmuxStripped(@r)<cr>:call winrestview(lisp_tslime_view)<cr>
+    au FileType lisp nnoremap <buffer> <silent> <localleader>f :call SendLispForm()<cr>
 
     " Send the current top-level form to the REPL
-    au FileType lisp nnoremap <buffer> <silent> <localleader>e :let lisp_tslime_view = winsaveview()<cr>:silent! normal! l<cr>:call PareditFindDefunBck()<cr>vab"ry:call SendToTmuxStripped(@r)<cr>:call winrestview(lisp_tslime_view)<cr>
-
-    " Send the entire buffer to the REPL
-    au FileType lisp nnoremap <buffer> <silent> <localleader>r :let lisp_tslime_view = winsaveview()<cr>ggVG"ry:call SendToTmuxStripped(@r)<cr>:call winrestview(lisp_tslime_view)<cr>
+    au FileType lisp nnoremap <buffer> <silent> <localleader>e :call SendToplevelLispForm()<cr>
+
+    " Send the entire buffer to the REPL ([r]eload)
+    au FileType lisp nnoremap <buffer> <silent> <localleader>r :call SendLispBuffer()<cr>
 
     " Clear the REPL
     au FileType lisp nnoremap <buffer> <silent> <localleader>c :call SendToTmuxRaw("")<cr>
@@ -876,7 +910,7 @@
     " ))
 
     " Indent top-level form.
-    au FileType lisp nmap <buffer> <localleader>= mz99[(v%='z
+    au FileType lisp nmap <buffer> gi mz99[(v%='z
     " ])
 augroup END
 
@@ -1334,6 +1368,8 @@
     au syntax timl RainbowParenthesesLoadSquare
     au syntax timl RainbowParenthesesLoadBraces
 
+    au FileType timl call PareditInitBuffer()
+
     " Friendlier Paredit mappings.
     au FileType timl noremap <buffer> () :<c-u>call PareditWrap("(", ")")<cr>
     au FileType timl noremap <buffer> )( :<c-u>call PareditSplice()<cr>
@@ -1345,10 +1381,8 @@
     au FileType timl noremap <buffer> ] :<c-u>call PareditSmartJumpClosing(0)<cr>
     " )))
 
-    au FileType timl call PareditInitBuffer()
-
     " Indent top-level form.
-    au FileType timl nmap <buffer> <localleader>= mz99[(v%='z
+    au FileType timl nmap <buffer> gi mz99[(v%='z
     " ])
 augroup END
 
@@ -1739,6 +1773,11 @@
 let g:tslime_vars_mapping = '<localleader>t'
 
 " }}}
+" tslime2 {{{
+
+let g:tslime2_ensure_trailing_newlines = 1
+
+" }}}
 " YankRing {{{
 
 function! YRRunAfterMaps()