From 2b85ea4f6bff86e46229a082fa897481e033aec1 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Tue, 24 Oct 2017 17:28:35 -0700 Subject: [PATCH] removed files --- vim/autoload/pathogen.vim | 254 ------------------------------ vim/plugin/BlockComment.vim | 234 ---------------------------- vim/plugin/ZoomWin.vim | 203 ------------------------ vim/plugin/vis.vim | 300 ------------------------------------ vim/syntax/actionscript.vim | 154 ------------------ vim/syntax/c.vim | 18 --- vim/syntax/debhints.vim | 30 ---- vim/syntax/javascript.vim | 135 ---------------- vim/syntax/make.vim | 137 ---------------- vim/syntax/massif.vim | 35 ----- 10 files changed, 1500 deletions(-) delete mode 100644 vim/autoload/pathogen.vim delete mode 100644 vim/plugin/BlockComment.vim delete mode 100644 vim/plugin/ZoomWin.vim delete mode 100644 vim/plugin/vis.vim delete mode 100644 vim/syntax/actionscript.vim delete mode 100644 vim/syntax/c.vim delete mode 100644 vim/syntax/debhints.vim delete mode 100644 vim/syntax/javascript.vim delete mode 100644 vim/syntax/make.vim delete mode 100644 vim/syntax/massif.vim diff --git a/vim/autoload/pathogen.vim b/vim/autoload/pathogen.vim deleted file mode 100644 index b5eb618..0000000 --- a/vim/autoload/pathogen.vim +++ /dev/null @@ -1,254 +0,0 @@ -" pathogen.vim - path option manipulation -" Maintainer: Tim Pope -" Version: 2.0 - -" Install in ~/.vim/autoload (or ~\vimfiles\autoload). -" -" For management of individually installed plugins in ~/.vim/bundle (or -" ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc -" prior to `filetype plugin indent on` is the only other setup necessary. -" -" The API is documented inline below. For maximum ease of reading, -" :set foldmethod=marker - -if exists("g:loaded_pathogen") || &cp - finish -endif -let g:loaded_pathogen = 1 - -" Point of entry for basic default usage. Give a directory name to invoke -" pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path -" to invoke pathogen#runtime_prepend_subdirectories(). Afterwards, -" pathogen#cycle_filetype() is invoked. -function! pathogen#infect(...) abort " {{{1 - let source_path = a:0 ? a:1 : 'bundle' - if source_path =~# '[\\/]' - call pathogen#runtime_prepend_subdirectories(source_path) - else - call pathogen#runtime_append_all_bundles(source_path) - endif - call pathogen#cycle_filetype() -endfunction " }}}1 - -" Split a path into a list. -function! pathogen#split(path) abort " {{{1 - if type(a:path) == type([]) | return a:path | endif - let split = split(a:path,'\\\@"),'!isdirectory(v:val)')) && (!filereadable(dir.sep.'doc'.sep.'tags') || filewritable(dir.sep.'doc'.sep.'tags')) - helptags `=dir.'/doc'` - endif - endfor -endfunction " }}}1 - -command! -bar Helptags :call pathogen#helptags() - -" Like findfile(), but hardcoded to use the runtimepath. -function! pathogen#runtime_findfile(file,count) "{{{1 - let rtp = pathogen#join(1,pathogen#split(&rtp)) - let file = findfile(a:file,rtp,a:count) - if file ==# '' - return '' - else - return fnamemodify(file,':p') - endif -endfunction " }}}1 - -" Backport of fnameescape(). -function! pathogen#fnameescape(string) " {{{1 - if exists('*fnameescape') - return fnameescape(a:string) - elseif a:string ==# '-' - return '\-' - else - return substitute(escape(a:string," \t\n*?[{`$\\%#'\"|!<"),'^[+>]','\\&','') - endif -endfunction " }}}1 - -if exists(':Vedit') - finish -endif - -function! s:find(count,cmd,file,lcd) " {{{1 - let rtp = pathogen#join(1,pathogen#split(&runtimepath)) - let file = pathogen#runtime_findfile(a:file,a:count) - if file ==# '' - return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'" - elseif a:lcd - let path = file[0:-strlen(a:file)-2] - execute 'lcd `=path`' - return a:cmd.' '.pathogen#fnameescape(a:file) - else - return a:cmd.' '.pathogen#fnameescape(file) - endif -endfunction " }}}1 - -function! s:Findcomplete(A,L,P) " {{{1 - let sep = pathogen#separator() - let cheats = { - \'a': 'autoload', - \'d': 'doc', - \'f': 'ftplugin', - \'i': 'indent', - \'p': 'plugin', - \'s': 'syntax'} - if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0]) - let request = cheats[a:A[0]].a:A[1:-1] - else - let request = a:A - endif - let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*' - let found = {} - for path in pathogen#split(&runtimepath) - let path = expand(path, ':p') - let matches = split(glob(path.sep.pattern),"\n") - call map(matches,'isdirectory(v:val) ? v:val.sep : v:val') - call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]') - for match in matches - let found[match] = 1 - endfor - endfor - return sort(keys(found)) -endfunction " }}}1 - -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) - -" vim:set et sw=2: diff --git a/vim/plugin/BlockComment.vim b/vim/plugin/BlockComment.vim deleted file mode 100644 index 165bb14..0000000 --- a/vim/plugin/BlockComment.vim +++ /dev/null @@ -1,234 +0,0 @@ -" BlockComment.vim -" Author: Chris Russell -" Version: 1.1 -" License: GPL v2.0 -" -" Description: -" This script defineds functions and key mappings to block comment code. -" -" Help: -" In brief, use '.c' to comment and '.C' to uncomment. -" -" Both commenting and uncommenting can be run on N lines at a time by -" using a number before the command. They both support visual mode and -" ranges. -" -" This script will not comment lines with an indent level less that the -" initial line of the comment to preserve the control structure of code. -" -" Installation: -" Simply drop this file into your plugin directory. -" -" Changelog: -" 2002-11-08 v1.1 -" Convert to Unix eol -" 2002-11-05 v1.0 -" Initial release -" -" TODO: -" Add more file types -" - - -"-------------------------------------------------- -" Avoid multiple sourcing -"-------------------------------------------------- -if exists( "loaded_block_comment" ) - finish -endif -let loaded_block_comment = 1 - - -"-------------------------------------------------- -" Key mappings -"-------------------------------------------------- -noremap .c :call Comment() -noremap .C :call UnComment() - - -"-------------------------------------------------- -" Set comment characters by filetype -"-------------------------------------------------- -function! CommentStr() - let s:comment_pad = '--------------------------------------------------' - if &ft == "vim" - let s:comment_strt = '"' - let s:comment_mid0 = '" ' - let s:comment_mid1 = '"' - let s:comment_stop = ' ' - let s:comment_bkup = 0 - elseif &ft == "c" || &ft == "css" - let s:comment_strt = '/*' - let s:comment_mid0 = '* ' - let s:comment_mid1 = '*' - let s:comment_stop = '*/' - let s:comment_bkup = 1 - let s:comment_strtbak = '/ *' - let s:comment_stopbak = '* /' - elseif &ft == "cpp" || &ft == "java" || &ft == "javascript" || &ft == "php" - let s:comment_strt = '//' - let s:comment_mid0 = '// ' - let s:comment_mid1 = '//' - let s:comment_stop = ' ' - let s:comment_bkup = 0 - elseif &ft == "tex" - let s:comment_strt = '%' - let s:comment_mid0 = '% ' - let s:comment_mid1 = '%' - let s:comment_stop = ' ' - let s:comment_bkup = 0 - elseif &ft == "asm" || &ft == "lisp" || &ft == "scheme" - let s:comment_strt = ';' - let s:comment_mid0 = '; ' - let s:comment_mid1 = ';' - let s:comment_stop = ' ' - let s:comment_bkup = 0 - elseif &ft == "vb" - let s:comment_strt = '\'' - let s:comment_mid0 = '\' ' - let s:comment_mid1 = '\'' - let s:comment_stop = ' ' - let s:comment_bkup = 0 - elseif &ft == "html" || &ft == "xml" || &ft == "entity" - let s:comment_strt = '' - let s:comment_bkup = 1 - let s:comment_strtbak = '< !--' - let s:comment_stopbak = '-- >' - else - let s:comment_strt = '#' - let s:comment_mid0 = '# ' - let s:comment_mid1 = '#' - let s:comment_stop = ' ' - let s:comment_bkup = 0 - endif -endfunction - -"-------------------------------------------------- -" Comment a block of code -"-------------------------------------------------- -function! Comment() range - " range variables - let l:firstln = a:firstline - let l:lastln = a:lastline - " get comment chars - call CommentStr() - " get tab indent level - let l:indent = indent( l:firstln ) / &tabstop - " loop to get padding str - let l:pad = "" - let l:i = 0 - while l:i < l:indent - let l:pad = l:pad . "\t" - let l:i = l:i + 1 - endwhile - " loop for each line - let l:block = 0 - let l:midline = l:firstln - while l:midline <= l:lastln - " get line - let l:line = getline( l:midline ) - " check if padding matches - if strpart( l:line, 0, l:indent ) == l:pad - " start comment block - if l:block == 0 - call append( l:midline - 1, l:pad . s:comment_strt . s:comment_pad ) - let l:midline = l:midline + 1 - let l:lastln = l:lastln + 1 - let l:block = 1 - endif - " append comment between indent and code - let l:line = strpart( l:line, l:indent ) - " handle comments within comments - if s:comment_bkup == 1 - let l:line = substitute( l:line, escape( s:comment_strt, '\*^$.~[]' ), s:comment_strtbak, "g" ) - let l:line = substitute( l:line, escape( s:comment_stop, '\*^$.~[]' ), s:comment_stopbak, "g" ) - endif - call setline( l:midline, l:pad . s:comment_mid0 . l:line ) - " else end block - elseif l:block == 1 - call append( l:midline - 1, l:pad . s:comment_mid1 . s:comment_pad . s:comment_stop ) - let l:midline = l:midline + 1 - let l:lastln = l:lastln + 1 - let l:block = 0 - endif - let l:midline = l:midline + 1 - endwhile - " end block - if l:block == 1 - call append( l:lastln, l:pad . s:comment_mid1 . s:comment_pad . s:comment_stop ) - endif - " return to first line of comment - execute l:firstln -endfunction - -"-------------------------------------------------- -" Uncomment a block of code -"-------------------------------------------------- -function! UnComment() range - " range variables - let l:firstln = a:firstline - let l:lastln = a:lastline - " get comment chars - call CommentStr() - " get length of comment string - let l:clen = strlen( s:comment_mid0 ) - " loop for each line - let l:midline = l:firstln - while l:midline <= l:lastln - " get indent level - process indent for each line instead of by block - let l:indent = indent( l:midline ) / &tabstop - let l:line = getline( l:midline ) - " begin comment block line - delete line - if strpart( l:line, l:indent ) == s:comment_strt . s:comment_pad - execute l:midline . "d" - let l:midline = l:midline - 1 - let l:lastln = l:lastln - 1 - " end comment block line - delete line - elseif strpart( l:line, l:indent ) == s:comment_mid1 . s:comment_pad . s:comment_stop - execute l:midline . "d" - let l:midline = l:midline - 1 - let l:lastln = l:lastln - 1 - " commented code line - remove comment - elseif strpart( l:line, l:indent, l:clen ) == s:comment_mid0 - let l:pad = strpart( l:line, 0, l:indent ) - let l:line = strpart( l:line, l:indent + l:clen ) - " handle comments within comments - if s:comment_bkup == 1 - let l:line = substitute( l:line, escape( s:comment_strtbak, '\*^$.~[]' ), s:comment_strt, "g" ) - let l:line = substitute( l:line, escape( s:comment_stopbak, '\*^$.~[]' ), s:comment_stop, "g" ) - endif - call setline( l:midline, l:pad . l:line ) - endif - let l:midline = l:midline + 1 - endwhile - " look at line above block - let l:indent = indent( l:firstln - 1 ) / &tabstop - let l:line = getline( l:firstln - 1 ) - " abandoned begin comment block line - delete line - if strpart( l:line, l:indent ) == s:comment_strt . s:comment_pad - execute ( l:firstln - 1 ) . "d" - let l:firstln = l:firstln - 1 - let l:lastln = l:lastln - 1 - " abandoned commented code line - insert end comment block line - elseif strpart( l:line, l:indent, l:clen ) == s:comment_mid0 - let l:pad = strpart( l:line, 0, l:indent ) - call append( l:firstln - 1, l:pad . s:comment_mid1 . s:comment_pad . s:comment_stop ) - let l:lastln = l:lastln + 1 - endif - " look at line belowe block - let l:indent = indent( l:lastln + 1 ) / &tabstop - let l:line = getline( l:lastln + 1 ) - " abandoned end comment block line - delete line - if strpart( l:line, l:indent ) == s:comment_mid1 . s:comment_pad . s:comment_stop - execute ( l:lastln + 1 ) . "d" - let l:lastln = l:lastln - 1 - " abandoned commented code line - insert begin comment block line - elseif strpart( l:line, l:indent, l:clen ) == s:comment_mid0 - let l:pad = strpart( l:line, 0, l:indent ) - call append( l:lastln, l:pad . s:comment_strt . s:comment_pad ) - endif -endfunction - diff --git a/vim/plugin/ZoomWin.vim b/vim/plugin/ZoomWin.vim deleted file mode 100644 index c11d54a..0000000 --- a/vim/plugin/ZoomWin.vim +++ /dev/null @@ -1,203 +0,0 @@ -" ZoomWin: Brief-like ability to zoom into/out-of a window -" Author: Ron Aaron -" modified by Charles Campbell -" Version: 19 -" History: see :he zoomwin-history - -" --------------------------------------------------------------------- -if &cp || exists("s:loaded_zoomwin") - finish -endif -let s:loaded_zoomwin= 1 - -" --------------------------------------------------------------------- -" Public Interface: -if !hasmapto("ZoomWin") - nmap o ZoomWin -endif -nnoremap