Commits

Josh VanderLinden committed 03933ee

Cleaning up some old junk

  • Participants
  • Parent commits 0da6599

Comments (0)

Files changed (1)

 
 syntax on
 
-" Bindings for FindFile plugin
-nnoremap <Leader><Leader>f :FC .<CR>
-nnoremap <C-f> :FF<CR>
+" Toggles list and line numbers to make it easier to copy buffer contents
+nnoremap <Tab> :set nolist!<CR>:set norelativenumber!<CR>
 
-" Toggles list and line numbers to make it easier to copy buffer contents
-nnoremap <Tab> :set nolist!<CR>:set nonumber!<CR>
+" Toggle things that make it more difficult to copy/paste code samples
+map <F10> :set invrelativenumber<CR>:set invlist<CR>
 
 " Find all occurrences of the word under the cursor and replace it with the
 " specified value
 vmap <Leader>i :!python -<CR>
 nnoremap gp `[v`]
 
-" Format IPMI trap varbinds
-nnoremap <Leader>ipmi IGUID: <Esc>16f s<CR>Sequence #: <Esc>2f s<CR>Timestamp: <Esc>4f s<CR>UTC Offset: <Esc>2f s<CR>Trap Source Type: <Esc>f s<CR>Event Source Type: <Esc>;s<CR>Event Severity: <Esc>;s<CR>Sensor Device: <Esc>;s<CR>Sensor #: <Esc>;s<CR>Entity: <Esc>;s<CR>Entity Instance: <Esc>;s<CR>Event Data: <Esc>8f s<CR>Language Code: <Esc>f s<CR>Manufacturer ID: <Esc>4f s<CR>System ID: <Esc>2f s<CR>OEM Custom Fields: <Esc>
-
-" Toggle things that make it more difficult to copy/paste code samples
-map <F10> :set invnumber<CR>:set invlist<CR>
-
 " For easier Django blocks
 nnoremap <Leader>b i{% block  %}{% endblock %}<Esc>3F i
 nnoremap <Leader>B i{% block  %}<CR>{% endblock %}<Esc><Up>$2hi
 endfunction
 
 nnoremap <F2> :ReStructuredText<CR>
-
-command! -range FetchCURL call s:FetchCURL(<line1>,<line2>)
-function! s:FetchCURL(start,end)
-    normal! "zy"zPgv
-    "exec "'<,'>!curl -sk 'http://config:config@192.168.38.179/nuova' -H 'Content-Type: application/xml; charset=UTF-8' -d @- | tidy -xml -iq -wrap 2048 -config ~/.tidy.conf"
-    exec "'<,'>!curl -sk 'https://vimuser:em7admin@10.100.100.46/sdk/vimService.wsdl' -H 'Content-Type: application/xml; charset=UTF-8' -d @- | tidy -xml -iq -wrap 2048 -config ~/.tidy.conf"
-    exec "normal v_v"
-endfunction
-vnoremap <F3> :FetchCURL<CR>
-
-command! RefreshFirefox call s:RefreshFirefox()
-function! s:RefreshFirefox()
-    let mywid = system("xdotool getactivewindow")
-    let derp = system("xdotool search --name 'Vimperator' windowactivate key Escape key Escape type R")
-    let derp = system("xdotool windowactivate ".mywid)
-endfunction