Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

save vim configuratio

  • Loading branch information...
commit 0c094240e57f6f7f9dc4473fe2f3f0788c93ff06 1 parent 168221d
@rrodrigues authored
View
63 colors/emacs.vim
@@ -0,0 +1,63 @@
+" Vim color file
+" Maintainer: Michael Piefel <piefel@informatik.hu-berlin.de>
+" Last Change: 2001 Aug 16
+" Licence: Public Domain
+
+" This color scheme uses a White background. It's based on Bram's
+" morning theme, but doesn't try to work for non-GUI editing.
+"
+" It's supposed to look like the Emacs standard colors, at least
+" for C. But Emacs has different categories, so it's not very good.
+
+" First remove all existing highlighting.
+set background=light
+hi clear
+if exists("syntax_on")
+ syntax reset
+endif
+
+let colors_name = "emacs"
+
+hi Normal guifg=Black guibg=White
+
+" Groups used in the 'highlight' and 'guicursor' options default value.
+hi ErrorMsg guibg=Red guifg=White
+hi IncSearch gui=reverse
+hi ModeMsg gui=bold
+hi StatusLine gui=reverse,bold
+hi StatusLineNC gui=reverse
+hi VertSplit gui=reverse
+hi Visual gui=reverse guifg=Grey guibg=fg
+hi VisualNOS gui=underline,bold
+hi DiffText gui=bold guibg=Red
+hi Cursor guibg=Black guifg=NONE
+hi lCursor guibg=Cyan guifg=NONE
+hi Directory guifg=Blue
+hi LineNr guifg=Brown
+hi MoreMsg gui=bold guifg=SeaGreen
+hi NonText gui=bold guifg=Blue guibg=grey90
+hi Question gui=bold guifg=SeaGreen
+hi Search guibg=Yellow guifg=NONE
+hi SpecialKey guifg=Blue
+hi Title gui=bold guifg=Magenta
+hi WarningMsg guifg=Red
+hi WildMenu guibg=Yellow guifg=Black
+hi Folded guibg=White guifg=DarkBlue
+hi FoldColumn guibg=Grey guifg=DarkBlue
+hi DiffAdd guibg=LightBlue
+hi DiffChange guibg=LightMagenta
+hi DiffDelete gui=bold guifg=Blue guibg=LightCyan
+
+" Colors for syntax highlighting
+hi Comment guifg=#AC2020 guibg=White
+hi Constant guifg=#C28F8F guibg=White
+hi PreProc guifg=#D569D5 guibg=White
+hi Statement gui=NONE guifg=#9C20EE guibg=White
+hi Type guifg=#9C20EE guibg=White
+hi Special guifg=SlateBlue guibg=White
+hi Ignore guifg=White
+
+" Some specials (override hilinks)
+
+
+" vim: sw=2
View
103 colors/guardian.vim
@@ -0,0 +1,103 @@
+" Vim color file
+" Maintainer: Anders Korte <anderskorte@eml.cc>
+" Last Change: 6 Apr 2005
+
+" Guardian color scheme 1.2
+
+" Rich-syntax colors for source editing and other vimming.
+
+set background=dark
+hi clear
+syntax reset
+
+" Colors for the User Interface.
+
+hi Cursor guibg=#cc4455 guifg=white gui=bold ctermbg=4 ctermfg=15
+hi link CursorIM Cursor
+hi Normal guibg=#332211 guifg=white gui=none ctermbg=0 ctermfg=15
+hi NonText guibg=#445566 guifg=#ffeecc gui=bold ctermbg=8 ctermfg=14
+hi Visual guibg=#557799 guifg=white gui=none ctermbg=9 ctermfg=15
+
+hi Linenr guibg=bg guifg=#aaaaaa gui=none ctermbg=bg ctermfg=7
+
+hi Directory guibg=bg guifg=#337700 gui=none ctermbg=bg ctermfg=10
+
+hi IncSearch guibg=#0066cc guifg=white gui=none ctermbg=1 ctermfg=15
+hi link Seach IncSearch
+
+hi SpecialKey guibg=bg guifg=fg gui=none ctermbg=bg ctermfg=fg
+hi Titled guibg=bg guifg=fg gui=none ctermbg=bg ctermfg=fg
+
+hi ErrorMsg guibg=bg guifg=#ff0000 gui=bold ctermbg=bg ctermfg=12
+hi ModeMsg guibg=bg guifg=#ffeecc gui=none ctermbg=bg ctermfg=14
+hi link MoreMsg ModeMsg
+hi Question guibg=bg guifg=#ccffcc gui=bold ctermbg=bg ctermfg=10
+hi link WarningMsg ErrorMsg
+
+hi StatusLine guibg=#ffeecc guifg=black gui=bold ctermbg=14 ctermfg=0
+hi StatusLineNC guibg=#cc4455 guifg=white gui=none ctermbg=4 ctermfg=11
+hi VertSplit guibg=#cc4455 guifg=white gui=none ctermbg=4 ctermfg=11
+
+hi DiffAdd guibg=#446688 guifg=fg gui=none ctermbg=1 ctermfg=fg
+hi DiffChange guibg=#558855 guifg=fg gui=none ctermbg=2 ctermfg=fg
+hi DiffDelete guibg=#884444 guifg=fg gui=none ctermbg=4 ctermfg=fg
+hi DiffText guibg=#884444 guifg=fg gui=bold ctermbg=4 ctermfg=fg
+
+" Colors for Syntax Highlighting.
+
+hi Comment guibg=#334455 guifg=#dddddd gui=none ctermbg=8 ctermfg=7
+
+hi Constant guibg=bg guifg=white gui=bold ctermbg=8 ctermfg=15
+hi String guibg=bg guifg=#ffffcc gui=italic ctermbg=bg ctermfg=14
+hi Character guibg=bg guifg=#ffffcc gui=bold ctermbg=bg ctermfg=14
+hi Number guibg=bg guifg=#bbddff gui=bold ctermbg=1 ctermfg=15
+hi Boolean guibg=bg guifg=#bbddff gui=none ctermbg=1 ctermfg=15
+hi Float guibg=bg guifg=#bbddff gui=bold ctermbg=1 ctermfg=15
+
+hi Identifier guibg=bg guifg=#ffddaa gui=bold ctermbg=bg ctermfg=12
+hi Function guibg=bg guifg=#ffddaa gui=bold ctermbg=bg ctermfg=12
+hi Statement guibg=bg guifg=#ffffcc gui=bold ctermbg=bg ctermfg=14
+
+hi Conditional guibg=bg guifg=#ff6666 gui=bold ctermbg=bg ctermfg=12
+hi Repeat guibg=bg guifg=#ff9900 gui=bold ctermbg=4 ctermfg=14
+hi Label guibg=bg guifg=#ffccff gui=bold ctermbg=bg ctermfg=13
+hi Operator guibg=bg guifg=#cc9966 gui=bold ctermbg=6 ctermfg=15
+hi Keyword guibg=bg guifg=#66ffcc gui=bold ctermbg=bg ctermfg=10
+hi Exception guibg=bg guifg=#66ffcc gui=bold ctermbg=bg ctermfg=10
+
+hi PreProc guibg=bg guifg=#ffcc99 gui=bold ctermbg=4 ctermfg=14
+hi Include guibg=bg guifg=#99cc99 gui=bold ctermbg=bg ctermfg=10
+hi link Define Include
+hi link Macro Include
+hi link PreCondit Include
+
+hi Type guibg=bg guifg=#ff7788 gui=bold ctermbg=bg ctermfg=12
+hi StorageClass guibg=bg guifg=#99cc99 gui=bold ctermbg=bg ctermfg=10
+hi Structure guibg=bg guifg=#99ff99 gui=bold ctermbg=bg ctermfg=10
+hi Typedef guibg=bg guifg=#99cc99 gui=italic ctermbg=bg ctermfg=10
+
+hi Special guibg=bg guifg=#bbddff gui=bold ctermbg=1 ctermfg=15
+hi SpecialChar guibg=bg guifg=#bbddff gui=bold ctermbg=1 ctermfg=15
+hi Tag guibg=bg guifg=#bbddff gui=bold ctermbg=1 ctermfg=15
+hi Delimiter guibg=bg guifg=fg gui=bold ctermbg=1 ctermfg=fg
+hi SpecialComment guibg=#334455 guifg=#dddddd gui=italic ctermbg=1 ctermfg=15
+hi Debug guibg=bg guifg=#ff9999 gui=none ctermbg=8 ctermfg=12
+
+hi Underlined guibg=bg guifg=#99ccff gui=underline ctermbg=bg ctermfg=9 cterm=underline
+
+hi Title guibg=#445566 guifg=white gui=bold ctermbg=1 ctermfg=15
+hi Ignore guibg=bg guifg=#cccccc gui=italic ctermbg=bg ctermfg=8
+hi Error guibg=#ff0000 guifg=white gui=bold ctermbg=12 ctermfg=15
+hi Todo guibg=#556677 guifg=#ff0000 gui=bold ctermbg=1 ctermfg=12
+
+hi htmlH2 guibg=bg guifg=fg gui=bold ctermbg=8 ctermfg=fg
+hi link htmlH3 htmlH2
+hi link htmlH4 htmlH3
+hi link htmlH5 htmlH4
+hi link htmlH6 htmlH5
+
+" And finally.
+
+let g:colors_name = "Guardian"
+let colors_name = "Guardian"
+
View
51 colors/wombat.vim
@@ -0,0 +1,51 @@
+" Maintainer: Lars H. Nielsen (dengmao@gmail.com)
+" Last Change: January 22 2007
+
+set background=dark
+
+hi clear
+
+if exists("syntax_on")
+ syntax reset
+endif
+
+let colors_name = "wombat"
+
+
+" Vim >= 7.0 specific colors
+if version >= 700
+ hi CursorLine guibg=#2d2d2d
+ hi CursorColumn guibg=#2d2d2d
+ hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold
+ hi Pmenu guifg=#f6f3e8 guibg=#444444
+ hi PmenuSel guifg=#000000 guibg=#cae682
+endif
+
+" General colors
+hi Cursor guifg=NONE guibg=#656565 gui=none
+hi Normal guifg=#f6f3e8 guibg=#242424 gui=none
+hi NonText guifg=#808080 guibg=#303030 gui=none
+hi LineNr guifg=#857b6f guibg=#000000 gui=none
+hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic
+hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none
+hi VertSplit guifg=#444444 guibg=#444444 gui=none
+hi Folded guibg=#384048 guifg=#a0a8b0 gui=none
+hi Title guifg=#f6f3e8 guibg=NONE gui=bold
+hi Visual guifg=#f6f3e8 guibg=#444444 gui=none
+hi SpecialKey guifg=#808080 guibg=#343434 gui=none
+
+" Syntax highlighting
+hi Comment guifg=#99968b gui=italic
+hi Todo guifg=#8f8f8f gui=italic
+hi Constant guifg=#e5786d gui=none
+hi String guifg=#95e454 gui=italic
+hi Identifier guifg=#cae682 gui=none
+hi Function guifg=#cae682 gui=none
+hi Type guifg=#cae682 gui=none
+hi Statement guifg=#8ac6f2 gui=none
+hi Keyword guifg=#8ac6f2 gui=none
+hi PreProc guifg=#e5786d gui=none
+hi Number guifg=#e5786d gui=none
+hi Special guifg=#e7f6da gui=none
+
+
View
241 plugin/autoclose.vim
@@ -0,0 +1,241 @@
+" File: autoclose.vim
+" Author: Karl Guertin <grayrest@gr.ayre.st>
+" Version: 1.2
+" Last Modified: June 18, 2009
+" Description: AutoClose, closes what's opened.
+"
+" This plugin closes opened parenthesis, braces, brackets, quotes as you
+" type them. As of 1.1, if you type the open brace twice ({{), the closing
+" brace will be pushed down to a new line.
+"
+" You can enable or disable this plugin by typing \a (or <Leader>a if you
+" changed your Leader char). You can define your own mapping and will need
+" to do so if you have something else mapped to \a since this plugin won't
+" clobber your mapping. Here's how to map \x:
+"
+" nmap <Leader>x <Plug>ToggleAutoCloseMappings
+"
+" You'll also probably want to know you can type <C-V> (<C-Q> if mswin is
+" set) and the next character you type doesn't have mappings applied. This
+" is useful when you want to insert only an opening paren or something.
+"
+" NOTE: If you're using this on a terminal and your arrow keys are broken,
+" be sure to :set ttimeout and :set ttimeoutlen=100
+"
+" Version Changes: --------------------------------------------------{{{2
+" 1.2 -- Fixed some edge cases where double the closing characters are
+" entered when exiting insert mode.
+" Finally (!) reproduced the arrow keys problem other people were
+" running into and fixed.
+" Typing a closing character will now behave consistently (jump
+" out) regardless of the plugin's internal state.
+"
+" As a part of the close fix, I've opted to not try tracking the
+" position of the closing characters through all the things that
+" could be done with them, so arrowing/jumping around and not
+" winding up back where you started will cause the input to not be
+" repeatable.
+" June 18, 2009
+" 1.1.2 -- Fixed a mapping typo and caught a double brace problem,
+" September 20, 2007
+" 1.1.1 -- Missed a bug in 1.1, September 19, 2007
+" 1.1 -- When not inserting at the end, previous version would eat chars
+" at end of line, added double open->newline, September 19, 2007
+" 1.0.1 -- Cruft from other parts of the mapping, knew I shouldn't have
+" released the first as 1.0, April 3, 2007
+
+" Setup -----------------------------------------------------{{{2
+if exists('g:autoclose_loaded') || &cp
+ finish
+endif
+
+
+let g:autoclose_loaded = 1
+let s:cotstate = &completeopt
+
+if !exists('g:autoclose_on')
+ let g:autoclose_on = 1
+endif
+
+" (Toggle) Mappings -----------------------------{{{1
+"
+nmap <Plug>ToggleAutoCloseMappings :call <SID>ToggleAutoCloseMappings()<CR>
+if (!hasmapto( '<Plug>ToggleAutoCloseMappings', 'n' ))
+ nmap <unique> <Leader>a <Plug>ToggleAutoCloseMappings
+endif
+fun <SID>ToggleAutoCloseMappings() " --- {{{2
+ if g:autoclose_on
+ iunmap "
+ iunmap '
+ iunmap (
+ iunmap )
+ iunmap [
+ iunmap ]
+ iunmap {
+ iunmap }
+ iunmap <BS>
+ iunmap <C-h>
+ iunmap <Esc>
+ let g:autoclose_on = 0
+ echo "AutoClose Off"
+ else
+ inoremap <silent> " <C-R>=<SID>QuoteDelim('"')<CR>
+ inoremap <silent> ' <C-R>=match(getline('.')[col('.') - 2],'\w') == 0 && getline('.')[col('.')-1] != "'" ? "'" : <SID>QuoteDelim("'")<CR>
+ inoremap <silent> ( (<C-R>=<SID>CloseStackPush(')')<CR>
+ inoremap ) <C-R>=<SID>CloseStackPop(')')<CR>
+ inoremap <silent> [ [<C-R>=<SID>CloseStackPush(']')<CR>
+ inoremap <silent> ] <C-R>=<SID>CloseStackPop(']')<CR>
+ "inoremap <silent> { {<C-R>=<SID>CloseStackPush('}')<CR>
+ inoremap <silent> { <C-R>=<SID>OpenSpecial('{','}')<CR>
+ inoremap <silent> } <C-R>=<SID>CloseStackPop('}')<CR>
+ inoremap <silent> <BS> <C-R>=<SID>OpenCloseBackspace()<CR>
+ inoremap <silent> <C-h> <C-R>=<SID>OpenCloseBackspace()<CR>
+ inoremap <silent> <Esc> <C-R>=<SID>CloseStackPop('')<CR><Esc>
+ inoremap <silent> <C-[> <C-R>=<SID>CloseStackPop('')<CR><C-[>
+ "the following simply creates an ambiguous mapping so vim fully
+ "processes the escape sequence for terminal keys, see 'ttimeout' for a
+ "rough explanation, this just forces it to work
+ if &term[:4] == "xterm"
+ inoremap <silent> <C-[>OC <RIGHT>
+ endif
+ let g:autoclose_on = 1
+ if a:0 == 0
+ "this if is so this message doesn't show up at load
+ echo "AutoClose On"
+ endif
+ endif
+endf
+let s:closeStack = []
+
+" AutoClose Utilities -----------------------------------------{{{1
+function <SID>OpenSpecial(ochar,cchar) " ---{{{2
+ let line = getline('.')
+ let col = col('.') - 2
+ "echom string(col).':'.line[:(col)].'|'.line[(col+1):]
+ if a:ochar == line[(col)] && a:cchar == line[(col+1)] "&& strlen(line) - (col) == 2
+ "echom string(s:closeStack)
+ while len(s:closeStack) > 0
+ call remove(s:closeStack, 0)
+ endwhile
+ return "\<esc>a\<CR>;\<CR>".a:cchar."\<esc>\"_xk$\"_xa"
+ endif
+ return a:ochar.<SID>CloseStackPush(a:cchar)
+endfunction
+
+function <SID>CloseStackPush(char) " ---{{{2
+ "echom "push"
+ let line = getline('.')
+ let col = col('.')-2
+ if (col) < 0
+ call setline('.',a:char.line)
+ else
+ "echom string(col).':'.line[:(col)].'|'.line[(col+1):]
+ call setline('.',line[:(col)].a:char.line[(col+1):])
+ endif
+ call insert(s:closeStack, a:char)
+ "echom join(s:closeStack,'').' -- '.a:char
+ return ''
+endf
+
+function <SID>JumpOut(char) " ----------{{{2
+ let column = col('.') - 1
+ let line = getline('.')
+ let mcol = match(line[column :], a:char)
+ if a:char != '' && mcol >= 0
+ "Yeah, this is ugly but vim actually requires each to be special
+ "cased to avoid screen flashes/not doing the right thing.
+ echom len(line).' '.(column+mcol)
+ if line[column] == a:char
+ return "\<Right>"
+ elseif column+mcol == len(line)-1
+ return "\<C-O>A"
+ else
+ return "\<C-O>f".a:char."\<Right>"
+ endif
+ else
+ return a:char
+ endif
+endf
+function <SID>CloseStackPop(char) " ---{{{2
+ "echom "pop"
+ if(a:char == '')
+ pclose
+ endif
+ if len(s:closeStack) == 0
+ return <SID>JumpOut(a:char)
+ endif
+ let column = col('.') - 1
+ let line = getline('.')
+ let popped = ''
+ let lastpop = ''
+ "echom join(s:closeStack,'').' || '.lastpop
+ while len(s:closeStack) > 0 && ((lastpop == '' && popped == '') || lastpop != a:char)
+ let lastpop = remove(s:closeStack,0)
+ let popped .= lastpop
+ "echom join(s:closeStack,'').' || '.lastpop.' || '.popped
+ endwhile
+ "echom ' --> '.popped
+ if line[column : column+strlen(popped)-1] != popped
+ return <SID>JumpOut('')
+ endif
+ if column > 0
+ call setline('.',line[:column-1].line[(column+strlen(popped)):])
+ else
+ call setline('.','')
+ endif
+ return popped
+endf
+
+function <SID>QuoteDelim(char) " ---{{{2
+ let line = getline('.')
+ let col = col('.')
+ if line[col - 2] == "\\"
+ "Inserting a quoted quotation mark into the string
+ return a:char
+ elseif line[col - 1] == a:char
+ "Escaping out of the string
+ return "\<C-R>=".s:SID()."CloseStackPop(\"\\".a:char."\")\<CR>"
+ else
+ "Starting a string
+ return a:char."\<C-R>=".s:SID()."CloseStackPush(\"\\".a:char."\")\<CR>"
+ endif
+endf
+
+" The strings returned from QuoteDelim aren't in scope for <SID>, so I
+" have to fake it using this function (from the Vim help, but tweaked)
+function s:SID()
+ return matchstr(expand('<sfile>'), '<SNR>\d\+_\zeSID$')
+endfun
+
+function <SID>OpenCloseBackspace() " ---{{{2
+ "if pumvisible()
+ " pclose
+ " call <SID>StopOmni()
+ " return "\<C-E>"
+ "else
+ let curline = getline('.')
+ let curpos = col('.')
+ let curletter = curline[curpos-1]
+ let prevletter = curline[curpos-2]
+ if (prevletter == '"' && curletter == '"') ||
+\ (prevletter == "'" && curletter == "'") ||
+\ (prevletter == "(" && curletter == ")") ||
+\ (prevletter == "{" && curletter == "}") ||
+\ (prevletter == "[" && curletter == "]")
+ if len(s:closeStack) > 0
+ call remove(s:closeStack,0)
+ endif
+ return "\<Delete>\<BS>"
+ else
+ return "\<BS>"
+ endif
+ "endif
+endf
+
+" Initialization ----------------------------------------{{{1
+if g:autoclose_on
+ let g:autoclose_on = 0
+ silent call <SID>ToggleAutoCloseMappings()
+endif
+" vim: set ft=vim ff=unix et sw=4 ts=4 :
+" vim600: set foldmethod=marker foldmarker={{{,}}} foldlevel=1 :
Please sign in to comment.
Something went wrong with that request. Please try again.