Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
199 additions
and
19 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
snippet vimhelp "vim help text" | ||
*${1:hello}.txt* ${2:asynchronous execution plugin for Vim} | ||
|
||
============================================================================== | ||
INTRODUCTION *$1* | ||
|
||
*$1* is $2. | ||
|
||
============================================================================== | ||
vim:tw=78:ts=8:ft=help:norl: | ||
endsnippet |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
function createNode(params) { | ||
if (typeof x === 'undefined') { | ||
this.control(); | ||
}; | ||
return true; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class MyClass < ApplicationController | ||
include EventManager | ||
|
||
before_filter :authenticate_user! | ||
|
||
# Returns something t osomeone | ||
def index | ||
@var = User.find(params[:affiliate_program_id]) | ||
@affiliate = Affiliate.new | ||
end | ||
end | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
set background=dark | ||
hi clear | ||
if exists("syntax_on") | syntax reset | endif | ||
let g:colors_name = "lol" | ||
|
||
" Main colors | ||
hi! _normal ctermfg=none ctermbg=none | ||
hi! _mute ctermfg=black ctermbg=none | ||
|
||
" Base colors | ||
hi! _base0 ctermfg=DarkCyan | ||
hi! _base1 ctermfg=5 | ||
hi! _base2 ctermfg=13 | ||
hi! _base3 ctermfg=Cyan | ||
|
||
" Accent colors | ||
hi! _accent1 ctermfg=LightGreen | ||
hi! _accent2 ctermfg=White | ||
hi! _red ctermfg=Red | ||
|
||
hi! _highlight cterm=underline ctermbg=black gui=underline | ||
|
||
" General colors | ||
hi! link Normal _normal | ||
hi! link NonText _mute | ||
hi! link LineNr _mute | ||
hi! link Statement _mute " class, return, ... | ||
hi! link Ignore _mute " ? | ||
hi! link Search _highlight " search highlight | ||
hi! link Comment _base0 " comments | ||
hi! link Constant _base1 " string, chars, bool, ... | ||
hi! link Special _base1 " prototype, doctags, throw | ||
hi! link Operator _base2 " ( ) = typeof | ||
hi! link PreProc _base2 " require, include | ||
hi! link Identifier _base3 " @instancevars, vim vars | ||
hi! link Type _accent1 " ClassName | ||
hi! link Function _accent2 " builtin functions, function names | ||
hi! link Repeat _accent2 " ? | ||
hi! link Cursor _mute | ||
hi! link Error _red | ||
hi! link Todo _red | ||
|
||
" Common groups that link to default highlighting. | ||
" You can specify other highlighting easily. | ||
hi! link String Constant | ||
hi! link Character Constant | ||
hi! link Number Constant | ||
hi! link Boolean Constant | ||
hi! link Float Number | ||
hi! link Conditional Repeat | ||
hi! link Label Statement | ||
hi! link Keyword Statement | ||
hi! link Exception Statement | ||
hi! link Include PreProc | ||
hi! link Define PreProc | ||
hi! link Macro PreProc | ||
hi! link PreCondit PreProc | ||
hi! link StorageClass Type | ||
hi! link Structure Type | ||
hi! link Typedef Type | ||
hi! link Tag Special | ||
hi! link SpecialChar Special | ||
hi! link Delimiter Special | ||
hi! link SpecialComment Special | ||
hi! link Debug Special |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
augroup numberswitch | ||
au! | ||
au FileType javascript,ruby,python | ||
\ call <SID>set_number_switch() | ||
augroup END | ||
|
||
function! s:set_number_switch() | ||
" makes symbols easier to type, no shift key needed | ||
imap <buffer> 1 ! | ||
imap <buffer> 2 @ | ||
imap <buffer> 3 # | ||
imap <buffer> 4 $ | ||
imap <buffer> 5 % | ||
imap <buffer> 6 ^ | ||
imap <buffer> 7 & | ||
imap <buffer> 8 * | ||
imap <buffer> 9 ( | ||
imap <buffer> 0 ) | ||
" hold alt to get the numbers | ||
inoremap <buffer> ¡ 1 | ||
inoremap <buffer> ™ 2 | ||
inoremap <buffer> £ 3 | ||
inoremap <buffer> ¢ 4 | ||
inoremap <buffer> ∞ 5 | ||
inoremap <buffer> § 6 | ||
inoremap <buffer> ¶ 7 | ||
inoremap <buffer> • 8 | ||
inoremap <buffer> ª 9 | ||
inoremap <buffer> º 0 | ||
" no shift key for curly braces | ||
inoremap <buffer> [[ { | ||
inoremap <buffer> ]] } | ||
endfunction |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
augroup javascript_shortcuts | ||
au! | ||
au FileType javascript call <SID>set_js_shortcuts() | ||
au FileType javascript set conceallevel=2 | ||
augroup END | ||
|
||
function! s:set_js_shortcuts() | ||
inoremap <buffer> @. this. | ||
imap <buffer> fn( function ( | ||
imap <buffer> fn() function () | ||
imap <buffer> fn(){ function () { | ||
imap <buffer> fn()[ function () { | ||
imap <buffer> fn()<Space>{ function () { | ||
imap <buffer> fn()<Space>[ function () { | ||
imap <buffer> function()[ function () { | ||
imap <buffer> function()<Space>[ function () { | ||
imap <buffer> fn<Space>( function ( | ||
imap <buffer> fn<Space>() function () | ||
imap <buffer> fn<Space>(){ function () { | ||
imap <buffer> fn<Space>()[ function () { | ||
imap <buffer> fn<Space>()<Space>{ function () { | ||
imap <buffer> fn<Space>()<Space>[ function () { | ||
imap <buffer> function<Space>()[ function () { | ||
imap <buffer> function<Space>()<Space>[ function () { | ||
imap <buffer> fn9 function ( | ||
imap <buffer> fn90 function () | ||
imap <buffer> fn90{ function () { | ||
imap <buffer> fn90[ function () { | ||
imap <buffer> fn90<Space>{ function () { | ||
imap <buffer> fn90<Space>[ function () { | ||
imap <buffer> function90[ function () { | ||
imap <buffer> function90<Space>[ function () { | ||
imap <buffer> fn<Space>9 function ( | ||
imap <buffer> fn<Space>90 function () | ||
imap <buffer> fn<Space>90{ function () { | ||
imap <buffer> fn<Space>90[ function () { | ||
imap <buffer> fn<Space>90<Space>{ function () { | ||
imap <buffer> fn<Space>90<Space>[ function () { | ||
imap <buffer> function<Space>90[ function () { | ||
imap <buffer> function<Space>90<Space>[ function () { | ||
endfunction |
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