summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-12 21:00:46 -0800
committerzlg <zlg@zlg.space>2018-11-12 21:00:46 -0800
commit7e043911f5507e4492d5db83879977aa0f584b4a (patch)
treed0f6ea523a6eb2eaf0dc2341703c7a91cd443789
parentupdate e-mail address in colors file (diff)
downloadvimrc-7e043911f5507e4492d5db83879977aa0f584b4a.tar.gz
vimrc-7e043911f5507e4492d5db83879977aa0f584b4a.tar.bz2
vimrc-7e043911f5507e4492d5db83879977aa0f584b4a.tar.xz
vimrc-7e043911f5507e4492d5db83879977aa0f584b4a.zip
switch to vim-plug, solarized colorscheme
l---------colors/solarized.vim1
-rwxr-xr-xupdate-plugins28
-rw-r--r--vimrc30
-rw-r--r--vopher.list8
4 files changed, 28 insertions, 39 deletions
diff --git a/colors/solarized.vim b/colors/solarized.vim
new file mode 120000
index 0000000..f806ade
--- /dev/null
+++ b/colors/solarized.vim
@@ -0,0 +1 @@
+../bundle/solarized-color/colors/solarized.vim \ No newline at end of file
diff --git a/update-plugins b/update-plugins
deleted file mode 100755
index 856f85a..0000000
--- a/update-plugins
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# This is a simple front-end to vopher that will update all your plugins,
-# clean up plugins that aren't in PLUGIN_LIST, and prune all .zip files.
-# What more could you ask for from a wrapper?
-
-die() {
- echo "$1" && exit
-}
-
-PLUGIN_PATH="$HOME/projects/vimrc/bundle"
-PLUGIN_LIST="$HOME/projects/vimrc/vopher.list"
-_has_sparkup=$(grep -c sparkup ${PLUGIN_LIST})
-_tmp=$(pwd)
-if [ "$_has_sparkup" -a -d ./bundle/sparkup ]; then
- cd bundle/sparkup
- unlink doc
- unlink ftplugin
- cd "$_tmp"
-fi
-_cmd="vopher -f "$PLUGIN_LIST" -dir "$PLUGIN_PATH" -ui=simple"
-$_cmd -force update 2>vopher.log 1>/dev/null || die "Could not update! Consult vopher.log for details."
-$_cmd -force -all prune 2>>vopher.log 1>/dev/null || die "Could not prune! Consult vopher.log for details."
-if [ $_has_sparkup ]; then
- cd "${PLUGIN_PATH}/sparkup"
- make vim-pathogen --quiet
- cd "$_tmp"
-fi
-echo "Plugins successfully updated."
diff --git a/vimrc b/vimrc
index 34b95e8..959b9e1 100644
--- a/vimrc
+++ b/vimrc
@@ -9,15 +9,28 @@ set spelllang=en_us
set switchbuf=useopen
" Colors and Syntax {{{1
+set t_Co=16
set background=dark
-colorscheme zlg
+colorscheme solarized
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
" Plugin-Specific {{{1
-call pathogen#infect('bundle/{}')
-Helptags
+" Use vim-plug
+call plug#begin('~/.vim/bundle')
+Plug 'tpope/vim-commentary', { 'as': 'commentary' }
+Plug 'tpope/vim-fugitive', { 'as': 'fugitive' }
+Plug 'jamessan/vim-gnupg', { 'as': 'gnupg' }
+Plug 'junegunn/goyo.vim', { 'as': 'goyo' }
+Plug 'ledger/vim-ledger', { 'as': 'ledger' }
+Plug 'rstacruz/sparkup'
+Plug 'godlygeek/tabular'
+Plug 'PotatoesMaster/i3-vim-syntax', { 'as': 'i3-syntax' }
+Plug 'justinj/vim-pico8-syntax', { 'as': 'pico8-syntax' }
+Plug 'evanrelf/vim-pico8-color', { 'as': 'pico8-color' }
+Plug 'altercation/vim-colors-solarized', { 'as': 'solarized-color' }
+call plug#end()
" Formatting {{{1
set formatprg=par-format\ w80
@@ -94,6 +107,17 @@ if has("autocmd")
" up on linebreaks if it's not DOS, iso8859-1 text. The limit is set to
" allow for a character or two that might be wider than an M or W.
autocmd FileType sctxt setlocal enc=latin1 ff=dos tw=30 cc=31 fo=tcqwn nolist et ts=4 sts=4 sw=4
+ " vim -b : edit binary using xxd-format!
+ augroup Binary
+ au!
+ au BufReadPre *.pal let &bin=1
+ au BufReadPost *.pal if &bin | %!xxd
+ au BufReadPost *.pal set ft=xxd | endif
+ au BufWritePre *.pal if &bin | %!xxd -r
+ au BufWritePre *.pal endif
+ au BufWritePost *.pal if &bin | %!xxd
+ au BufWritePost *.pal set nomod | endif
+ augroup END
endif
" Key Bindings {{{1
diff --git a/vopher.list b/vopher.list
deleted file mode 100644
index 2085a79..0000000
--- a/vopher.list
+++ /dev/null
@@ -1,8 +0,0 @@
-commentary http://github.com/tpope/vim-commentary
-fugitive http://github.com/tpope/vim-fugitive
-gnupg http://github.com/jamessan/vim-gnupg
-goyo http://github.com/junegunn/goyo.vim
-ledger http://github.com/ledger/vim-ledger
-pathogen http://github.com/tpope/vim-pathogen
-sparkup http://github.com/rstacruz/sparkup
-tabular http://github.com/godlygeek/tabular
an title='2016-10-21 03:17:35 -0700'>2016-10-21Add quotes to correct behavior for arglistZe Libertine Gamer1-1/+1 2016-10-14updater.sh: add recursion, error handlingZe Libertine Gamer1-43/+101 2016-10-14Correct pipe-handling behaviorZe Libertine Gamer1-1/+9 2016-10-12Clarify a method to move between platformsZe Libertine Gamer1-2/+5 Also correct a typo. 'logsubject'>cli: Add pretty printing to 'list' commandzlg3-17/+107 Also add the "--width" option to specify the maximum width of the table. 2018-09-08setup.py: Bump to alpha4 for PyPIzlg1-1/+1 2018-09-08cli: add '--raw' option to list commandzlg2-9/+45 Add '--raw' option to the list command, in addition to proper note expansion. Newline characters in notes are escaped to be friendly to scripting. This option may be shortened to '-r' at the user's convenience. In raw output mode, the information is formatted in plain pipe-delimited strings, one line per row: title|system|ownership|progress|notes ownership and progress are printed in their numeric form, consistent with the OWNERSHIP and PROGRESS dictionaries in the vgstash package. An empty notes field will result in a line ending with a pipe and no whitespace following it. 2018-09-08Add remaining filters to vgstash packagezlg1-2/+11 2018-09-04Update LICENSE to match setup.pyzlg1-80/+67 Whoops. 2018-09-03Branch off from master with pytest, tox, clickzlg16-778/+779 This commit is huge, but contains everything needed for a "proper" build system built on pytest + tox and a CLI built with click. For now, this branch will contain all new vgstash development activity until it reaches feature parity with master. The CLI is installed to pip's PATH. Only the 'init', 'add', and 'list' commands work, with only two filters. This is pre-alpha software, and is therefore not stable yet. 2018-03-18Flesh out filter types and ownership statuszlg3-82/+144 It's time for a refactor to a module; the functionality and interface are clashing. 2018-03-18README.mdown: break line correctlyzlg1-1/+1 2018-03-18add 'playlog' list filterzlg2-2/+9 This filter is used to get an idea of which games you're currently playing through, so you can prioritize games to play when you're bored and detect it when you've beaten a game but haven't marked it as such. 2018-03-13Update helpers a bitzlg1-2/+9 At present, user modification is needed to make these seamless. vgup() may need to be axed in favor of telling the user to make an alias. 2018-03-13Make VGSTASH_DB_LOCATION point to a filezlg2-21/+20 It used to point to a directory, which would then look for .vgstash.db. This behavior was kind of backwards and I don't remember why I did it that way. This change gives users more control over where they put their DB. Be sure to update your environment variable if you have it set! 2016-11-18Remove settings from helpers.shZe Libertine Gamer1-5/+0 Sourcing them in .bash_profile screws up login if they're set. 2016-11-15Correct phrasing in README.Ze Libertine Gamer1-4/+4 2016-11-13DerpZe Libertine Gamer1-0/+1 2016-11-03Improve error handling in shell scriptsZe Libertine Gamer4-3/+23 2016-10-24Correct run_again, add recursionZe Libertine Gamer1-0/+4 Loops and functions -- oh my, what a useful combination. :) 2016-10-21Add quotes to correct behavior for arglistZe Libertine Gamer1-1/+1 2016-10-14updater.sh: add recursion, error handlingZe Libertine Gamer1-43/+101 2016-10-14Correct pipe-handling behaviorZe Libertine Gamer1-1/+9 2016-10-12Clarify a method to move between platformsZe Libertine Gamer1-2/+5 Also correct a typo.