Commits

Anonymous committed 68a5af9

Added vimwiki settings, Teminus font

  • Participants
  • Parent commits b1f4cef

Comments (0)

Files changed (2)

 'snippets'	snipMate.txt	/*'snippets'*
 .snippet	snipMate.txt	/*.snippet*
 .snippets	snipMate.txt	/*.snippets*
+:FufBookmarkDir	fuf.txt	/*:FufBookmarkDir*
+:FufBookmarkDirAdd	fuf.txt	/*:FufBookmarkDirAdd*
+:FufBookmarkFile	fuf.txt	/*:FufBookmarkFile*
+:FufBookmarkFileAdd	fuf.txt	/*:FufBookmarkFileAdd*
+:FufBookmarkFileAddAsSelectedText	fuf.txt	/*:FufBookmarkFileAddAsSelectedText*
+:FufBuffer	fuf.txt	/*:FufBuffer*
+:FufBufferTag	fuf.txt	/*:FufBufferTag*
+:FufBufferTagAll	fuf.txt	/*:FufBufferTagAll*
+:FufBufferTagAllWithCursorWord	fuf.txt	/*:FufBufferTagAllWithCursorWord*
+:FufBufferTagAllWithSelectedText	fuf.txt	/*:FufBufferTagAllWithSelectedText*
+:FufBufferTagWithCursorWord	fuf.txt	/*:FufBufferTagWithCursorWord*
+:FufBufferTagWithSelectedText	fuf.txt	/*:FufBufferTagWithSelectedText*
+:FufChangeList	fuf.txt	/*:FufChangeList*
+:FufCoverageFile	fuf.txt	/*:FufCoverageFile*
+:FufCoverageFileChange	fuf.txt	/*:FufCoverageFileChange*
+:FufCoverageFileRegister	fuf.txt	/*:FufCoverageFileRegister*
+:FufDir	fuf.txt	/*:FufDir*
+:FufDirWithCurrentBufferDir	fuf.txt	/*:FufDirWithCurrentBufferDir*
+:FufDirWithFullCwd	fuf.txt	/*:FufDirWithFullCwd*
+:FufEditDataFile	fuf.txt	/*:FufEditDataFile*
+:FufFile	fuf.txt	/*:FufFile*
+:FufFileWithCurrentBufferDir	fuf.txt	/*:FufFileWithCurrentBufferDir*
+:FufFileWithFullCwd	fuf.txt	/*:FufFileWithFullCwd*
+:FufHelp	fuf.txt	/*:FufHelp*
+:FufJumpList	fuf.txt	/*:FufJumpList*
+:FufLine	fuf.txt	/*:FufLine*
+:FufMruCmd	fuf.txt	/*:FufMruCmd*
+:FufMruFile	fuf.txt	/*:FufMruFile*
+:FufMruFileInCwd	fuf.txt	/*:FufMruFileInCwd*
+:FufQuickfix	fuf.txt	/*:FufQuickfix*
+:FufRenewCache	fuf.txt	/*:FufRenewCache*
+:FufTag	fuf.txt	/*:FufTag*
+:FufTagWithCursorWord	fuf.txt	/*:FufTagWithCursorWord*
+:FufTaggedFile	fuf.txt	/*:FufTaggedFile*
 :MkVimball	pi_vimball.txt	/*:MkVimball*
 :NERDTree	NERD_tree.txt	/*:NERDTree*
 :NERDTreeClose	NERD_tree.txt	/*:NERDTreeClose*
 VimExplorer-treehotkey	vimExplorer.txt	/*VimExplorer-treehotkey*
 Vimball-copyright	pi_vimball.txt	/*Vimball-copyright*
 VimwikiWeblinkHandler	vimwiki.txt	/*VimwikiWeblinkHandler*
+abc	fuf.txt	/*abc*
 bufexplorer	bufexplorer.txt	/*bufexplorer*
 bufexplorer-changelog	bufexplorer.txt	/*bufexplorer-changelog*
 bufexplorer-credits	bufexplorer.txt	/*bufexplorer-credits*
 conque-term-writeln	conque_term.txt	/*conque-term-writeln*
 cs	surround.txt	/*cs*
 ds	surround.txt	/*ds*
+fuf	fuf.txt	/*fuf*
+fuf#setOneTimeVariables()	fuf.txt	/*fuf#setOneTimeVariables()*
+fuf-abbreviation	fuf.txt	/*fuf-abbreviation*
+fuf-about	fuf.txt	/*fuf-about*
+fuf-author	fuf.txt	/*fuf-author*
+fuf-bookmarkdir-mode	fuf.txt	/*fuf-bookmarkdir-mode*
+fuf-bookmarkfile-mode	fuf.txt	/*fuf-bookmarkfile-mode*
+fuf-buffer-mode	fuf.txt	/*fuf-buffer-mode*
+fuf-buffertag-mode	fuf.txt	/*fuf-buffertag-mode*
+fuf-cache	fuf.txt	/*fuf-cache*
+fuf-callbackfile-mode	fuf.txt	/*fuf-callbackfile-mode*
+fuf-callbackitem-mode	fuf.txt	/*fuf-callbackitem-mode*
+fuf-changelist-mode	fuf.txt	/*fuf-changelist-mode*
+fuf-changelog	fuf.txt	/*fuf-changelog*
+fuf-commands	fuf.txt	/*fuf-commands*
+fuf-contact	fuf.txt	/*fuf-contact*
+fuf-coveragefile-mode	fuf.txt	/*fuf-coveragefile-mode*
+fuf-data-file	fuf.txt	/*fuf-data-file*
+fuf-detailed-topics	fuf.txt	/*fuf-detailed-topics*
+fuf-dir-mode	fuf.txt	/*fuf-dir-mode*
+fuf-dot-sequence	fuf.txt	/*fuf-dot-sequence*
+fuf-file-mode	fuf.txt	/*fuf-file-mode*
+fuf-givencmd-mode	fuf.txt	/*fuf-givencmd-mode*
+fuf-givendir-mode	fuf.txt	/*fuf-givendir-mode*
+fuf-givenfile-mode	fuf.txt	/*fuf-givenfile-mode*
+fuf-help-mode	fuf.txt	/*fuf-help-mode*
+fuf-hiding-menu	fuf.txt	/*fuf-hiding-menu*
+fuf-how-to-add-mode	fuf.txt	/*fuf-how-to-add-mode*
+fuf-installation	fuf.txt	/*fuf-installation*
+fuf-introduction	fuf.txt	/*fuf-introduction*
+fuf-jumplist-mode	fuf.txt	/*fuf-jumplist-mode*
+fuf-line-mode	fuf.txt	/*fuf-line-mode*
+fuf-migemo	fuf.txt	/*fuf-migemo*
+fuf-modes	fuf.txt	/*fuf-modes*
+fuf-mrucmd-mode	fuf.txt	/*fuf-mrucmd-mode*
+fuf-mrufile-mode	fuf.txt	/*fuf-mrufile-mode*
+fuf-multiple-search	fuf.txt	/*fuf-multiple-search*
+fuf-options	fuf.txt	/*fuf-options*
+fuf-options-for-all-modes	fuf.txt	/*fuf-options-for-all-modes*
+fuf-options-for-bookmarkdir-mode	fuf.txt	/*fuf-options-for-bookmarkdir-mode*
+fuf-options-for-bookmarkfile-mode	fuf.txt	/*fuf-options-for-bookmarkfile-mode*
+fuf-options-for-buffer-mode	fuf.txt	/*fuf-options-for-buffer-mode*
+fuf-options-for-buffertag-mode	fuf.txt	/*fuf-options-for-buffertag-mode*
+fuf-options-for-changelist-mode	fuf.txt	/*fuf-options-for-changelist-mode*
+fuf-options-for-coveragefile-mode	fuf.txt	/*fuf-options-for-coveragefile-mode*
+fuf-options-for-dir-mode	fuf.txt	/*fuf-options-for-dir-mode*
+fuf-options-for-file-mode	fuf.txt	/*fuf-options-for-file-mode*
+fuf-options-for-help-mode	fuf.txt	/*fuf-options-for-help-mode*
+fuf-options-for-jumplist-mode	fuf.txt	/*fuf-options-for-jumplist-mode*
+fuf-options-for-line-mode	fuf.txt	/*fuf-options-for-line-mode*
+fuf-options-for-mrucmd-mode	fuf.txt	/*fuf-options-for-mrucmd-mode*
+fuf-options-for-mrufile-mode	fuf.txt	/*fuf-options-for-mrufile-mode*
+fuf-options-for-quickfix-mode	fuf.txt	/*fuf-options-for-quickfix-mode*
+fuf-options-for-tag-mode	fuf.txt	/*fuf-options-for-tag-mode*
+fuf-options-for-taggedfile-mode	fuf.txt	/*fuf-options-for-taggedfile-mode*
+fuf-quickfix-mode	fuf.txt	/*fuf-quickfix-mode*
+fuf-reusing-window	fuf.txt	/*fuf-reusing-window*
+fuf-search-patterns	fuf.txt	/*fuf-search-patterns*
+fuf-setting-one-time-option	fuf.txt	/*fuf-setting-one-time-option*
+fuf-sorting-of-completion-items	fuf.txt	/*fuf-sorting-of-completion-items*
+fuf-tag-mode	fuf.txt	/*fuf-tag-mode*
+fuf-taggedfile-mode	fuf.txt	/*fuf-taggedfile-mode*
+fuf-thanks	fuf.txt	/*fuf-thanks*
+fuf-usage	fuf.txt	/*fuf-usage*
+fuf-vimrc-example	fuf.txt	/*fuf-vimrc-example*
+fuf.txt	fuf.txt	/*fuf.txt*
+fuzzyfinder	fuf.txt	/*fuzzyfinder*
 g:SuperTabCompletionContexts	supertab.txt	/*g:SuperTabCompletionContexts*
 g:SuperTabContextDefaultCompletionType	supertab.txt	/*g:SuperTabContextDefaultCompletionType*
 g:SuperTabCrMapping	supertab.txt	/*g:SuperTabCrMapping*
 g:bufExplorerSplitBelow	bufexplorer.txt	/*g:bufExplorerSplitBelow*
 g:bufExplorerSplitOutPathName	bufexplorer.txt	/*g:bufExplorerSplitOutPathName*
 g:bufExplorerSplitRight	bufexplorer.txt	/*g:bufExplorerSplitRight*
+g:fuf_abbrevMap	fuf.txt	/*g:fuf_abbrevMap*
+g:fuf_autoPreview	fuf.txt	/*g:fuf_autoPreview*
+g:fuf_bookmarkdir_keyDelete	fuf.txt	/*g:fuf_bookmarkdir_keyDelete*
+g:fuf_bookmarkdir_prompt	fuf.txt	/*g:fuf_bookmarkdir_prompt*
+g:fuf_bookmarkdir_switchOrder	fuf.txt	/*g:fuf_bookmarkdir_switchOrder*
+g:fuf_bookmarkfile_keyDelete	fuf.txt	/*g:fuf_bookmarkfile_keyDelete*
+g:fuf_bookmarkfile_prompt	fuf.txt	/*g:fuf_bookmarkfile_prompt*
+g:fuf_bookmarkfile_searchRange	fuf.txt	/*g:fuf_bookmarkfile_searchRange*
+g:fuf_bookmarkfile_switchOrder	fuf.txt	/*g:fuf_bookmarkfile_switchOrder*
+g:fuf_buffer_keyDelete	fuf.txt	/*g:fuf_buffer_keyDelete*
+g:fuf_buffer_mruOrder	fuf.txt	/*g:fuf_buffer_mruOrder*
+g:fuf_buffer_prompt	fuf.txt	/*g:fuf_buffer_prompt*
+g:fuf_buffer_switchOrder	fuf.txt	/*g:fuf_buffer_switchOrder*
+g:fuf_buffertag_ctagsPath	fuf.txt	/*g:fuf_buffertag_ctagsPath*
+g:fuf_buffertag_prompt	fuf.txt	/*g:fuf_buffertag_prompt*
+g:fuf_buffertag_switchOrder	fuf.txt	/*g:fuf_buffertag_switchOrder*
+g:fuf_changelist_prompt	fuf.txt	/*g:fuf_changelist_prompt*
+g:fuf_changelist_switchOrder	fuf.txt	/*g:fuf_changelist_switchOrder*
+g:fuf_coveragefile_exclude	fuf.txt	/*g:fuf_coveragefile_exclude*
+g:fuf_coveragefile_globPatterns	fuf.txt	/*g:fuf_coveragefile_globPatterns*
+g:fuf_coveragefile_prompt	fuf.txt	/*g:fuf_coveragefile_prompt*
+g:fuf_coveragefile_switchOrder	fuf.txt	/*g:fuf_coveragefile_switchOrder*
+g:fuf_dataDir	fuf.txt	/*g:fuf_dataDir*
+g:fuf_dir_exclude	fuf.txt	/*g:fuf_dir_exclude*
+g:fuf_dir_prompt	fuf.txt	/*g:fuf_dir_prompt*
+g:fuf_dir_switchOrder	fuf.txt	/*g:fuf_dir_switchOrder*
+g:fuf_enumeratingLimit	fuf.txt	/*g:fuf_enumeratingLimit*
+g:fuf_file_exclude	fuf.txt	/*g:fuf_file_exclude*
+g:fuf_file_prompt	fuf.txt	/*g:fuf_file_prompt*
+g:fuf_file_switchOrder	fuf.txt	/*g:fuf_file_switchOrder*
+g:fuf_fuzzyRefining	fuf.txt	/*g:fuf_fuzzyRefining*
+g:fuf_help_prompt	fuf.txt	/*g:fuf_help_prompt*
+g:fuf_help_switchOrder	fuf.txt	/*g:fuf_help_switchOrder*
+g:fuf_ignoreCase	fuf.txt	/*g:fuf_ignoreCase*
+g:fuf_jumplist_prompt	fuf.txt	/*g:fuf_jumplist_prompt*
+g:fuf_jumplist_switchOrder	fuf.txt	/*g:fuf_jumplist_switchOrder*
+g:fuf_keyNextMode	fuf.txt	/*g:fuf_keyNextMode*
+g:fuf_keyNextPattern	fuf.txt	/*g:fuf_keyNextPattern*
+g:fuf_keyOpen	fuf.txt	/*g:fuf_keyOpen*
+g:fuf_keyOpenSplit	fuf.txt	/*g:fuf_keyOpenSplit*
+g:fuf_keyOpenTabpage	fuf.txt	/*g:fuf_keyOpenTabpage*
+g:fuf_keyOpenVsplit	fuf.txt	/*g:fuf_keyOpenVsplit*
+g:fuf_keyPrevMode	fuf.txt	/*g:fuf_keyPrevMode*
+g:fuf_keyPrevPattern	fuf.txt	/*g:fuf_keyPrevPattern*
+g:fuf_keyPreview	fuf.txt	/*g:fuf_keyPreview*
+g:fuf_keySwitchMatching	fuf.txt	/*g:fuf_keySwitchMatching*
+g:fuf_learningLimit	fuf.txt	/*g:fuf_learningLimit*
+g:fuf_line_prompt	fuf.txt	/*g:fuf_line_prompt*
+g:fuf_line_switchOrder	fuf.txt	/*g:fuf_line_switchOrder*
+g:fuf_maxMenuWidth	fuf.txt	/*g:fuf_maxMenuWidth*
+g:fuf_modesDisable	fuf.txt	/*g:fuf_modesDisable*
+g:fuf_mrucmd_exclude	fuf.txt	/*g:fuf_mrucmd_exclude*
+g:fuf_mrucmd_maxItem	fuf.txt	/*g:fuf_mrucmd_maxItem*
+g:fuf_mrucmd_prompt	fuf.txt	/*g:fuf_mrucmd_prompt*
+g:fuf_mrucmd_switchOrder	fuf.txt	/*g:fuf_mrucmd_switchOrder*
+g:fuf_mrufile_exclude	fuf.txt	/*g:fuf_mrufile_exclude*
+g:fuf_mrufile_keyExpand	fuf.txt	/*g:fuf_mrufile_keyExpand*
+g:fuf_mrufile_maxItem	fuf.txt	/*g:fuf_mrufile_maxItem*
+g:fuf_mrufile_maxItemDir	fuf.txt	/*g:fuf_mrufile_maxItemDir*
+g:fuf_mrufile_prompt	fuf.txt	/*g:fuf_mrufile_prompt*
+g:fuf_mrufile_switchOrder	fuf.txt	/*g:fuf_mrufile_switchOrder*
+g:fuf_patternSeparator	fuf.txt	/*g:fuf_patternSeparator*
+g:fuf_previewHeight	fuf.txt	/*g:fuf_previewHeight*
+g:fuf_promptHighlight	fuf.txt	/*g:fuf_promptHighlight*
+g:fuf_quickfix_prompt	fuf.txt	/*g:fuf_quickfix_prompt*
+g:fuf_quickfix_switchOrder	fuf.txt	/*g:fuf_quickfix_switchOrder*
+g:fuf_reuseWindow	fuf.txt	/*g:fuf_reuseWindow*
+g:fuf_splitPathMatching	fuf.txt	/*g:fuf_splitPathMatching*
+g:fuf_tag_prompt	fuf.txt	/*g:fuf_tag_prompt*
+g:fuf_tag_switchOrder	fuf.txt	/*g:fuf_tag_switchOrder*
+g:fuf_taggedfile_prompt	fuf.txt	/*g:fuf_taggedfile_prompt*
+g:fuf_taggedfile_switchOrder	fuf.txt	/*g:fuf_taggedfile_switchOrder*
+g:fuf_timeFormat	fuf.txt	/*g:fuf_timeFormat*
+g:fuf_useMigemo	fuf.txt	/*g:fuf_useMigemo*
 g:snippets_dir	snipMate.txt	/*g:snippets_dir*
 g:snips_author	snipMate.txt	/*g:snips_author*
 g:vimball_home	pi_vimball.txt	/*g:vimball_home*
 set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
 set number
 set ruler
-set fuopt+=maxhorz
 set encoding=utf-8
 set scrolloff=3
 set autoindent
 " End autocomplete
 
 " View opts
-colorscheme manuscript
-set gfn=Menlo:h14
-" Remove toolbar in MacVim
 if has("gui_running")
-  set guioptions-=T
+    colo manuscript
+    set guifont=TerminusMedium:h16
+    set guioptions-=T
+    set fuopt+=maxhorz
+else
+  set t_Co=256
+  colo inkpot
 endif
 " end View opts
 
 
 " Pascal specific settings
 au FileType pascal set tabstop=2 shiftwidth=2 softtabstop=2 expandtab
+
+nnoremap <C-H> :Hexmode<CR>
+inoremap <C-H> <Esc>:Hexmode<CR>
+vnoremap <C-H> :<C-U>Hexmode<CR>
+
+command -bar Hexmode call ToggleHex()
+
+function ToggleHex()
+  let l:modified=&mod
+  let l:oldreadonly=&readonly
+  let &readonly=0
+  let l:oldmodifiable=&modifiable
+  let &modifiable=1
+  if !exists("b:editHex") || !b:editHex
+    let b:oldft=&ft
+    let b:oldbin=&bin
+    setlocal binary 
+    let &ft="xxd"
+    let b:editHex=1
+    %!xxd
+  else
+    let &ft=b:oldft
+    if !b:oldbin
+      setlocal nobinary
+    endif
+    let b:editHex=0
+    %!xxd -r
+  endif
+  let &mod=l:modified
+  let &readonly=l:oldreadonly
+  let &modifiable=l:oldmodifiable
+endfunction
+
+" autocmds to automatically enter hex mode and handle file writes properly
+if has("autocmd")
+  " vim -b : edit binary using xxd-format!
+  augroup Binary
+    au!
+
+    " set binary option for all binary files before reading them
+    au BufReadPre *.bin,*.hex setlocal binary
+
+    " if on a fresh read the buffer variable is already set, it's wrong
+    au BufReadPost *
+          \ if exists('b:editHex') && b:editHex |
+          \   let b:editHex = 0 |
+          \ endif
+
+    " convert to hex on startup for binary files automatically
+    au BufReadPost *
+          \ if &binary | Hexmode | endif
+
+    " When the text is freed, the next time the buffer is made active it will
+    " re-read the text and thus not match the correct mode, we will need to
+    " convert it again if the buffer is again loaded.
+    au BufUnload *
+          \ if getbufvar(expand("<afile>"), 'editHex') == 1 |
+          \   call setbufvar(expand("<afile>"), 'editHex', 0) |
+          \ endif
+
+    " before writing a file when editing in hex mode, convert back to non-hex
+    au BufWritePre *
+          \ if exists("b:editHex") && b:editHex && &binary |
+          \  let oldro=&ro | let &ro=0 |
+          \  let oldma=&ma | let &ma=1 |
+          \  silent exe "%!xxd -r" |
+          \  let &ma=oldma | let &ro=oldro |
+          \  unlet oldma | unlet oldro |
+          \ endif
+
+    " after writing a binary file, if we're in hex mode, restore hex mode
+    au BufWritePost *
+          \ if exists("b:editHex") && b:editHex && &binary |
+          \  let oldro=&ro | let &ro=0 |
+          \  let oldma=&ma | let &ma=1 |
+          \  silent exe "%!xxd" |
+          \  exe "set nomod" |
+          \  let &ma=oldma | let &ro=oldro |
+          \  unlet oldma | unlet oldro |
+          \ endif
+  augroup END
+endif
+
+let wiki = {}
+let wiki.path = '~/wiki/src/'
+let wiki.path_html = '~/wiki/html/'
+let wiki.nested_syntaxes = {'python': 'python'}
+let wiki.auto_export = 1
+let wiki.html_header = '~/wiki/html/header.tpl'
+let g:vimwiki_list = [wiki]