mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Jellybeans colorscheme update, added repeat and zoom plugins, changed
vcscommand to support switching VCS on fly, changed python snippets (edbg) added fitnesse wiki syntax.
This commit is contained in:
9
.vimrc
9
.vimrc
@@ -9,6 +9,7 @@ set background=dark "Hint Vim that I use dark colorscheme
|
|||||||
|
|
||||||
set confirm "Ask for confirmation rather then refuse certain commands
|
set confirm "Ask for confirmation rather then refuse certain commands
|
||||||
set cursorline "Turn on current line highlight
|
set cursorline "Turn on current line highlight
|
||||||
|
set nohlsearch "Turn off highlighting text by default
|
||||||
set expandtab "I want spaces instead of tabs
|
set expandtab "I want spaces instead of tabs
|
||||||
set fileencodings=ucs-bom,utf-8,latin2,default,latin1,default
|
set fileencodings=ucs-bom,utf-8,latin2,default,latin1,default
|
||||||
set fileformats=unix,dos "Type of <EOL> in written files
|
set fileformats=unix,dos "Type of <EOL> in written files
|
||||||
@@ -196,8 +197,8 @@ map <Leader>wp <Plug>VimwikiPrevWord
|
|||||||
map ]b :call OpenInFirefox()<cr>
|
map ]b :call OpenInFirefox()<cr>
|
||||||
|
|
||||||
"make displaying tags easy
|
"make displaying tags easy
|
||||||
"nmap <Leader>t :TlistToo<CR>
|
nmap <Leader>t :TlistToo<CR>
|
||||||
nmap <Leader>t :TagbarToggle<CR>
|
nmap <Leader>T :TagbarToggle<CR>
|
||||||
"eclim Buffer shortcut
|
"eclim Buffer shortcut
|
||||||
map <Leader>b :Buffers<CR>
|
map <Leader>b :Buffers<CR>
|
||||||
|
|
||||||
@@ -308,8 +309,8 @@ endfunction
|
|||||||
" GUI: here goes all the gvim customizations {{{
|
" GUI: here goes all the gvim customizations {{{
|
||||||
if has('gui_running')
|
if has('gui_running')
|
||||||
"set guifont=Consolas\ 12 "I like this font, but it looks like crap on linux
|
"set guifont=Consolas\ 12 "I like this font, but it looks like crap on linux
|
||||||
set guifont=Consolas\ 13 "Let's try again
|
"set guifont=Consolas\ 13 "Let's try again
|
||||||
"set guifont=Fixed\ 14 "I like this font better.
|
set guifont=Fixed\ 14 "I like this font better.
|
||||||
set mouse=a "Enable mouse support
|
set mouse=a "Enable mouse support
|
||||||
"No toolbar, menu, scrollbars, draw simple text tabs. This would keep
|
"No toolbar, menu, scrollbars, draw simple text tabs. This would keep
|
||||||
"window in one place, and also this will conserve space. Tabs are huge
|
"window in one place, and also this will conserve space. Tabs are huge
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
"
|
"
|
||||||
" File: jellybeans.vim
|
" File: jellybeans.vim
|
||||||
" Maintainer: NanoTech <http://nanotech.nanotechcorp.net/>
|
" Maintainer: NanoTech <http://nanotech.nanotechcorp.net/>
|
||||||
" Version: 1.3
|
" Version: 1.4
|
||||||
" Last Change: October 25th, 2010
|
" Last Change: April 11th, 2011
|
||||||
" Contributors: Daniel Herbert <http://pocket-ninja.com>,
|
" Contributors: Daniel Herbert <http://pocket-ninja.com>,
|
||||||
" Henry So, Jr. <henryso@panix.com>,
|
" Henry So, Jr. <henryso@panix.com>,
|
||||||
" David Liang <bmdavll at gmail dot com>
|
" David Liang <bmdavll at gmail dot com>
|
||||||
"
|
"
|
||||||
" Copyright (c) 2009-2010 NanoTech
|
" Copyright (c) 2009-2011 NanoTech
|
||||||
"
|
"
|
||||||
" Permission is hereby granted, free of charge, to any person obtaining a copy
|
" Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
" of this software and associated documentation files (the "Software"), to deal
|
" of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -269,56 +269,59 @@ fun! s:X(group, fg, bg, attr, lcfg, lcbg)
|
|||||||
if !l:fge && !l:bge
|
if !l:fge && !l:bge
|
||||||
exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg)
|
exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg)
|
||||||
elseif !l:fge && l:bge
|
elseif !l:fge && l:bge
|
||||||
exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)
|
exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)." ctermbg=NONE"
|
||||||
elseif l:fge && !l:bge
|
elseif l:fge && !l:bge
|
||||||
exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermbg=".s:rgb(a:bg)
|
exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermfg=NONE ctermbg=".s:rgb(a:bg)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:attr == ""
|
if a:attr == ""
|
||||||
exec "hi ".a:group." gui=none cterm=none"
|
exec "hi ".a:group." gui=none cterm=none"
|
||||||
else
|
else
|
||||||
if a:attr == 'italic'
|
let noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",")
|
||||||
exec "hi ".a:group." gui=".a:attr." cterm=none"
|
if empty(noitalic)
|
||||||
else
|
let noitalic = "none"
|
||||||
exec "hi ".a:group." gui=".a:attr." cterm=".a:attr
|
|
||||||
endif
|
endif
|
||||||
|
exec "hi ".a:group." gui=".a:attr." cterm=".noitalic
|
||||||
endif
|
endif
|
||||||
endfun
|
endfun
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
call s:X("Normal","e8e8d3","151515","","White","")
|
||||||
|
set background=dark
|
||||||
|
|
||||||
if version >= 700
|
if version >= 700
|
||||||
call s:X("CursorLine","","1c1c1c","","","")
|
call s:X("CursorLine","","1c1c1c","","","Black")
|
||||||
call s:X("CursorColumn","","1c1c1c","","","")
|
call s:X("CursorColumn","","1c1c1c","","","Black")
|
||||||
call s:X("ColorColumn","","1c1c1c","","","")
|
call s:X("ColorColumn","","1c1c1c","","","")
|
||||||
call s:X("MatchParen","ffffff","80a090","bold","","")
|
call s:X("MatchParen","ffffff","80a090","bold","","DarkCyan")
|
||||||
|
|
||||||
call s:X("TabLine","000000","b0b8c0","italic","","Black")
|
call s:X("TabLine","000000","b0b8c0","italic","","Black")
|
||||||
call s:X("TabLineFill","9098a0","","","","")
|
call s:X("TabLineFill","9098a0","","","","Black")
|
||||||
call s:X("TabLineSel","000000","f0f0f0","italic,bold","","")
|
call s:X("TabLineSel","000000","f0f0f0","italic,bold","Black","White")
|
||||||
|
|
||||||
" Auto-completion
|
" Auto-completion
|
||||||
call s:X("Pmenu","ffffff","000000","","","")
|
call s:X("Pmenu","ffffff","606060","","White","Black")
|
||||||
call s:X("PmenuSel","101010","eeeeee","","","")
|
call s:X("PmenuSel","101010","eeeeee","","Black","White")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call s:X("Visual","","404040","","","")
|
call s:X("Visual","","404040","","","Black")
|
||||||
call s:X("Cursor","","b0d0f0","","","")
|
call s:X("Cursor","","b0d0f0","","","")
|
||||||
|
|
||||||
call s:X("Normal","e8e8d3","151515","","White","")
|
|
||||||
call s:X("LineNr","605958","151515","none","Black","")
|
call s:X("LineNr","605958","151515","none","Black","")
|
||||||
call s:X("Comment","888888","","italic","Grey","")
|
call s:X("Comment","888888","","italic","Grey","")
|
||||||
call s:X("Todo","808080","","bold","","")
|
call s:X("Todo","808080","","bold","White","Black")
|
||||||
|
|
||||||
call s:X("StatusLine","000000","dddddd","italic","Black","White")
|
call s:X("StatusLine","000000","dddddd","italic","Black","White")
|
||||||
call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
|
call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
|
||||||
call s:X("VertSplit","777777","403c41","italic","Black","Black")
|
call s:X("VertSplit","777777","403c41","italic","Black","Black")
|
||||||
|
call s:X("WildMenu","f0a0c0","302028","","Magenta","")
|
||||||
|
|
||||||
call s:X("Folded","a0a8b0","384048","italic","black","")
|
call s:X("Folded","a0a8b0","384048","italic","Black","")
|
||||||
call s:X("FoldColumn","a0a8b0","384048","","","")
|
call s:X("FoldColumn","a0a8b0","384048","","","Black")
|
||||||
call s:X("SignColumn","a0a8b0","384048","","","")
|
hi! link SignColumn FoldColumn
|
||||||
|
|
||||||
call s:X("Title","70b950","","bold","","")
|
call s:X("Title","70b950","","bold","Green","")
|
||||||
|
|
||||||
call s:X("Constant","cf6a4c","","","Red","")
|
call s:X("Constant","cf6a4c","","","Red","")
|
||||||
call s:X("Special","799d6a","","","Green","")
|
call s:X("Special","799d6a","","","Green","")
|
||||||
@@ -333,23 +336,33 @@ call s:X("Function","fad07a","","","Yellow","")
|
|||||||
call s:X("Statement","8197bf","","","DarkBlue","")
|
call s:X("Statement","8197bf","","","DarkBlue","")
|
||||||
call s:X("PreProc","8fbfdc","","","LightBlue","")
|
call s:X("PreProc","8fbfdc","","","LightBlue","")
|
||||||
|
|
||||||
hi link Operator Normal
|
hi! link Operator Normal
|
||||||
|
|
||||||
call s:X("Type","ffb964","","","Yellow","")
|
call s:X("Type","ffb964","","","Yellow","")
|
||||||
call s:X("NonText","606060","151515","","","")
|
call s:X("NonText","606060","151515","","Black","")
|
||||||
|
|
||||||
call s:X("SpecialKey","444444","1c1c1c","","","")
|
call s:X("SpecialKey","444444","1c1c1c","","Black","")
|
||||||
|
|
||||||
call s:X("Search","f0a0c0","302028","underline","Magenta","")
|
call s:X("Search","f0a0c0","302028","underline","Magenta","")
|
||||||
|
|
||||||
call s:X("Directory","dad085","","","","")
|
call s:X("Directory","dad085","","","Yellow","")
|
||||||
call s:X("ErrorMsg","","902020","","","")
|
call s:X("ErrorMsg","","902020","","","DarkRed")
|
||||||
hi link Error ErrorMsg
|
hi! link Error ErrorMsg
|
||||||
|
hi! link MoreMsg Special
|
||||||
|
call s:X("Question","65C254","","","Green","")
|
||||||
|
|
||||||
|
|
||||||
|
" Spell Checking
|
||||||
|
|
||||||
|
call s:X("SpellBad","","902020","underline","","DarkRed")
|
||||||
|
call s:X("SpellCap","","0000df","underline","","Blue")
|
||||||
|
call s:X("SpellRare","","540063","underline","","DarkMagenta")
|
||||||
|
call s:X("SpellLocal","","2D7067","underline","","Green")
|
||||||
|
|
||||||
" Diff
|
" Diff
|
||||||
|
|
||||||
hi link diffRemoved Constant
|
hi! link diffRemoved Constant
|
||||||
hi link diffAdded String
|
hi! link diffAdded String
|
||||||
|
|
||||||
" VimDiff
|
" VimDiff
|
||||||
|
|
||||||
@@ -360,30 +373,32 @@ call s:X("DiffText","","000940","","","DarkRed")
|
|||||||
|
|
||||||
" PHP
|
" PHP
|
||||||
|
|
||||||
hi link phpFunctions Function
|
hi! link phpFunctions Function
|
||||||
call s:X("StorageClass","c59f6f","","","Red","")
|
call s:X("StorageClass","c59f6f","","","Red","")
|
||||||
hi link phpSuperglobal Identifier
|
hi! link phpSuperglobal Identifier
|
||||||
hi link phpQuoteSingle StringDelimiter
|
hi! link phpQuoteSingle StringDelimiter
|
||||||
hi link phpQuoteDouble StringDelimiter
|
hi! link phpQuoteDouble StringDelimiter
|
||||||
hi link phpBoolean Constant
|
hi! link phpBoolean Constant
|
||||||
hi link phpNull Constant
|
hi! link phpNull Constant
|
||||||
hi link phpArrayPair Operator
|
hi! link phpArrayPair Operator
|
||||||
|
|
||||||
" Ruby
|
" Ruby
|
||||||
|
|
||||||
hi link rubySharpBang Comment
|
hi! link rubySharpBang Comment
|
||||||
call s:X("rubyClass","447799","","","DarkBlue","")
|
call s:X("rubyClass","447799","","","DarkBlue","")
|
||||||
call s:X("rubyIdentifier","c6b6fe","","","","")
|
call s:X("rubyIdentifier","c6b6fe","","","Cyan","")
|
||||||
|
hi! link rubyConstant Type
|
||||||
|
hi! link rubyFunction Function
|
||||||
|
|
||||||
call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","")
|
call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","")
|
||||||
call s:X("rubySymbol","7697d6","","","Blue","")
|
call s:X("rubySymbol","7697d6","","","Blue","")
|
||||||
hi link rubyGlobalVariable rubyInstanceVariable
|
hi! link rubyGlobalVariable rubyInstanceVariable
|
||||||
hi link rubyModule rubyClass
|
hi! link rubyModule rubyClass
|
||||||
call s:X("rubyControl","7597c6","","","","")
|
call s:X("rubyControl","7597c6","","","Blue","")
|
||||||
|
|
||||||
hi link rubyString String
|
hi! link rubyString String
|
||||||
hi link rubyStringDelimiter StringDelimiter
|
hi! link rubyStringDelimiter StringDelimiter
|
||||||
hi link rubyInterpolationDelimiter Identifier
|
hi! link rubyInterpolationDelimiter Identifier
|
||||||
|
|
||||||
call s:X("rubyRegexpDelimiter","540063","","","Magenta","")
|
call s:X("rubyRegexpDelimiter","540063","","","Magenta","")
|
||||||
call s:X("rubyRegexp","dd0093","","","DarkMagenta","")
|
call s:X("rubyRegexp","dd0093","","","DarkMagenta","")
|
||||||
@@ -392,26 +407,44 @@ call s:X("rubyRegexpSpecial","a40073","","","Magenta","")
|
|||||||
call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
|
call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
|
||||||
|
|
||||||
" JavaScript
|
" JavaScript
|
||||||
hi link javaScriptValue Constant
|
hi! link javaScriptValue Constant
|
||||||
hi link javaScriptRegexpString rubyRegexp
|
hi! link javaScriptRegexpString rubyRegexp
|
||||||
|
|
||||||
|
" CoffeeScript
|
||||||
|
|
||||||
|
hi! link coffeeRegExp javaScriptRegexpString
|
||||||
|
|
||||||
" C
|
" C
|
||||||
|
|
||||||
hi link cOperator Constant
|
hi! link cOperator Constant
|
||||||
|
|
||||||
" Objective-C/Cocoa
|
" Objective-C/Cocoa
|
||||||
hi link objcClass Type
|
hi! link objcClass Type
|
||||||
hi link cocoaClass objcClass
|
hi! link cocoaClass objcClass
|
||||||
hi link objcSubclass objcClass
|
hi! link objcSubclass objcClass
|
||||||
hi link objcSuperclass objcClass
|
hi! link objcSuperclass objcClass
|
||||||
hi link objcDirective rubyClass
|
hi! link objcDirective rubyClass
|
||||||
hi link cocoaFunction Function
|
hi! link cocoaFunction Function
|
||||||
hi link objcMethodName Identifier
|
hi! link objcMethodName Identifier
|
||||||
hi link objcMethodArg Normal
|
hi! link objcMethodArg Normal
|
||||||
hi link objcMessageName Identifier
|
hi! link objcMessageName Identifier
|
||||||
|
|
||||||
" Tag list
|
" Plugins, etc.
|
||||||
hi link TagListFileName Directory
|
|
||||||
|
hi! link TagListFileName Directory
|
||||||
|
call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
|
||||||
|
|
||||||
|
" Manual overrides for 256-color terminals. Dark colors auto-map badly.
|
||||||
|
if !s:low_color
|
||||||
|
hi StatusLineNC ctermbg=234
|
||||||
|
hi Folded ctermbg=236
|
||||||
|
hi FoldColumn ctermbg=236
|
||||||
|
hi SignColumn ctermbg=236
|
||||||
|
hi DiffAdd ctermbg=22
|
||||||
|
hi DiffDelete ctermbg=52
|
||||||
|
hi DiffChange ctermbg=17
|
||||||
|
hi DiffText ctermbg=19
|
||||||
|
endif
|
||||||
|
|
||||||
" delete functions {{{
|
" delete functions {{{
|
||||||
delf s:X
|
delf s:X
|
||||||
|
|||||||
72
plugin/repeat.vim
Normal file
72
plugin/repeat.vim
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
" repeat.vim - Let the repeat command repeat plugin maps
|
||||||
|
" Maintainer: Tim Pope
|
||||||
|
" Version: 1.0
|
||||||
|
|
||||||
|
" Installation:
|
||||||
|
" Place in either ~/.vim/plugin/repeat.vim (to load at start up) or
|
||||||
|
" ~/.vim/autoload/repeat.vim (to load automatically as needed).
|
||||||
|
"
|
||||||
|
" Developers:
|
||||||
|
" Basic usage is as follows:
|
||||||
|
"
|
||||||
|
" silent! call repeat#set("\<Plug>MappingToRepeatCommand",3)
|
||||||
|
"
|
||||||
|
" The first argument is the mapping that will be invoked when the |.| key is
|
||||||
|
" pressed. Typically, it will be the same as the mapping the user invoked.
|
||||||
|
" This sequence will be stuffed into the input queue literally. Thus you must
|
||||||
|
" encode special keys by prefixing them with a backslash inside double quotes.
|
||||||
|
"
|
||||||
|
" The second argument is the default count. This is the number that will be
|
||||||
|
" prefixed to the mapping if no explicit numeric argument was given. The
|
||||||
|
" value of the v:count variable is usually correct and it will be used if the
|
||||||
|
" second parameter is omitted. If your mapping doesn't accept a numeric
|
||||||
|
" argument and you never want to receive one, pass a value of -1.
|
||||||
|
"
|
||||||
|
" Make sure to call the repeat#set function _after_ making changes to the
|
||||||
|
" file.
|
||||||
|
|
||||||
|
if exists("g:loaded_repeat") || &cp || v:version < 700
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_repeat = 1
|
||||||
|
|
||||||
|
let g:repeat_tick = -1
|
||||||
|
|
||||||
|
function! repeat#set(sequence,...)
|
||||||
|
silent exe "norm! \"=''\<CR>p"
|
||||||
|
let g:repeat_sequence = a:sequence
|
||||||
|
let g:repeat_count = a:0 ? a:1 : v:count
|
||||||
|
let g:repeat_tick = b:changedtick
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:repeat(count)
|
||||||
|
if g:repeat_tick == b:changedtick
|
||||||
|
let c = g:repeat_count
|
||||||
|
let s = g:repeat_sequence
|
||||||
|
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
|
||||||
|
call feedkeys(cnt . s)
|
||||||
|
else
|
||||||
|
call feedkeys((a:count ? a:count : '') . '.', 'n')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:wrap(command,count)
|
||||||
|
let preserve = (g:repeat_tick == b:changedtick)
|
||||||
|
exe 'norm! '.(a:count ? a:count : '').a:command
|
||||||
|
if preserve
|
||||||
|
let g:repeat_tick = b:changedtick
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
nnoremap <silent> . :<C-U>call <SID>repeat(v:count)<CR>
|
||||||
|
nnoremap <silent> u :<C-U>call <SID>wrap('u',v:count)<CR>
|
||||||
|
nnoremap <silent> U :<C-U>call <SID>wrap('U',v:count)<CR>
|
||||||
|
nnoremap <silent> <C-R> :<C-U>call <SID>wrap("\<Lt>C-R>",v:count)<CR>
|
||||||
|
|
||||||
|
augroup repeatPlugin
|
||||||
|
autocmd!
|
||||||
|
autocmd BufLeave,BufWritePre,BufReadPre * let g:repeat_tick = (g:repeat_tick == b:changedtick || g:repeat_tick == 0) ? 0 : -1
|
||||||
|
autocmd BufEnter,BufWritePost * if g:repeat_tick == 0|let g:repeat_tick = b:changedtick|endif
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" vim:set ft=vim et sw=4 sts=4:
|
||||||
@@ -1027,6 +1027,9 @@ endfunction
|
|||||||
" Multiple inexact matches is currently considered an error.
|
" Multiple inexact matches is currently considered an error.
|
||||||
|
|
||||||
function! VCSCommandGetVCSType(buffer)
|
function! VCSCommandGetVCSType(buffer)
|
||||||
|
if exists("g:VCSTypeOverride")
|
||||||
|
return g:VCSTypeOverride
|
||||||
|
endif
|
||||||
let vcsType = getbufvar(a:buffer, 'VCSCommandVCSType')
|
let vcsType = getbufvar(a:buffer, 'VCSCommandVCSType')
|
||||||
if strlen(vcsType) > 0
|
if strlen(vcsType) > 0
|
||||||
return vcsType
|
return vcsType
|
||||||
|
|||||||
81
plugin/zoom.vim
Normal file
81
plugin/zoom.vim
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
if &cp || exists("g:loaded_zoom")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_zoom = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" keep default value
|
||||||
|
let s:current_font = &guifont
|
||||||
|
|
||||||
|
" command
|
||||||
|
command! -narg=0 ZoomIn :call s:ZoomIn()
|
||||||
|
command! -narg=0 ZoomOut :call s:ZoomOut()
|
||||||
|
command! -narg=0 ZoomReset :call s:ZoomReset()
|
||||||
|
|
||||||
|
" map
|
||||||
|
nmap <kPlus> :ZoomIn<CR>
|
||||||
|
nmap <kMinus> :ZoomOut<CR>
|
||||||
|
nmap <kDivide> :ZoomReset<CR>
|
||||||
|
|
||||||
|
" guifont size + 1
|
||||||
|
function! s:ZoomIn()
|
||||||
|
let l:font = split(&guifont)
|
||||||
|
let l:size = l:font[1] + 1
|
||||||
|
let &guifont = l:font[0] . " " . l:size
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" guifont size - 1
|
||||||
|
function! s:ZoomOut()
|
||||||
|
let l:font = split(&guifont)
|
||||||
|
let l:size = l:font[1] - 1
|
||||||
|
let &guifont = l:font[0] . " " . l:size
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" reset guifont size
|
||||||
|
function! s:ZoomReset()
|
||||||
|
let &guifont = s:current_font
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
finish
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
zoom.vim : control gui font size with "+" or "-" keys.
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
$VIMRUNTIMEPATH/plugin/zoom.vim
|
||||||
|
==============================================================================
|
||||||
|
author : OMI TAKU
|
||||||
|
url : http://nanasi.jp/
|
||||||
|
email : mail@nanasi.jp
|
||||||
|
version : 2008/07/18 10:00:00
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
Control Vim editor font size with key "+", or key "-".
|
||||||
|
Press "+" key, Vim editor gui font size will change bigger.
|
||||||
|
And, press "-" key, Vim editor gui font size will change smaller.
|
||||||
|
|
||||||
|
This plugin is for GUI only.
|
||||||
|
|
||||||
|
|
||||||
|
Normal Mode:
|
||||||
|
+ ... change font size bigger
|
||||||
|
- ... change font size smaller
|
||||||
|
|
||||||
|
Command-line Mode:
|
||||||
|
:ZoomIn ... change font size bigger
|
||||||
|
:ZoomOut ... change font size smaller
|
||||||
|
:ZoomReset ... reset font size changes.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
1. Copy the zoom.vim script to
|
||||||
|
$HOME/vimfiles/plugin or $HOME/.vim/plugin directory.
|
||||||
|
Refer to ':help add-plugin', ':help add-global-plugin' and
|
||||||
|
':help runtimepath' for more details about Vim plugins.
|
||||||
|
|
||||||
|
2. Restart Vim.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
" vim: set ff=unix et ft=vim nowrap :
|
||||||
@@ -108,7 +108,7 @@ snippet debug
|
|||||||
LOG.debug(self.${1:method_name}.__doc__.strip())
|
LOG.debug(self.${1:method_name}.__doc__.strip())
|
||||||
snippet edbg
|
snippet edbg
|
||||||
import sys
|
import sys
|
||||||
pydevdPath = r"/mnt/data/IDE/eclipse/plugins/org.python.pydev.debug_1.6.3.2010100513/pysrc"
|
pydevdPath = r"/mnt/data/IDE/eclipse/plugins/org.python.pydev.debug_1.6.5.2011020317/pysrc"
|
||||||
if not pydevdPath in sys.path:
|
if not pydevdPath in sys.path:
|
||||||
sys.path.append(pydevdPath)
|
sys.path.append(pydevdPath)
|
||||||
import pydevd
|
import pydevd
|
||||||
|
|||||||
62
syntax/fitnesse.vim
Normal file
62
syntax/fitnesse.vim
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
" fitnesse.vim
|
||||||
|
" @author: Dan Woodward (dan DOT woodward AT gmail.com)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if version < 600
|
||||||
|
syntax clear
|
||||||
|
elseif exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
let b:fitnesseEnabled = 1
|
||||||
|
|
||||||
|
syntax sync minlines=2
|
||||||
|
|
||||||
|
syn match collapsibleSectionStart /!\*\+.*/
|
||||||
|
syn match collapsibleSectionEnd /\*\+!.*/
|
||||||
|
syn match bracesAndBrackets "|\|{\|}\|\[\|\]"
|
||||||
|
syn match bang /!/
|
||||||
|
syn match literalText /!-.\{-}-!/
|
||||||
|
syn match openCell /|[^|]\+\n/hs=s+1
|
||||||
|
syn region colapsableFold start="!\*\{1,}" end="\*!" fold transparent keepend extend
|
||||||
|
syn sync fromstart
|
||||||
|
set foldmethod=syntax
|
||||||
|
syn region cellContents start=+|+hs=s+1 end=+|+he=e-1 oneline contains=ALL
|
||||||
|
syn region styledText start=+\[+hs=s+1 end=+\]+he=e-1 oneline contains=ALL
|
||||||
|
syn region styledText2 start=+{+hs=s+1 end=+}+he=e-1 oneline contains=ALL
|
||||||
|
syn region styledText3 start=+(+hs=s+1 end=+)+he=e-1 oneline contains=ALL
|
||||||
|
syn region Comment start=/#/ end=/\n/
|
||||||
|
syn match String /"[^"]\+"/ contains=Identifier
|
||||||
|
syn match String /'[^']\+'/ contains=Identifier
|
||||||
|
syn match symbol /$\w*/
|
||||||
|
syn match extractVariable /${[^}]*}/
|
||||||
|
syn match bold /'''.*'''/
|
||||||
|
syn region heading start=/!\d/ end=/\n/
|
||||||
|
syn match widget /!\w\+[\[{(]/me=e-1,he=e-1
|
||||||
|
syn match Keyword /!define /
|
||||||
|
syn match Keyword /!include /
|
||||||
|
syn keyword Keyword scenario script Query: start check reject show Comment comment !see !include !See null
|
||||||
|
syn match scenarioVariable /@\w\+/
|
||||||
|
syn match wikiWord /\<[A-Z][a-z]\+[A-Za-z]*[A-Z]\+[A-Za-z]*\>/
|
||||||
|
|
||||||
|
highlight link collapsibleSectionStart Delimiter
|
||||||
|
highlight link collapsibleSectionEnd Delimiter
|
||||||
|
highlight link bracesAndBrackets Delimiter
|
||||||
|
highlight link cellContents Macro
|
||||||
|
highlight link bang Delimiter
|
||||||
|
highlight link styledText Type
|
||||||
|
highlight link styledText2 Type
|
||||||
|
highlight link styledText3 Type
|
||||||
|
highlight link literalText Special
|
||||||
|
highlight link symbol Identifier
|
||||||
|
highlight link extractVariable Identifier
|
||||||
|
highlight link bold Constant
|
||||||
|
highlight link heading Constant
|
||||||
|
highlight link scenarioVariable Identifier
|
||||||
|
highlight link styleMarker Special
|
||||||
|
highlight link widget Statement
|
||||||
|
highlight link wikiWord Underlined
|
||||||
|
highlight link openCell Error
|
||||||
|
|
||||||
|
let b:current_syntax = "fitnesse"
|
||||||
Reference in New Issue
Block a user