Commits

Ed Brannin committed 07908cb Merge

Merge

Comments (0)

Files changed (1)

 let g:user_zen_expandabbr_key = '<c-o>'
 
 " Load Pathogen
+" TODO: Update Pathogen; look at pathogen#infect
 if $DOTFILES != ""
   set runtimepath+=~"$DOTFILES/vim/bundle/vim-pathogen"
   set runtimepath^=~"$DOTFILES/vim/bundle/vim-pathogen"
   inoremap <F1> <ESC>:set invfullscreen<CR>a
   nnoremap <F1> :set invfullscreen<CR>
   vnoremap <F1> :set invfullscreen<CR>
+  set fuoptions=maxvert,maxhorz
 else
   inoremap <F1> <ESC>
   nnoremap <F1> <ESC>
 nnoremap <leader>C :!pbpaste \| wc<cr>
 
 "redact numbers with more than 4 digits, and certain bank reference numbers
+nnoremap <leader>r :Redact
+verbose command! -range=% Redact %s/\v<\d{5,}/redacted/e | %s/\n\?<REFERENCE reda[^>]*>//e
 
-nnoremap <leader>r :%s/\v\d{5,}/redacted/e<CR>
-                  \:%s/<REFERENCE reda[^>]*>//e<cr>
 " Convert TSV to CSV
-nnoremap <leader>c :%!python -c 'import csv, sys, fileinput; writer = csv.writer(sys.stdout); [writer.writerow([field.strip() for field in line.split("\t")]) for line in fileinput.input() if line.strip() \!= ""]'<cr>
+nnoremap <leader>c :CSV
+verbose command! -range=% CSV <line1>,<line2>!python -c 'import csv, sys, fileinput; writer = csv.writer(sys.stdout); [writer.writerow([field.strip() for field in line.split("\t")]) for line in fileinput.input() if line.strip() \!= ""]'
+
 nnoremap <leader>J :g/\v:$/normal J<cr>:%s/\v\tHelp$//e<cr>:FixWhitespace<cr>:%s/.*Sort By: //<cr>
 
 " Join together the multi-line "intersted earned" items from bank statements onto one line.
 
 " Open the file under the curor, even if it's new
 nnoremap gF :e <cfile><CR>
+
+verbose command! -range  Figlet <line1>,<line2>!figlet
+verbose command! -range  Cowsay <line1>,<line2>!cowsay
+verbose command! -range  Figsay <line1>,<line2>!figlet | cowsay -n