~wrm/dotfiles

123b158daa220a00fac6f19c375ef16b91a168cc — +wrm 3 months ago f0dc804 master
misc: Apply numerous minor changes

Mostly fixes typos, stylistic elements that were bothering me, adds some
small aliases.
4 files changed, 18 insertions(+), 15 deletions(-)

M .config/nvim/init.vim
M .config/shell/aliasrc
M .config/shell/git-aliases.sh
M .config/shell/profile
M .config/nvim/init.vim => .config/nvim/init.vim +13 -12
@@ 11,18 11,19 @@ filetype off
" vim alternative.

set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin()
call vundle#begin('~/.config/nvim/')

" Vundle - Often, managing vim stuff in vimrc is useful and vundle specifically means
" you don't have to think whatsover about dirs or git or helpdocs.
" Vundle - Often. Managing vim stuff in vimrc is useful and vundle
" specifically means you don't have to think whatsover about dirs or git or
" helpdocs.
Plugin 'VundleVim/Vundle.vim'

" Bufferline - Constantly. 60 line script to list open buffers that stays out
" of the way. :buffers obvs works but I like being able to just look.
Plugin 'bling/vim-bufferline'

" Fugitive - Constantly. As tpope says, as much a vim plugin for git than vice
" versa.
" Fugitive - Constantly. As tpope says, as much a vim plugin for git as vice
" versa. I still regularly ^Zg... but it's a supplement not a replacement.
Plugin 'tpope/vim-fugitive'

" Ctrl-P - Rarely, vim wildmode+wildmenu expansion of */** is pretty great.


@@ 85,11 86,6 @@ set path+=**
set wildmode=longest,list,full
set wildmenu

" Highlight others
set t_Co=256 " Not needed anymore but doesn't hurt.
set colorcolumn=80
highlight ColorColumn ctermbg=233

" Steal code faster
set clipboard+=unnamedplus



@@ 97,7 93,12 @@ set clipboard+=unnamedplus
autocmd filetype * setlocal formatoptions-=c formatoptions-=r formatoptions-=o

" Auto-wrap common non-code files
autocmd BufRead,BufNewFile *.txt,*.md,*.tex setlocal tw=80
autocmd BufRead,BufNewFile README*,*.txt,*.md,*.tex setlocal tw=80

" Highlight others
set t_Co=256 " Not needed anymore but doesn't hurt.
set colorcolumn=80
highlight ColorColumn ctermbg=233

" Treat CNatural files as having C++ syntax
autocmd BufNewFile,BufRead *.cn setfiletype cn


@@ 107,7 108,7 @@ autocmd FileType cn setlocal syntax=cpp
autocmd BufNewFile,BufRead *.html.sh setlocal syntax=htmlsh

" Some general tab rules.
" Usually defined by a local vimrc file for a project's style rules.
" Usually defined by a local vimrc file to suite a project's style rules.
set noexpandtab
set tabstop=8
set shiftwidth=8

M .config/shell/aliasrc => .config/shell/aliasrc +2 -0
@@ 3,6 3,8 @@
alias vim="nvim"
alias vimdiff="nvim -d"
alias ls="ls -h --color=auto"
alias l="ls -l"
alias la="ls -la"
#alias locate="plocate"

remember () {

M .config/shell/git-aliases.sh => .config/shell/git-aliases.sh +2 -3
@@ 25,9 25,8 @@ rl reflog"
# better way to express this loop.
for _ in seq $(($# / 2)); do
	short=$1
	shift
	long=$1
	shift
	long=$2
	shift 2
	echo "alias $short='$long'" | tr -d '\\'
	echo "$subcommands" | sed s/" "/"='$long "/ | while read rhs; do
		[ -n "$rhs" ] && printf "alias %s%s'\n" "$short" "$rhs"

M .config/shell/profile => .config/shell/profile +1 -0
@@ 2,6 2,7 @@

export EDITOR="nvim"
export BROWSER="links"
export GBROWSER="qutebrowser"

# XDG Dirs
export XDG_CONFIG_HOME="$HOME/.config"