Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 75: | Line 75: | ||
You can also change the mapping to yank to the end of a word (change "yw" to "ye" on the third line). |
You can also change the mapping to yank to the end of a word (change "yw" to "ye" on the third line). |
||
− | |||
− | ---- |
||
− | If you have Vim 7 you can use an expression mapping to simplify the mapping. This mapping also will not overwrite any registers or marks |
||
− | <pre> |
||
− | inoremap <expr> <c-y> matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') |
||
− | </pre> |