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 3: | Line 3: | ||
|previous=1663 |
|previous=1663 |
||
|next=1665 |
|next=1665 |
||
− | |created=2010 |
+ | |created=August 23, 2010 |
|complexity=basic |
|complexity=basic |
||
|author=Rvco |
|author=Rvco |
||
Line 13: | Line 13: | ||
When editing HTML documents containing images, you need to find out both the width and the length of each image and then feed every <img> tag. |
When editing HTML documents containing images, you need to find out both the width and the length of each image and then feed every <img> tag. |
||
Just use perl by adding what follows into your vimrc file. |
Just use perl by adding what follows into your vimrc file. |
||
− | When you hit F4, vim will get the image name and path mentioned in the "src" field of the <img> tag and will use perl to do this job for you. |
+ | When you hit F4, vim will get the image name and path mentioned in the "src" field of the <img> tag and will use perl to do this job for you. |
+ | |||
− | ==Copy and insert image size into |
+ | ==Automatically Copy and insert image size into HTML code with a single key stroke (F4)== |
− | First step is to make sure you have |
+ | First step is to make sure you have perl installed and the perl module Image::Size. Then all you need is to add this to your [[vimrc]]. |
<pre> |
<pre> |
||
" Get image size with F4 with perl Image::Size module. |
" Get image size with F4 with perl Image::Size module. |