aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2013-06-05 09:04:29 -0500
committerBen Beltran <ben@freshout.us>2013-06-05 09:04:29 -0500
commitb3ed569dfb65cde7f84f2c3be3bda3a7edafff5a (patch)
tree7c6e33bcc27c42b142e84c1f795e95f9bdd67256 /vim/plugin
parent7c14046e4995141df534fc0ac0f2cf2b36d807ac (diff)
Move EasyMotion and LargeFile to pathogen bundle
Diffstat (limited to 'vim/plugin')
-rwxr-xr-xvim/plugin/EasyMotion.vim73
-rw-r--r--vim/plugin/LargeFile.vim80
2 files changed, 0 insertions, 153 deletions
diff --git a/vim/plugin/EasyMotion.vim b/vim/plugin/EasyMotion.vim
deleted file mode 100755
index fff29dc..0000000
--- a/vim/plugin/EasyMotion.vim
+++ /dev/null
@@ -1,73 +0,0 @@
-" EasyMotion - Vim motions on speed!
-"
-" Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
-" Source repository: https://github.com/Lokaltog/vim-easymotion
-
-" Script initialization {{{
- if exists('g:EasyMotion_loaded') || &compatible || version < 702
- finish
- endif
-
- let g:EasyMotion_loaded = 1
-" }}}
-" Default configuration {{{
- " Default options {{{
- call EasyMotion#InitOptions({
- \ 'leader_key' : '<Leader><Leader>'
- \ , 'keys' : 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
- \ , 'do_shade' : 1
- \ , 'do_mapping' : 1
- \ , 'grouping' : 1
- \
- \ , 'hl_group_target' : 'EasyMotionTarget'
- \ , 'hl_group_shade' : 'EasyMotionShade'
- \ })
- " }}}
- " Default highlighting {{{
- let s:target_hl_defaults = {
- \ 'gui' : ['NONE', '#ff0000' , 'bold']
- \ , 'cterm256': ['NONE', '196' , 'bold']
- \ , 'cterm' : ['NONE', 'red' , 'bold']
- \ }
-
- let s:shade_hl_defaults = {
- \ 'gui' : ['NONE', '#777777' , 'NONE']
- \ , 'cterm256': ['NONE', '242' , 'NONE']
- \ , 'cterm' : ['NONE', 'grey' , 'NONE']
- \ }
-
- call EasyMotion#InitHL(g:EasyMotion_hl_group_target, s:target_hl_defaults)
- call EasyMotion#InitHL(g:EasyMotion_hl_group_shade, s:shade_hl_defaults)
-
- " Reset highlighting after loading a new color scheme {{{
- augroup EasyMotionInitHL
- autocmd!
-
- autocmd ColorScheme * call EasyMotion#InitHL(g:EasyMotion_hl_group_target, s:target_hl_defaults)
- autocmd ColorScheme * call EasyMotion#InitHL(g:EasyMotion_hl_group_shade, s:shade_hl_defaults)
- augroup end
- " }}}
- " }}}
- " Default key mapping {{{
- call EasyMotion#InitMappings({
- \ 'f' : { 'name': 'F' , 'dir': 0 }
- \ , 'F' : { 'name': 'F' , 'dir': 1 }
- \ , 't' : { 'name': 'T' , 'dir': 0 }
- \ , 'T' : { 'name': 'T' , 'dir': 1 }
- \ , 'w' : { 'name': 'WB' , 'dir': 0 }
- \ , 'W' : { 'name': 'WBW', 'dir': 0 }
- \ , 'b' : { 'name': 'WB' , 'dir': 1 }
- \ , 'B' : { 'name': 'WBW', 'dir': 1 }
- \ , 'e' : { 'name': 'E' , 'dir': 0 }
- \ , 'E' : { 'name': 'EW' , 'dir': 0 }
- \ , 'ge': { 'name': 'E' , 'dir': 1 }
- \ , 'gE': { 'name': 'EW' , 'dir': 1 }
- \ , 'j' : { 'name': 'JK' , 'dir': 0 }
- \ , 'k' : { 'name': 'JK' , 'dir': 1 }
- \ , 'n' : { 'name': 'Search' , 'dir': 0 }
- \ , 'N' : { 'name': 'Search' , 'dir': 1 }
- \ })
- " }}}
-" }}}
-
-" vim: fdm=marker:noet:ts=4:sw=4:sts=4
diff --git a/vim/plugin/LargeFile.vim b/vim/plugin/LargeFile.vim
deleted file mode 100644
index 9f6551e..0000000
--- a/vim/plugin/LargeFile.vim
+++ /dev/null
@@ -1,80 +0,0 @@
-" LargeFile: Sets up an autocmd to make editing large files work with celerity
-" Author: Charles E. Campbell, Jr.
-" Date: Sep 23, 2008
-" Version: 4
-" GetLatestVimScripts: 1506 1 :AutoInstall: LargeFile.vim
-
-" ---------------------------------------------------------------------
-" Load Once: {{{1
-if exists("g:loaded_LargeFile") || &cp
- finish
-endif
-let g:loaded_LargeFile = "v4"
-let s:keepcpo = &cpo
-set cpo&vim
-
-" ---------------------------------------------------------------------
-" Commands: {{{1
-com! Unlarge call s:Unlarge()
-com! -bang Large call s:LargeFile(<bang>0,expand("%"))
-
-" ---------------------------------------------------------------------
-" Options: {{{1
-if !exists("g:LargeFile")
- let g:LargeFile= 20 " in megabytes
-endif
-
-" ---------------------------------------------------------------------
-" LargeFile Autocmd: {{{1
-" for large files: turns undo, syntax highlighting, undo off etc
-" (based on vimtip#611)
-augroup LargeFile
- au!
- au BufReadPre * call <SID>LargeFile(0,expand("<afile>"))
- au BufReadPost *
- \ if &ch < 2 && (getfsize(expand("<afile>")) >= g:LargeFile*1024*1024 || getfsize(expand("<afile>")) == -2)
- \| echomsg "***note*** handling a large file"
- \| endif
-augroup END
-
-" ---------------------------------------------------------------------
-" s:LargeFile: {{{2
-fun! s:LargeFile(force,fname)
-" call Dfunc("LargeFile(force=".a:force." fname<".a:fname.">)")
- if a:force || getfsize(a:fname) >= g:LargeFile*1024*1024 || getfsize(a:fname) <= -2
- syn clear
- let b:eikeep = &ei
- let b:ulkeep = &ul
- let b:bhkeep = &bh
- let b:fdmkeep= &fdm
- let b:swfkeep= &swf
- set ei=FileType
- setlocal noswf bh=unload fdm=manual ul=-1
- let fname=escape(substitute(a:fname,'\','/','g'),' ')
- exe "au LargeFile BufEnter ".fname." set ul=-1"
- exe "au LargeFile BufLeave ".fname." let &ul=".b:ulkeep."|set ei=".b:eikeep
- exe "au LargeFile BufUnload ".fname." au! LargeFile * ". fname
- echomsg "***note*** handling a large file"
- endif
-" call Dret("s:LargeFile")
-endfun
-
-" ---------------------------------------------------------------------
-" s:Unlarge: this function will undo what the LargeFile autocmd does {{{2
-fun! s:Unlarge()
-" call Dfunc("s:Unlarge()")
- if exists("b:eikeep") |let &ei = b:eikeep |endif
- if exists("b:ulkeep") |let &ul = b:ulkeep |endif
- if exists("b:bhkeep") |let &bh = b:bhkeep |endif
- if exists("b:fdmkeep")|let &fdm = b:fdmkeep|endif
- if exists("b:swfkeep")|let &swf = b:swfkeep|endif
- syn on
- doau FileType
-" call Dret("s:Unlarge")
-endfun
-
-" ---------------------------------------------------------------------
-" Restore: {{{1
-let &cpo= s:keepcpo
-unlet s:keepcpo
-" vim: ts=4 fdm=marker