You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vim-multiedit - Multi-selection and editing in vim
About
Do you envy Sublime Text 2's multiple selection and editing feature? This plugin
tries to fill that multi-caret shaped gap in your heart by letting you
specify "regions" of text and edit them all from one place.
" Insert a disposable marker after the cursornmap<leader>ma :MultieditAddMark a<CR>" Insert a disposable marker before the cursornmap<leader>mi :MultieditAddMark i<CR>" Make a new line and insert a markernmap<leader>mo o<Esc>:MultieditAddMark i<CR>nmap<leader>mO O<Esc>:MultieditAddMark i<CR>" Insert a marker at the end/start of a linenmap<leader>mA $:MultieditAddMark a<CR>nmap<leader>mI ^:MultieditAddMark i<CR>" Make the current selection/word an edit regionvmap<leader>m :MultieditAddRegion<CR>nmap<leader>mm viw:MultieditAddRegion<CR>" Restore the regions from a previous edit sessionnmap<leader>mu :MultieditRestore<CR>" Move cursor between regions n timesmap]m:MultieditHop 1<CR>map[m:MultieditHop -1<CR>" Start editing!nmap<leader>M :Multiedit<CR>" Clear the word and start editingnmap<leader>C :Multiedit!<CR>" Unset the region under the cursornmap<silent><leader>md:MultieditClear<CR>" Unset all regionsnmap<silent><leader>mr:MultieditReset<CR>