teol.vim : :TEOL <string> and :TSOL <string>; toggles string at end/start of line(s)
script karma |
Rating 0/0,
Downloaded by 1177 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Robert KellyIV |
|
script type |
utility |
|
description |
This is a vim remake of an old macro I had for Multi-Edit, handy it was though
not so necessary with VIM, given A and :s but this will not mess up your cursor
position, works on a range, etc. It has some use.
There are default/example mappings for both visual and normal modes:
For end of line toggling:
<leader>; toggles ";" at end of line.
<leader>, toggles "," at end of line.
<leader>: toggles ":" at end of line.
For start of line: (start of line for this is first non white space char, like
^ as opposed to 0 )
<leader>s, toggles ", " at start of line.
<leader>s: toggles ": " at start of line.
NOTE that you can toggle strings not just chars; I.e. ":TSOL --", ":TEOL --"
and so on. |
|
install details |
Just drop in plugins folder, nothing more nothing less.
Optional: Edit file as desired for mappings; mappings could be placed elsewhere if wanted as they are in the style of: “nnoremap <leader>; :TEOL;<cr>” |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 44.220.184.63
|