This file contains hidden or 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
| #!/usr/bin/env python | |
| def levenshtein_distance(a, b): | |
| ''' | |
| Algorighm: Dynamic Programming, DP | |
| a: apple | |
| b: python | |
| b (j) |
This file contains hidden or 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
| " Yank with keeping cursor position in visual mode {{{ | |
| function! s:wrap_y(command) | |
| exec "normal! gv" . a:command | |
| exec "normal! gv\<ESC>" | |
| endfunction | |
| xnoremap <silent> y <ESC>:call <SID>wrap_y('y')<CR> | |
| xnoremap <silent> Y <ESC>:call <SID>wrap_y('Y')<CR> | |
| "}}} |
This file contains hidden or 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
| " ______ __ ___ __ _ | |
| " / ____/____ ________ __/ |/ /____ / /_(_)____ ____ | |
| " / __/ / __ `/ ___/ / / / /|_/ // __ \/ __/ // __ \/ __ \ | |
| " / /___ / /_/ (__ ) /_/ / / / // /_/ / /_/ // /_/ / / / / | |
| " /_____/ \__,_/____/\__, /_/ /_/ \____/\__/_/ \____/_/ /_/ | |
| " /____/ | |
| " - Vim motions on speed! | |
| " | |
| " | |
| " ======================================= |
This file contains hidden or 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
| # Vimrc Request Wiki | |
| - author: | |
| name: reedes | |
| url: https://github.com/reedes # 一応任意(なかったりGitHub以外への対応) | |
| vimrcs: | |
| - name: vimrc # ここもファイル名を見ればいらない?(GitHub以外への対応としているかも) | |
| url: https://github.com/reedes/vim-config/blob/master/vimrc | |
| lines: 1024 | |
| requester: haya14busa | |
| other: 作っているプラグインが面白い #省略可 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # FILE: generate_archive_md.py | |
| # AUTHOR: haya14busa | |
| # License: MIT license | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the | |
| # "Software"), to deal in the Software without restriction, including | |
| # without limitation the rights to use, copy, modify, merge, publish, |
This file contains hidden or 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
| #!/bin/sh | |
| ## Lua ## | |
| # git clone http://luajit.org/git/luajit-2.0.git | |
| # cd luajit-2.0 | |
| # make && sudo make install | |
| ######### | |
| ./configure \ | |
| --enable-fail-if-missing \ |
This file contains hidden or 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 has('vim_starting') | |
| set nocompatible | |
| set runtimepath& runtimepath+=~/.vim/bundle/neobundle.vim/ | |
| endif | |
| call neobundle#rc(expand('~/.vim/bundle/')) | |
| NeoBundleFetch 'Shougo/neobundle.vim' | |
| NeoBundle 'thinca/vim-quickrun' | |
| NeoBundle 'osyo-manga/vim-watchdogs' |
This file contains hidden or 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! g:Test(visualmode) | |
| echom 'getpos("."): ' . string(getpos('.')) | |
| echom 'v:count : ' . v:count | |
| " normal! gv | |
| endfunction | |
| xnoremap <buffer> ,, :<C-u>call g:Test(1)<CR> | |
| xnoremap <buffer> ;; <Esc>:<C-u>call g:Test(1)<CR> | |
| " vim |
This file contains hidden or 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
| " https://github.com/Lokaltog/vim-easymotion/tree/feature-flash-motions#add-helpful-hinting-to-f-and-t-motions | |
| NeoBundle 'Lokaltog/vim-easymotion', { 'rev' : 'feature-flash-motions' } | |
| let g:EasyMotion_do_mapping = 0 " do not use default bindings | |
| let g:EasyMotion_do_shade = 0 " do not shade not to loose syntax | |
| map f <Plug>(easymotion-flash-f) | |
| map F <Plug>(easymotion-flash-F) | |
| map t <Plug>(easymotion-flash-t) | |
| map T <Plug>(easymotion-flash-T) | |
| map ; <Plug>(easymotion-next-in-dir) |
This file contains hidden or 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
| " https://github.com/Lokaltog/vim-easymotion/tree/feature-flash-motions#add-helpful-hinting-to-f-and-t-motions | |
| let g:EasyMotion_do_mapping = 0 " do not use default bindings | |
| let g:EasyMotion_do_shade = 0 " do not shade not to loose syntax | |
| let g:EasyMotion_move_highlight = 0 " vim do not highlight | |
| let g:EasyMotion_flash_time_ms = 1500 " flash time if you get used to it, set small time | |
| map f <Plug>(easymotion-flash-f) | |
| map F <Plug>(easymotion-flash-F) | |
| map t <Plug>(easymotion-flash-t) |