Permalink
Browse files

[vim] current status

  • Loading branch information...
1 parent 5f9496b commit d7714e75744291916b0c865c840aa955abb85878 @sickill committed Jan 6, 2013
View
@@ -1,6 +1,7 @@
" Font for gui
-set guifont=Droid\ Sans\ Mono\ 9
-set linespace=1
+" set guifont=Inconsolata\ 11
+set guifont=DejaVu\ Sans\ Mono\ 9
+" set linespace=1
set guioptions-=R
set guioptions-=r
@@ -26,10 +27,12 @@ set gtt=%F
set vb t_vb= " no visual nor audio bell
" exe "colors " . colors_name
-" colors Sunburst
+colors Sunburst
" colors Twilight
" colors Monokai
" colors jellybeans
+" set background=dark
+" colors solarized
autocmd VimEnter * call s:CdIfDirectory(expand("<amatch>"))
@@ -1,2 +1,4 @@
" fold by indent
setlocal foldmethod=indent
+" setlocal foldlevel=1
+" setlocal foldenable
@@ -0,0 +1,5 @@
+setlocal omnifunc=htmlcomplete#CompleteTags
+setlocal commentstring={{!%s}}
+
+" auto closing of tags
+inoremap <buffer> </ </<C-x><C-o><ESC>s>
@@ -0,0 +1 @@
+setl commentstring=#\ %s
@@ -1 +0,0 @@
-source ~/.vim/after/indent/html.vim
@@ -1 +0,0 @@
-source ~/.vim/after/indent/html.vim
@@ -1,4 +1,6 @@
" indent in <li>, <p> etc
-if g:html_indent_tags !~ '\\|p\>'
- let g:html_indent_tags .= '\|p\|li\|dt\|dd'
+if exists('g:html_indent_tags')
+ if g:html_indent_tags !~ '\\|p\>'
+ let g:html_indent_tags .= '\|p\|li\|dt\|dd'
+ endif
endif
@@ -1 +0,0 @@
-source ~/.vim/after/indent/html.vim
View
@@ -0,0 +1,107 @@
+" Vim color file
+" Converted from Textmate theme GitHub using Coloration v0.3.2 (http://github.com/sickill/coloration)
+
+set background=dark
+highlight clear
+
+if exists("syntax_on")
+ syntax reset
+endif
+
+let g:colors_name = "GitHub"
+
+hi Cursor ctermfg=231 ctermbg=0 cterm=NONE guifg=#f8f8ff guibg=#000000 gui=NONE
+hi Visual ctermfg=NONE ctermbg=153 cterm=NONE guifg=NONE guibg=#bcd5fa gui=NONE
+hi CursorLine ctermfg=NONE ctermbg=188 cterm=NONE guifg=NONE guibg=#dfdfe6 gui=NONE
+hi CursorColumn ctermfg=NONE ctermbg=188 cterm=NONE guifg=NONE guibg=#dfdfe6 gui=NONE
+hi ColorColumn ctermfg=NONE ctermbg=188 cterm=NONE guifg=NONE guibg=#dfdfe6 gui=NONE
+hi LineNr ctermfg=244 ctermbg=188 cterm=NONE guifg=#7c7c80 guibg=#dfdfe6 gui=NONE
+hi VertSplit ctermfg=249 ctermbg=249 cterm=NONE guifg=#b0b0b5 guibg=#b0b0b5 gui=NONE
+hi MatchParen ctermfg=0 ctermbg=NONE cterm=underline guifg=#000000 guibg=NONE gui=underline
+hi StatusLine ctermfg=0 ctermbg=249 cterm=bold guifg=#000000 guibg=#b0b0b5 gui=bold
+hi StatusLineNC ctermfg=0 ctermbg=249 cterm=NONE guifg=#000000 guibg=#b0b0b5 gui=NONE
+hi Pmenu ctermfg=60 ctermbg=NONE cterm=bold guifg=#445588 guibg=NONE gui=bold
+hi PmenuSel ctermfg=NONE ctermbg=153 cterm=NONE guifg=NONE guibg=#bcd5fa gui=NONE
+hi IncSearch ctermfg=231 ctermbg=161 cterm=NONE guifg=#f8f8ff guibg=#dd1144 gui=NONE
+hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
+hi Directory ctermfg=126 ctermbg=NONE cterm=NONE guifg=#aa2c8c guibg=NONE gui=NONE
+hi Folded ctermfg=102 ctermbg=231 cterm=NONE guifg=#999988 guibg=#f8f8ff gui=NONE
+
+hi Normal ctermfg=0 ctermbg=231 cterm=NONE guifg=#000000 guibg=#f8f8ff gui=NONE
+hi Boolean ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi Character ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi Comment ctermfg=102 ctermbg=NONE cterm=NONE guifg=#999988 guibg=NONE gui=italic
+hi Conditional ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi Define ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi DiffAdd ctermfg=0 ctermbg=149 cterm=bold guifg=#000000 guibg=#a0e65d gui=bold
+hi DiffDelete ctermfg=203 ctermbg=NONE cterm=NONE guifg=#f15254 guibg=NONE gui=NONE
+hi DiffChange ctermfg=0 ctermbg=152 cterm=NONE guifg=#000000 guibg=#b5cce7 gui=NONE
+hi DiffText ctermfg=0 ctermbg=74 cterm=bold guifg=#000000 guibg=#729fcf gui=bold
+hi ErrorMsg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi WarningMsg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi Float ctermfg=30 ctermbg=NONE cterm=NONE guifg=#009999 guibg=NONE gui=NONE
+hi Function ctermfg=88 ctermbg=NONE cterm=bold guifg=#990000 guibg=NONE gui=bold
+hi Identifier ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi Keyword ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi Label ctermfg=161 ctermbg=NONE cterm=NONE guifg=#dd1144 guibg=NONE gui=NONE
+hi NonText ctermfg=250 ctermbg=189 cterm=NONE guifg=#bfbfbf guibg=#ececf2 gui=NONE
+hi Number ctermfg=30 ctermbg=NONE cterm=NONE guifg=#009999 guibg=NONE gui=NONE
+hi Operator ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi PreProc ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi Special ctermfg=0 ctermbg=NONE cterm=NONE guifg=#000000 guibg=NONE gui=NONE
+hi SpecialKey ctermfg=250 ctermbg=188 cterm=NONE guifg=#bfbfbf guibg=#dfdfe6 gui=NONE
+hi Statement ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi StorageClass ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi String ctermfg=161 ctermbg=NONE cterm=NONE guifg=#dd1144 guibg=NONE gui=NONE
+hi Tag ctermfg=18 ctermbg=NONE cterm=NONE guifg=#121289 guibg=NONE gui=NONE
+hi Title ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi Todo ctermfg=102 ctermbg=NONE cterm=inverse,bold guifg=#999988 guibg=NONE gui=inverse,bold,italic
+hi Type ctermfg=60 ctermbg=NONE cterm=bold guifg=#445588 guibg=NONE gui=bold
+hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
+hi rubyClass ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi rubyFunction ctermfg=88 ctermbg=NONE cterm=bold guifg=#990000 guibg=NONE gui=bold
+hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubySymbol ctermfg=126 ctermbg=NONE cterm=NONE guifg=#aa2c8c guibg=NONE gui=NONE
+hi rubyConstant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyStringDelimiter ctermfg=161 ctermbg=NONE cterm=NONE guifg=#dd1144 guibg=NONE gui=NONE
+hi rubyBlockParameter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyInstanceVariable ctermfg=30 ctermbg=NONE cterm=NONE guifg=#108888 guibg=NONE gui=NONE
+hi rubyInclude ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi rubyGlobalVariable ctermfg=30 ctermbg=NONE cterm=NONE guifg=#108888 guibg=NONE gui=NONE
+hi rubyRegexp ctermfg=28 ctermbg=NONE cterm=NONE guifg=#009926 guibg=NONE gui=NONE
+hi rubyRegexpDelimiter ctermfg=28 ctermbg=NONE cterm=NONE guifg=#009926 guibg=NONE gui=NONE
+hi rubyEscape ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyControl ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyOperator ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi rubyException ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi rubyPseudoVariable ctermfg=30 ctermbg=NONE cterm=NONE guifg=#108888 guibg=NONE gui=NONE
+hi rubyRailsUserClass ctermfg=30 ctermbg=NONE cterm=NONE guifg=#008080 guibg=NONE gui=NONE
+hi rubyRailsARAssociationMethod ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyRailsARMethod ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyRailsRenderMethod ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyRailsMethod ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi erubyDelimiter ctermfg=246 ctermbg=NONE cterm=bold guifg=#999999 guibg=NONE gui=bold
+hi erubyComment ctermfg=102 ctermbg=NONE cterm=NONE guifg=#999988 guibg=NONE gui=italic
+hi erubyRailsMethod ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlEndTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlSpecialChar ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi javaScriptFunction ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi javaScriptRailsFunction ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi yamlKey ctermfg=18 ctermbg=NONE cterm=NONE guifg=#121289 guibg=NONE gui=NONE
+hi yamlAnchor ctermfg=30 ctermbg=NONE cterm=NONE guifg=#108888 guibg=NONE gui=NONE
+hi yamlAlias ctermfg=30 ctermbg=NONE cterm=NONE guifg=#108888 guibg=NONE gui=NONE
+hi yamlDocumentHeader ctermfg=161 ctermbg=NONE cterm=NONE guifg=#dd1144 guibg=NONE gui=NONE
+hi cssURL ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi cssFunctionName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi cssColor ctermfg=30 ctermbg=NONE cterm=NONE guifg=#009999 guibg=NONE gui=NONE
+hi cssPseudoClassId ctermfg=0 ctermbg=NONE cterm=NONE guifg=#000000 guibg=NONE gui=NONE
+hi cssClassName ctermfg=60 ctermbg=NONE cterm=bold guifg=#445588 guibg=NONE gui=bold
+hi cssValueLength ctermfg=30 ctermbg=NONE cterm=NONE guifg=#009999 guibg=NONE gui=NONE
+hi cssCommonAttr ctermfg=0 ctermbg=NONE cterm=bold guifg=#000000 guibg=NONE gui=bold
+hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
View
@@ -17,13 +17,13 @@ hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui
hi ColorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
hi LineNr ctermfg=102 ctermbg=237 cterm=NONE guifg=#90908a guibg=#3c3d37 gui=NONE
hi VertSplit ctermfg=241 ctermbg=241 cterm=NONE guifg=#64645e guibg=#64645e gui=NONE
-hi MatchParen ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi MatchParen ctermfg=197 ctermbg=NONE cterm=underline guifg=#f92672 guibg=NONE gui=underline
hi StatusLine ctermfg=231 ctermbg=241 cterm=bold guifg=#f8f8f2 guibg=#64645e gui=bold
hi StatusLineNC ctermfg=231 ctermbg=241 cterm=NONE guifg=#f8f8f2 guibg=#64645e gui=NONE
hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
-hi IncSearch ctermfg=NONE ctermbg=53 cterm=NONE guifg=NONE guibg=#6c273c gui=NONE
-hi Search ctermfg=NONE ctermbg=53 cterm=NONE guifg=NONE guibg=#6c273c gui=NONE
+hi IncSearch ctermfg=235 ctermbg=186 cterm=NONE guifg=#272822 guibg=#e6db74 gui=NONE
+hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Folded ctermfg=242 ctermbg=235 cterm=NONE guifg=#75715e guibg=#272822 gui=NONE
@@ -34,6 +34,12 @@ hi Comment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
hi Conditional ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi Define ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold
+hi diffAdded ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold
+hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE
+hi diffRemoved ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE
+hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#243955 gui=NONE
+hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold
hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
View
@@ -0,0 +1 @@
+au BufRead,BufNewFile .fonts.conf.d/* set ft=xml
View
@@ -0,0 +1,62 @@
+function! WrapForTmux(s)
+ if !exists('$TMUX')
+ return a:s
+ endif
+
+ let tmux_start = "\<Esc>Ptmux;"
+ let tmux_end = "\<Esc>\\"
+
+ return tmux_start . substitute(a:s, "\<Esc>", "\<Esc>\<Esc>", 'g') . tmux_end
+endfunction
+
+" on enter/leave termcap mode (on vim start/quit ?)
+" let &t_ti = WrapForTmux("\<Esc>[?2004h") . &t_ti
+" let &t_te = WrapForTmux("\<Esc>[?2004l") . &t_te
+
+" on enter/leave insert mode
+let &t_SI .= WrapForTmux("\<Esc>[?2004h")
+let &t_EI .= WrapForTmux("\<Esc>[?2004l")
+
+function! XTermPasteBegin(ret)
+ set pastetoggle=<Esc>[201~
+ set paste
+ return a:ret
+endfunction!!!
+
+" inoremap <esc> <esc><nop>
+inoremap <special> <expr> <Esc>[200~ XTermPasteBegin("")
+
+" execute "set <f28>=\<Esc>[200~"
+" execute "set <f29>=\<Esc>[201~"
+" map <expr> <f28> XTermPasteBegin("i")
+" imap <expr> <f28> XTermPasteBegin("")
+" vmap <expr> <f28> XTermPasteBegin("c")
+" cmap <f28> <nop>
+" cmap <f29> <nop>
+
+" if &term =~ "xterm"
+ " let &t_ti .= "\e[?2004h"
+ " let &t_te .= "\e[?2004l"
+ " let &pastetoggle = "\e[201~"
+
+ " function! XTermPasteBegin(ret)
+ " set paste
+ " return a:ret
+ " endfunction
+
+ " noremap <special> <expr> <Esc>[200~ XTermPasteBegin("0i")
+ " inoremap <special> <expr> <Esc>[200~ XTermPasteBegin("")
+ " cnoremap <special> <Esc>[200~ <nop>
+ " cnoremap <special> <Esc>[201~ <nop>
+" endif
+
+" let &t_SI .= "\e[?2004h"
+" let &t_EI .= "\e[?2004l"
+" let &pastetoggle = "\e[201~"
+
+" function! XTermPasteBegin(ret)
+" set paste
+" return a:ret
+" endfunction
+
+" inoremap <special> <expr> <Esc>[200~ XTermPasteBegin("")
View
@@ -0,0 +1,2 @@
+#!/bin/bash
+
Oops, something went wrong.

0 comments on commit d7714e7

Please sign in to comment.