Commit db29d906246fafd759c7c790df0471394ec75d15

Add <c-t> mapping from rsi.vim
Tried rsi.vim, but it introduces undesired mappings in insert mode
(which do break important use cases) and doesn't provide useful
mappings for command-line mode.

emacscommandline was missing this bit and is otherwise OK (except
that when debugging it should be used carefully or function calls
of mappings get debugged too).
Author: xaizek
Author date (UTC): 2016-08-25 09:16
Committer name: xaizek
Committer date (UTC): 2016-08-25 09:32
Parent(s): 726dd2da0bfa43bdf5d0d253d922507de008ccfa
Signing key: 99DC5E4DB05F6BE2
Tree: 7233da661dd817d135b7798c39578651133d3604
File Lines added Lines deleted
plugin/emacscommandline.vim 5 1
File plugin/emacscommandline.vim changed (mode: 100644) (index f0d8581..b0c4504)
... ... cnoremap <C-O><C-X><C-U> <C-X><C-U>
28 28 cnoremap <C-O><Del> <Del> cnoremap <C-O><Del> <Del>
29 29 cnoremap <C-O><BS> <BS> cnoremap <C-O><BS> <BS>
30 30
31 " This piece is from rsi.vim by Tim Pope
32 noremap! <expr> <SID>transposition getcmdpos()>strlen(getcmdline())?"\<Left>":getcmdpos()>1?'':"\<Right>"
33 noremap! <expr> <SID>transpose "\<BS>\<Right>".matchstr(getcmdline()[0 : getcmdpos()-2], '.$')
34 cmap <script> <C-T> <SID>transposition<SID>transpose
35
31 36 if has('gui_running') if has('gui_running')
32 37 cnoremap <M-f> <C-\>e<SID>ForwardWord()<CR> cnoremap <M-f> <C-\>e<SID>ForwardWord()<CR>
33 38 else else
 
... ... function! <SID>Undo()
236 241 call remove(s:oldcmdline, 0) call remove(s:oldcmdline, 0)
237 242 return l:ret return l:ret
238 243 endfunction endfunction
239
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vim-emacscommandline

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vim-emacscommandline

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master