Giter VIP home page Giter VIP logo

akm.vim's Introduction

Awesome KeyMapping for (Neo)Vim: including some keymappings of popular editors, some keymappings from emacs, etc.

Configuration

" Emacs's keymappings
inoremap <silent><m-f> <c-r>=akm#exec('norm! e')<cr><right>
inoremap <silent><m-d> <c-r>=akm#del_to_wordend()<cr>
" inoremap <m-b> <c-left>
" inoremap <c-n> <down>
" inoremap <c-p> <up>
" inoremap <m-n> <PageDown>
" inoremap <m-p> <PageUp>
inoremap <silent><c-k> <c-r>=akm#del_to_linend()<cr>
inoremap <silent><c-a> <c-r>=akm#move_to_head()<cr>
inoremap <silent><c-e> <c-r>=akm#move_to_end()<cr>
inoremap <silent><c-l> <c-r>=akm#auto_redraw()<cr>

cnoremap <m-f> <c-r>=akm#cmd_forward_word()<cr>
cnoremap <m-b> <c-r>=akm#cmd_backward_word()<cr>
cnoremap <expr><m-d> akm#cmd_del_to_wordend()

xnoremap <expr><c-e> akm#move_to_end()
nnoremap <expr><c-e> akm#move_to_end()
nnoremap <expr><c-l> akm#auto_redraw()

nnoremap <expr><c-l> akm#auto_redraw()
noremap  <expr>0     akm#move_to_head()

inoremap <silent><m-s-k> <c-r>=akm#normal('ddkP')<cr>
inoremap <silent><m-s-j> <c-r>=akm#normal('ddp')<cr>

" Undo and redo
inoremap <silent><c-z> <c-r>=akm#exec('undo')<cr>
inoremap <silent><c-y> <c-r>=akm#exec('redo')<cr>

" Paste
noremap! <c-g><c-p> <c-r>=akm#paste(@@)<cr>
noremap! <c-g><c-f> <c-r>=akm#paste(@%)<cr>
noremap! <c-g><c-d> <c-r>=akm#paste(expand('%:h'))<cr>
noremap! <c-v> <c-r>=akm#paste(@+)<cr>
noremap <silent><c-v> "=akm#paste(@+)<cr>p

akm.vim's People

Contributors

luzhlon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.