Created
March 23, 2014 18:12
-
-
Save haya14busa/9727113 to your computer and use it in GitHub Desktop.
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
" ______ __ ___ __ _ | |
" / ____/____ ________ __/ |/ /____ / /_(_)____ ____ | |
" / __/ / __ `/ ___/ / / / /|_/ // __ \/ __/ // __ \/ __ \ | |
" / /___ / /_/ (__ ) /_/ / / / // /_/ / /_/ // /_/ / / / / | |
" /_____/ \__,_/____/\__, /_/ /_/ \____/\__/_/ \____/_/ /_/ | |
" /____/ | |
" - Vim motions on speed! | |
" | |
" | |
" ======================================= | |
" Boost your productivity with EasyMotion | |
" ======================================= | |
" Disable default mappings | |
" If you are true vimmer, you should explicitly map keys by yourself. | |
" Do not rely on default bidings. | |
let g:EasyMotion_do_mapping = 0 | |
" ======================================= | |
" Find Motions | |
" ======================================= | |
" Jump to anywhere you want by just `4` or `3` key strokes without thinking! | |
" `s{char}{char}{target}` | |
nmap s <Plug>(easymotion-s2) | |
xmap s <Plug>(easymotion-s2) | |
omap z <Plug>(easymotion-s2) | |
" Of course, you can map to any key you want such as `<Space>` | |
" map <Space>(easymotion-s2) | |
" Turn on case sensitive feature | |
let g:EasyMotion_smartcase = 1 | |
" ======================================= | |
" Line Motions | |
" ======================================= | |
" `JK` Motions: Extend line motions | |
map <Leader>j <Plug>(easymotion-j) | |
map <Leader>k <Plug>(easymotion-k) | |
" keep cursor column with `JK` motions | |
let g:EasyMotion_startofline = 0 | |
" ======================================= | |
" General Configulation | |
" ======================================= | |
let g:EasyMotion_keys = ';HKLYUIOPNM,QWERTASDGZXCVBJF' | |
" Show target key with upper case to improve readability | |
let g:EasyMotion_use_upper = 1 | |
" Jump to first match with enter & space | |
let g:EasyMotion_enter_jump_first = 1 | |
let g:EasyMotion_space_jump_first = 1 | |
" ======================================= | |
" Search Motions | |
" ======================================= | |
" Extend search motions with vital-over command line interface | |
" Incremental highlight all matches | |
" Now, you don't need to repetitibly press `n` or `N` with EasyMotion feature | |
" `<Tab>` & `<S-Tab>` to scroll up/down a page with next match | |
" :h easymotion-command-line* | |
nmap g/ <Plug>(easymotion-sn) | |
xmap g/ <Plug>(easymotion-sn) | |
omap g/ <Plug>(easymotion-tn) | |
" Support mappings feature | |
EMCommandLineNoreMap <Space> <CR> | |
EMCommandLineNoreMap <C-j> <Space> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment