YvoSchaap.com - Easy AJAX inline text edit 2.0. As everybody knows, refreshing pages is so 1999. AJAX, DOM, whatever you call it makes it possible to let people edit a piece of text inline without having to use a submit button. You say: but that ain’t new at all! I say: But all of this has been made easy to use and implement: 2.0! Example page: inline edit (no JS knowledge needed) [source ] | Inline example: Please edit me! How you can make it work (5 easy steps for integration) Download this javascript file: InstantEdit 2.0 JSCreate a update file that handles the input. You’re done! How it works A small piece of javascript reads all SPAN tags, checks if it has class=“editText” and a id=.
Compatibility This script works in Internet Explorer, Firefox, Chrome, Opera and Safari. Update hack If you want to force a textarea over a textfield (for example to edit a piece of HTML) use class=“editText” offsetHeight=“10”. If you want to PUSH an ID to your script I use: id=“edit_userID_$userID”. Image Manipulation. A Collection of Vim Tips | Ayman Hourieh's Blog. Beginner's Guide to the Vi editor. Rendurr 2.1. Power Vim Usage: Tips & Tricks for Everyday Editing. Tips & Tricks for Everyday Editing Smylers UKUUG Linux 2004 Conference • 2004 August This view lists all the slides from the talk in a continuous format. There is a PDF version available, suitable for printing on A4 paper. The slides are also designed to be viewed as a slideshow from this file with Mozilla or a compatible browser.
JavaScript is used to make pressing N progress to the next slide. The slides fit on a 1024 × 768 pixel display. 1 Intro text editing: crops up all over Linux once good at it, find many uses for it Vim: powerful — potential for great efficiency Emacs and other VI variants also good this talk: tips — features & customizations fast, random, dull to encourage reading the notes work in progress 2 Learning Vim Vim is far too big to learn quickly probably too big to learn slowly learning it as an extension of VI is often not helpful Some of the most useful Vim features don’t require any VI knowledge. 3 Moving About 4 Visual Mode 5 Settings in .vimrc 6 Indenting 8 Pasting.
Vim Cookbook. By Steve Oualline This is the Vim cookbook page. It contains short recipes for doing many simple and not so simple things in Vim. You should already know the basics of Vim, however each command is explained in detail. Each set of instructions is a complete package. Contents Character twiddling If you type fast your fingers can easily get ahead of your mind.
To swap two characters, for example "e" with "h", put the cursor on the cursor on the "e" and type xp. The "x" command deletes a character (the "e") and the "p" pastes it after the cursor (which is now placed over the "h".) Interactively replacing one word with another (n. method) Suppose you want to replace every occurrence of the word "idiot" with the word "manager". Here's what you do: Repeat steps 4 and 5 until you have replaced all occurred. The Virgin What!? Interactively replacing one word with another (command line method) Execute the command: :%s/\<idiot\>/manager/gc The parts of this command are: Use the command: :%s/\<idiot\>/manager/g. Efficient Editing With vim - Jonathan McPherson. Vim: Seven habits of effective text editing. Bram Moolenaar November 2000 If you spend a lot of time typing plain text, writing programs or HTML, you can save much of that time by using a good editor and using it effectively.
This paper will present guidelines and hints for doing your work more quickly and with fewer mistakes. The open source text editor Vim (Vi IMproved) will be used here to present the ideas about effective editing, but they apply to other editors just as well. Choosing the right editor is actually the first step towards effective editing. The discussion about which editor is the best for you would take too much room and is avoided. If you don't know which editor to use or are dissatisfied with what you are currently using, give Vim a try; you won't be disappointed.
Part 1: edit a file 1. Most time is spent reading, checking for errors and looking for the right place to work on, rather than inserting new text or changing it. Quite often you will want to search for some text you know is there. 2. 3. 4. 5. 6. 7. Best of VIM Tips, gVIM's Key Features. Tips Home Vim Tips Blog (NEW) Cygwin VimTools Buy Vim Book Support VIM Submit to Social Websites. Real-time HTML Editor.