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
"----------------------------------------------------------------------------- | |
" Comment-out | |
" caw.vim | |
" https://github.com/tyru/caw.vim | |
let g:caw_sp_i = '' | |
let g:caw_sp_I = '' | |
let g:caw_i_startinsert_at_blank_line = 0 |
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
function! s:multi_map(modes, map_cmd) | |
for mode in split(a:modes, '\zs') | |
execute mode . a:map_cmd | |
endfor | |
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
" Relative Jump | |
call s:multi_map('nxo', 'noremap <silent> ;q :<C-u>call <SID>relative_jump(20, 0)<CR>') | |
call s:multi_map('nxo', 'noremap <silent> ;a :<C-u>call <SID>relative_jump(50, 0)<CR>') | |
call s:multi_map('nxo', 'noremap <silent> ;z :<C-u>call <SID>relative_jump(80, 0)<CR>') | |
call s:multi_map('nxo', 'noremap <silent> ;w :<C-u>call <SID>relative_jump(20, 20)<CR>') | |
call s:multi_map('nxo', 'noremap <silent> ;s :<C-u>call <SID>relative_jump(50, 20)<CR>') | |
call s:multi_map('nxo', 'noremap <silent> ;x :<C-u>call <SID>relative_jump(80, 20)<CR>') | |
call s:multi_map('nxo', 'noremap <silent> ;e :<C-u>call <SID>relative_jump(20, 66)<CR>') |
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
Sources: outline | |
> | |
- XCopyPlane : macro | |
- | |
- USE_PAINT_REGION : macro | |
- | |
- num_hatches : macro |
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
let s:converter = { | |
\ 'name' : 'converter_file_mru', | |
\ 'description' : 'file_mru converter', | |
\ } | |
function! s:converter.filter(candidates, context) | |
let candidates = copy(a:candidates) | |
for cand in candidates | |
let cand.abbr = substitute(cand.abbr, '^([^)]*)', '', '') | |
endfor |
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
function! lib#string#levenshtein_distance(str1, str2) | |
let str1_chars = split(a:str1, '\zs') | let str1_len = len(str1_chars) | |
let str2_chars = split(a:str2, '\zs') | let str2_len = len(str2_chars) | |
let matrix = [] | |
let y = 0 | |
while y <= str2_len | |
let row = range(0, str1_len) | |
let row[0] = y | |
call add(matrix, row) |
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
# Snippets for Scheme | |
snippet shebang | |
#!/usr/bin/env gosh | |
snippet modeline | |
; vim: filetype=scheme | |
#---------------------------------------------------------------------------- | |
# Abbrevs |
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
# Snippets for VimScript | |
include separator_vim.snip | |
snippet modeline | |
prev_word '^' | |
" vim: filetype=vim | |
#----------------------------------------------------------------------------- | |
# Abbrevs |
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: | |
" /usr/share/vim/vim72/colors/delek.vim | |
" ORIGINAL HEADER: | |
" Vim color file | |
" Maintainer: David Schweikert <[email protected]> | |
" Last Change: 2006 Apr 30 | |
" MODIFIED BY: | |
" h1mesuke <[email protected]> |
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
"----------------------------------------------------------------------------- | |
" Abbrev | |
function! util#abbrev(words) | |
let table = {} | |
let seen = {} | |
for word in a:words | |
let abbrev = substitute(word, '.$', '', '') | |
let ablen = strlen(abbrev) | |
while ablen > 0 |
NewerOlder