This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" return regexp pattern that matches a comment based on commentstring. | |
function! s:getCommentStringPattern() | |
let pattern = escape(&commentstring, '^$[].*\~ ') | |
let pattern = substitute(pattern, '%s', '.*', 'g') | |
return pattern | |
endfunction | |
" align comment(s) based on commentstring. | |
autocmd vimrc-autocmd BufEnter * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My Vim files have moved to https://github.com/Phize/vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd BufFilePost \[ref-*:*\] call Pl#UpdateStatusline(1) | |
call Pl#Statusline( | |
\ Pl#Match('bufname("%")', '^\[ref-(.+):(.*)\]$'), | |
\ | |
\ Pl#Segment(' %{"Ref"} ', | |
\ Pl#HiCurrent( Pl#FG(231), Pl#BG(240), Pl#Attr('bold')), | |
\ Pl#HiInsert( Pl#FG(231), Pl#BG( 31), Pl#Attr('bold')), | |
\ Pl#HiNonCurrent(Pl#FG(244), Pl#BG(234), Pl#Attr('bold')) | |
\ ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call Pl#Statusline( | |
\ Pl#Match('bufname("%")', '^\*unite\* - .*\@\d+$'), | |
\ | |
\ Pl#Segment(' %{"Unite"} ', | |
\ Pl#HiCurrent( Pl#FG(231), Pl#BG(240), Pl#Attr('bold')), | |
\ Pl#HiInsert( Pl#FG(231), Pl#BG( 31), Pl#Attr('bold')), | |
\ Pl#HiNonCurrent(Pl#FG(244), Pl#BG(234), Pl#Attr('bold')) | |
\ ), | |
\ | |
\ Pl#Segment('%< %{substitute(bufname("%"), "\^\\v\\*unite\\* - \(\.\+\)\\@\\d\+\$", "\\u\\1", "")} list', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# keyword plugin | |
# ==== | |
# | |
# config example: | |
# | |
# Earthquake.config[:keyword] = {:pattern => /ruby|rails|earthquake/i} | |
# | |
Earthquake.init do | |
_ = config[:keyword] ||= {} | |
_[:notify] = true if _[:notify].nil? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Ctags (patch): http://designtomarkup.com/vim/taglist-ctags-css-patch | |
" Tagbar : https://github.com/majutsushi/tagbar | |
" Screenshot : http://twitpic.com/7zq4d7 | |
"Tagbar | |
noremap <silent> <Leader>t :<C-u>TagbarToggle<CR> | |
let g:tagbar_type_css = { | |
\ 'ctagstype' : 'Css', | |
\ 'kinds' : [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diagram { | |
default_fontsize = 13; // default value is 11 | |
default_linecolor = "#999"; // default value is black | |
node_width = 64; // default value is 128 | |
node_height = 20; // default value is 40 | |
span_width = 16; // default value is 64 | |
span_height = 10; // default value is 40 | |
// classes for node. | |
class folder [color = "#fc0", linecolor = "#c90"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'csslint' | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo_save = &cpo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'rhinoed_jslint' | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo_save = &cpo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'jshint' | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo_save = &cpo |