Return to site

Rocket Typist 1 3 1 – Expand Typed Abbreviations

broken image


jwgoerz@users.sourceforge.net
  1. Rocket Typist 1 3 1 – Expand Typed Abbreviations Acronyms
  2. Rocket Typist 1 3 1 – Expand Typed Abbreviations Worksheets
  3. Rocket Typist 1 3 1 – Expand Typed Abbreviations Letters
  4. Rocket Typist 1 3 1 – Expand Typed Abbreviations Words

Since the above lacks the Z option, typing 111 (three consecutive 1's) would trigger the hotstring twice because the middle 1 is the last character of the first triggering but also the first character of the second triggering. By adding the letter Z in front of b0, you would have to type four 1's instead of three to trigger the hotstring twice. To change the name of an AutoCorrect entry, select the AutoCorrect entry name in the list and then click Delete.Type a new name in the Replace box, and click Add.; To delete an AutoCorrect entry, select the entry you want to remove and click Delete.; If you don't really need this AutoCorrect in order to convert the text back to your original typing, just press Ctrl+Z to undo the change. Tired of typing the same text—your phone number, email, stock replies—over and over? Texpand can help 😃 Just set up a shortcut (like 'addrs') and whenever you type that, Texpand will replace it with a longer phrase, saving you effort and time. Features 🚀 Create shortcuts for your frequently used phrases 🚀 Type space to expand a shortcut 🚀 Compatible with. Hyde Flippo taught the German language for 28 years at high school and college levels and published several books on the German language and culture. Rocket Typist 2.1.2 – Expand typed abbreviations Get for Free Utilities Mei 26, 2020. AutoCrypt 2.4.1 – Save encryption settings in a document Free to Download Utilities Mei 26, 2020. AudioFinder 5.9.26 – Manage your audio sample library Get.

Revision HistoryRevision v0.16 January 2002Revised by: jwgInitial release.

Copyright © 2002 Jesse Goerz, NewbieDoc project.

This manual is free software; you may redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License with your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with the debiandoc-sgml source package as the file COPYING. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Rocket typist 1 3 1 – expand typed abbreviations worksheets
Table of Contents
1. Introduction
2. Installing vim
3. Vim's built in help
3.1. Tutor me!
3.2. Navigating vim's help
4. Modeful editing
4.1. Normal mode
4.2. Visual mode
4.3. Select mode
4.4. Insert mode
4.5. Command line mode
4.6. Ex mode
5. Common commands
5.1. Movement commands
5.2. Search commands
5.3. Simple editing/combination commands
6. Personalizing vim
6.1. vimrc files
6.2. Color Schemes
6.3. Syntax highlighting
6.4. Abbreviations
7. Mapping Keys
8. Writing Functions
9. Programming with vim
10. Example maps and vimrc files
11. References and links
12. Contributors
A. My examples
1. Introduction

This document will cover the console version of vim from Debian stable. Although much of what is discussed here will also apply to gvim, it may or may not work with gvim.

Learning vim can be a bit of a trial but it is well worth it in the long run. The most important thing you can do is read the section Vim's built in help. Once you figure out how to use vim's built-in help effectively, you'll learn vim much more comfortably.

No introduction to vim would be complete without a warning. Vim is not a difficult editor to learn but it won't be like any other editor you've used. In the beginning you'll find that the movement and editing commands can be quite irritating. However, with a bit of patience and perseverance you will become quite adept at using it.

If it is so irritating why would you want to learn how to use it? Good question. My primary motivation to learn vim was watching someone who was good with vim edit a configuration file. Without moving his hands from the keyboard he cut large blocks of text and moved them around quite rapidly. This simple textual explanation just doesn't do justice to what I witnessed that day. Vim offers you the ability to rapidly search, edit, copy, and 'read in' files in far less time then your average editor. Vim can also do things you just can't do in other editors. Once you get good enough, vim saves you a lot of time over conventional editors.

Before we move on to the next section I would like to pass on a couple quick tips.

Beware the caps-lock key!

Because vim uses the keyboard as a primary means of navigation, you need to make sure the caps-lock key is not depressed. If you're trying to move around in vim and strange things are happening, check to make sure the caps-lock key is not depressed.

Tapping the Escape key twice in quick succession will clear any commands you have begun to type incorrectly.

2. Installing vim

To install vim on Debian simply become the root user and type this at the command line:

The package vim contains the executable, and the vim-rt package contains all the files necessary to get syntax highlighting to work.

If you want to install the graphical version of vim install the packages vim-gtk and vim-rt.

Programming

If you're going to be doing programming, you'll also want to install the package exuberant-ctags.

3. Vim's built in help

Learning the way the help system system works in any application you use is always a good idea. In vim, it isn't just a good idea, it's essential. When I first started using vim I put it off for the longest time. I wish I wouldn't have done that!

3.1. Tutor me!

Thanks to vim's hard working developers vim has a very extensive built-in help system. As part of their work they developed a tutor which will walk you through the basics.

To start the tutor simply type this command at the console:

Vim should start and look something like this:

Simply follow along with the tutor. Below is the outline of what the tutor covers in case you are already familiar with vim. I recommend you continue using the tutor until you can complete it 'out of sequence.' In other words, you ought to be able to jump around throughout the tutor, doing sections at random, before continuing with the rest of this document.

Moving the cursor

Entering and exiting vim

Text editing-deletion

Text editing-insertion

Deletion commands

More deletion commands

On commands and objects

Exceptions to command-object

The undo command

The put command

the replace command

The change command

More changes using 'c'

Location and file status Videoboxpro 1 1 7 – professional video captures app.

Typed
Table of Contents
1. Introduction
2. Installing vim
3. Vim's built in help
3.1. Tutor me!
3.2. Navigating vim's help
4. Modeful editing
4.1. Normal mode
4.2. Visual mode
4.3. Select mode
4.4. Insert mode
4.5. Command line mode
4.6. Ex mode
5. Common commands
5.1. Movement commands
5.2. Search commands
5.3. Simple editing/combination commands
6. Personalizing vim
6.1. vimrc files
6.2. Color Schemes
6.3. Syntax highlighting
6.4. Abbreviations
7. Mapping Keys
8. Writing Functions
9. Programming with vim
10. Example maps and vimrc files
11. References and links
12. Contributors
A. My examples
1. Introduction

This document will cover the console version of vim from Debian stable. Although much of what is discussed here will also apply to gvim, it may or may not work with gvim.

Learning vim can be a bit of a trial but it is well worth it in the long run. The most important thing you can do is read the section Vim's built in help. Once you figure out how to use vim's built-in help effectively, you'll learn vim much more comfortably.

No introduction to vim would be complete without a warning. Vim is not a difficult editor to learn but it won't be like any other editor you've used. In the beginning you'll find that the movement and editing commands can be quite irritating. However, with a bit of patience and perseverance you will become quite adept at using it.

If it is so irritating why would you want to learn how to use it? Good question. My primary motivation to learn vim was watching someone who was good with vim edit a configuration file. Without moving his hands from the keyboard he cut large blocks of text and moved them around quite rapidly. This simple textual explanation just doesn't do justice to what I witnessed that day. Vim offers you the ability to rapidly search, edit, copy, and 'read in' files in far less time then your average editor. Vim can also do things you just can't do in other editors. Once you get good enough, vim saves you a lot of time over conventional editors.

Before we move on to the next section I would like to pass on a couple quick tips.

Beware the caps-lock key!

Because vim uses the keyboard as a primary means of navigation, you need to make sure the caps-lock key is not depressed. If you're trying to move around in vim and strange things are happening, check to make sure the caps-lock key is not depressed.

Tapping the Escape key twice in quick succession will clear any commands you have begun to type incorrectly.

2. Installing vim

To install vim on Debian simply become the root user and type this at the command line:

The package vim contains the executable, and the vim-rt package contains all the files necessary to get syntax highlighting to work.

If you want to install the graphical version of vim install the packages vim-gtk and vim-rt.

Programming

If you're going to be doing programming, you'll also want to install the package exuberant-ctags.

3. Vim's built in help

Learning the way the help system system works in any application you use is always a good idea. In vim, it isn't just a good idea, it's essential. When I first started using vim I put it off for the longest time. I wish I wouldn't have done that!

3.1. Tutor me!

Thanks to vim's hard working developers vim has a very extensive built-in help system. As part of their work they developed a tutor which will walk you through the basics.

To start the tutor simply type this command at the console:

Vim should start and look something like this:

Simply follow along with the tutor. Below is the outline of what the tutor covers in case you are already familiar with vim. I recommend you continue using the tutor until you can complete it 'out of sequence.' In other words, you ought to be able to jump around throughout the tutor, doing sections at random, before continuing with the rest of this document.

Moving the cursor

Entering and exiting vim

Text editing-deletion

Text editing-insertion

Deletion commands

More deletion commands

On commands and objects

Exceptions to command-object

The undo command

The put command

the replace command

The change command

More changes using 'c'

Location and file status Videoboxpro 1 1 7 – professional video captures app.

The search command

Matching parentheses search

A way to change errors

How to execute an external command

More on writing files Vegas slots com.

A selective write command

Retrieving and merging files

The open command

The append command

Another version of replace

Set option

Online help commands

3.2. Navigating vim's help

Vim has an extensive help system. The most basic command is:

Rocket Typist 1 3 1 – Expand Typed Abbreviations Acronyms

This command will take you to vim's help text. Throughout the help files you will see tags like this: |bars|. By positioning your cursor over these tags and hitting CTRL-] you can jump directly to the subject. To get back to your original position simply type CTRL-t.

You can quit the help window by typing :q.

A variation of the above command is this:

Where subject is the information you are looking for. One thing to note about the above command is that it takes you to the subject reference. What this means is that this type of help is aimed at users who are already familiar with vim's help syntax. The vimtutor command in the Tutor me! section covers this in Lesson 2 of the vimtutor. You did do the vimtutor didn't you?

You can also access vim's help by pressing the F1 function key.

Vim's help also contains some quick reference links which you can locate by typing:

If you're looking for less terse explanations a good place to start is with the vim introduction. In addition to the introduction you can find more detailed help with this command:

4. Modeful editing

If you haven't noticed by now, vim is a modeful editor. Vim has 6 different basic modes of operation. The modes are Normal, Visual, Select, Insert, Command line, and Ex. Each mode is suited to a particular purpose. The following sections will cover the basics of each of these modes.

If you are not sure which mode you are in simply tap the Escape key twice and you will be put into Normal mode.

To get more information on modes type:

4.1. Normal mode

Normal mode is the mode vim normally starts in. Normal mode is also known as command mode. Be careful not to confuse this with Command line mode.

Normal mode is where you use most of the built in commands and is primarily used to move the cursor around.

To get some basic information about normal mode type:

4.2. Visual mode

Visual mode is a nice way to select large blocks of text so that you can perform other operations on them. You enter visual mode by pressing v (lowercase v), V (capital V), or CTRL-V. The v command highlights the block of text by character, the V command highlights text by the line, and the CTRL-V highlights the text by block.

Once you enter visual mode you can use the movement keys (h, k, j, l, w .) to change which text is highlighted. You can then enter a sequence of Normal commands to manipulate the text. You can also enter Command line mode by typing the : (colon) and then entering a command.

If you enter command line mode from visual mode you'll notice this in the 'status bar':

This is just vim's notation for selecting that block of text. Don't backspace over it. It will be part of the command you enter.

As an example, open vim and create a new document, or simply use vimtutor and manipulate that file. Type several sentences on several different lines. Press V to enter 'linewise' visual mode. Use your cursor/movement keys to select the first line and type: gU. This should change the entire selected text to all uppercase letters. Once the text is highlighted you can also use the (y)ank and (d)elete commands to 'copy' or 'cut' the text so you can paste it elsewhere with the (p)aste command. Experiment with it a little. You'll use these commands a lot.

TODO. Need some useful examples of visual mode. Anyone want to coauthor?

To get more information on what's possible type:

4.3. Select mode

TODO. Need some useful examples of select mode. Anyone want to coauthor?

To get more information on what's possible type:

4.4. Insert mode

Insert mode is the mode in which the letters you type are input into the document. This mode resembles a regular editor. There are other options which will allow you to do additional things as well. For instance, if you use vim with languages which have accented characters that do not appear on your keyboard you can use the digraph option to type those characters.

To use digraphs you need to issue the command:

If you get an error after using this command your version of vim was not compiled with digraph support. The default version of vim in Debian has digraph support.

Digraphs are used by typing a character, the Backspace key, and then another character. These combinations of characters are called maps. You can see which digraph maps are available to you by typing:

Here is the output of that command:

The columns are arranged so that the first character is typed followed by a backspace and then the second character is typed. For example, to get the ¡ (an upside down exclamation point) character I would simply type ~-Backspace-!.

These mappings seem to change between systems and versions of vim. Make sure you double check what your maps are so you get what you expect.

If you use these characters frequently you may wish to explore the langmap option as well. For more information type the command :help langmap.

To get more information on what's possible with digraphs type:

To get more information on what's possible with insert mode type:

4.5. Command line mode

Command line mode is entered by typing : (the colon). Once typed the 'status bar' along the bottom of the console shows the colon and whatever you type. All the previous :help commands you have typed are examples.

Command line mode is entered from Normal mode. If you type the colon and can't seem to get into command line mode try tapping the escape key twice and then type the colon.

Command line mode contains a 'history' much like the shell does. By typing the beginning of your command and then using the arrow keys you can scroll through a list of the previous commands you entered.

Command line mode also has 'tab-completion' much like the shell does. By typing the beginning of your command and then the TAB key the command line will complete the available commands for you.

To get more information on what's possible with command line mode type:

4.6. Ex mode

TODO. Anyone want to coauthor?

TODO. Need some useful examples of ex mode.

5. Common commands

The most common commands used in vim are covered in the Tutor me! section. You did the tutor right? The following sections contain some additional commands.

5.1. Movement commands

Movement commands

G

Move to the end of the file.

gg

Move to the beginning of the file.

CTRL-b

Move back a page.

CTRL-f

Move forward a page.

CTRL-u

Scroll up.

CTRL-d

Scroll down.

If you don't like the way the scrolling works you can adjust it with the scroll, scrolloff, and scrolljump options. Type :help scroll for more information. The vimrc files section explains how to make these adjustments permanent.

CTRL-e

Expose another line at the top. Useful for scrolling the screen without moving your cursor from its position.

CTRL-y

Expose another line at the bottom. Useful for scrolling the screen without moving your cursor from its position.

}

Move forward a paragraph. Useful for moving through documents which have blank lines separating paragraphs or blocks. An easy way to distinguish between this and { is to remember it points in the direction you wish to go.

{

Move backward a paragraph. Useful for moving through documents which have blank lines separating paragraphs or blocks.

)

Move forward a sentence. An easy way to distinguish between this and ( is to remember it points in the direction you wish to go

(

Move backward a sentence.

:number

Where number is a decimal number indicating the line number you wish to jump/move to.

'0

Vim creates a 'bookmark' each time you exit Vim. The last 'bookmark' is '0. So if you have a file you haven't edited in a long time and can't remember where you left off simply type this command and it will take you to the place you last edited. You can find out what marks are set by typing :marks.

Reference :help navigation and :help motion for more information on motion commands.

5.2. Search commands

Search commands

/text

Search forward in the document for text. If found, vim will move the cursor to that position in the file. Once / is typed, text will show up in the status bar as you type it.

?text

Search backward in the document for text. If found, vim will move the cursor to that position in the file. Once ? is typed, text will show up in the status bar as you type it.

Normally the search commands stop at the end or beginning of the file depending on which direction you are searching. You can force the search to 'wrap around' the file using the wrapscan option. Type :help wrapscan for more information.

*

This is a search command which will find the next occurance (forward) of the word the cursor is currently on.

n

Find the (n)ext occurance of the previous search. It will use the same direction (i.e. forward vs. backwards) of the previous search as well.

There are several options which allow you to enhance your searching. The hlsearch option highlights the text of the search. The incsearch option highlights and shows possible matches as you type the text. You can get more information on these options by typing :help hlsearch and :help incsearch. The vimrc files section explains how to make these adjustments permanent.

5.3. Simple editing/combination commands

Deleting/selecting parts of a line

dfx

Delete forward until you find x (inclusive). If x is found, vim will delete everything from the current cursor position to and including x.

This one and its variations dFx, dtx, and dTx are very useful when editing mark-up languages like html and sgml. It is especially useful in deleting and changing quoted attributes within mark-up tags.

This is a combination of the (d)elete command and the (f)ind motion command. You may also substitute other commands for the delete portion of that command, such as visual by character, or yank.

dFx

Delete backward until you find x (inclusive). If x is found, vim will delete everything from the current cursor position to and including x.

dtx

Delete forward until you find x (exclusive). If x is found, vim will delete everything from the current cursor position to, but not including x.

dTx

Delete backward until you find x (exclusive). If x is found, vim will delete everything from the current cursor position to, but not including x.

Deleting/selecting spanning multiple lines

d/x

Delete forward until you find x (exclusive). If x is found, vim will delete everything from the current cursor position to, but not including x, spanning multiple lines if necessary.

x doesn't have to be one character. It's most likely to be a word or several characters. If you're editing your email, you could use this to delete all text up to your signature by executing d/--.

This is a combination of the (d)elete command and the (/) search forward motion command. You may also substitute other commands for the delete portion of that command, such as visual by character, Visual by line, or yank.

d?x

The new call of duty game. Delete backward until you find x (exclusive). If x is found, vim will delete everything from the current cursor position to, but not including x, spanning multiple lines if necessary.

Cut, copy, and paste

V-any_motion_command

V selects the text by the line. Simply use j, k, or the paragraph motion commands ({, }) to select the block of text. Now type d to delete (cut) it, y to yank (copy) it, and p to paste it.

Spell checking

TODO

TODO.

Find and replace

This topic is covered extremely well by Sven Guckes. You can read the document here: http://www.math.fu-berlin.de/~guckes/vi/subst.html

Do you have a simple editing option you use frequently? Please send it to us at newbiedoc-discuss@lists.sourceforge.net so we can add it to this document.

6. Personalizing vim6.1. vimrc files

Vim is a very customizable editor. Many of the options you can set require you to type in a command like this:

This is the option to set autoindent which keeps the indentation level you are currently at when you hit the enter key. Rather than retype this command every time you want this option enabled, vim has a resource file it checks to see which options you would like set when vim starts. Technically, there are two such files, /etc/vimrc, and ~/.vimrc. Within these files you can set standard options which will automatically be set when you start vim.

The /etc/vimrc is the system wide configuration file and shouldn't really be edited unless you know what you are doing or you're the administrator for that machine. The ~/.vimrc file is located in your home directory (that's what the ~/ means, in case you were wondering) and is meant specifically for the purpose of customization.

Before editing a vimrc file it's a good idea to back it up just in case you mess it up beyond repair.

You can see a list of available options that can be set by typing the following command:

The output of that command looks something like this:

As you can see there are a lot of options to set/unset. To get more information on what an option does simply type :help name_of_option replacing name_of_option with the option you're interested in.

Once you decide how you want an option to be set you can add it to your ~/.vimrc file. Using the autoindent example above, simply add this line to your vimrc file:

Comments are created in vimrc files using the ' (quote) character. As you can see I put a comment next to the autoindent option and also added a 'commented out' option which disables the previous noautoindent option I had set. Most of the options follow this convention; if you wish to disable it, simply put no in front of the option.

For more information about vimrc files type: https://herejfiles543.weebly.com/book-of-fortune.html.

6.2. Color Schemes

TODO. Need some useful examples of color schemes. Anyone want to coauthor?

For more information about color schemes type:

6.3. Syntax highlighting

If you installed the vim-rt package described in Installing vim, all you have to do to enable syntax highlighting is add syntax on to your .vimrc file. The highlighting syntax is chosen based on filename extension so it happens pretty much automatically.

You can change the default colors of a syntax highlight by using the highlight command. For example, to change all comments to the color green type:

The second argument to that command is the group name. To make the setting permanent simply add it to your .vimrc.

In order for the color change to work the highlight command should come after the syntax on command in your .vimrc.

To see what group names are available to be changed type:

The available colors can be found by typing:

Some colors may not be available. Reference :help xterm-colors and :help xiterm for more information.

TODO. Need some useful examples of customized syntax. Anyone want to coauthor?

For more information about syntax highlighting type:

6.4. Abbreviations

Abbreviations are just shortcuts you type which expand to longer versions of themselves. You can create an abbreviation simply by typing:

Abbreviations take the form:

What happens is when you type the abbreviation in vim, as soon as you hit the space bar it is expanded to the full text. The abbreviation dmv in the prior example would expand to 'Department of Motor Vehicles.' If you close vim these settings are lost unless you commit them to your .vimrc file.

Unless you are only using the abbreviation on a small document, abbreviations are usually added to your personal .vimrc file. This is accomplished by adding the abbreviation like this:

To find out which abbreviations you currently have defined, just type :ab and hit enter and the abbreviation definition will show up in the 'status bar.'

For more information about abbreviations type:

7. Mapping Keys

Mapping keys is one of the most useful and productive operations that vim performs. Mapping keys is just a method to map a complex command to a particular keystroke or sequence of keystrokes. If you find yourself routinely performing the same commands to edit a document there is a good possibility you could create a map to make your editing easier.

For instance, if you write html, xml, or sgml documents in a text editor you know it can become quite tedious typing out all those tags all the time. Markup language tags may also include attributes which you also have to type in or cut and paste from other locations. This can slow your work down quite a bit. There are gui programs which sort of solve this but many of them can't always give you the control you need and you end up resorting to hand editing the file anyway. The simple solution in vim is to create a map.

There are several different types of maps you can create but the two we will concentrate on are Normal mode and Insert mode maps. Normal mode maps begin with the command map and look something like this:

Insert mode maps begin with the command map! and look something like this:

Avoid re-mapping the key as this is always mapped to vim's help.

The complexity of the map is pretty much limited to your imagination. Here is a simple map you might use to open a letter:

This is a Normal mode map set to use the key. It won't work when you're in insert mode. When you press the key, vim executes the insert command (because it's still in Normal mode), it then types all the letters as it sees them (because now it's in Insert mode) until it hits . This is how you type a Carriage Return in maps. So vim executes a carriage return. It then executes the next carriage return and then indents that line with one tab. At this point the map is finished. If you would like to test this map go ahead and copy the map into vim by typing : and then pasting the map into the status bar. Press Return. Now try pressing the key and see what it does. One thing to notice is the map exits while in insert mode. This allows you to start typing immediately.

If you forgot what maps you have or just want to see what maps you have defined you can simply type: :map or :map! and hit enter. The defined maps will show up in the 'status bar.'

To make maps permanent add them to your .vimrc file.

Earlier I talked about how maps can make working with markup languages easier. Here are several example Insert mode maps which can be used to create headings in html:

We will focus on the first map. This map is executed while you are typing in insert mode. After you type ,h1 vim types

for you. It then sees the escape command which just like any other time you're in insert mode takes you back to Normal mode. Vim then sees the command to move back 2 words (2b) which puts the cursor on the '>' of the first

tag. Vim then sees the a command so it moves one space to the right and enters insert mode. At this point the map is finished, your tags have been written, you are in insert mode and ready to type the heading. The beauty of maps like this is you never leave insert mode (at least from your perspective) and you type only 3 characters and get many more. Once you get used to your personal maps it's easy to forget about all the tags and concentrate more on your content.

If you would like to try these maps out simply copy and paste them into vim like the previous example.

Rocket Typist 1 3 1 – Expand Typed Abbreviations Worksheets

There are several things you should notice about the previous examples. Insert mode maps are generally used to enter portions of text which are repetitive or time consuming. They work extremely well for inserting markup text and then positioning your cursor where you would logically type next. They take care of 'closing' tags for you which can cut down on nesting errors and ill formed documents.

When creating maps, selection of your assigned keystrokes is pretty much up to you. I would recommend you avoid re-mapping standard commands as this makes it difficult for you to transition to someone else's machine unless you carry around a copy of your .vimrc on a floppy (which I've often thought about :) ). When you choose a sequence of commands for Insert mode choose a sequence which is unlikely to be typed. In the previous example I chose the ',' because in almost every type of document it is always followed by a space. The reason for this is vim has to pause for a second whenever the first character of one of its maps is pressed. It does this to see if you are typing a map or just a sequence of characters that just happens to start with the mapped character. By choosing the comma, every time I type a comma and then the following space, vim knows almost immediately that I don't want a map.

For more complex map examples see the section Example maps and vimrc files.

For more information about mapping keys type:

8. Writing Functions

TODO. Need some useful examples. Anyone want to coauthor?

For more information about built-in functions type:

For more information about user defined functions type:

9. Programming with vim

This subject is covered very well by a document at the Linux Documentation Project. Please reference the C-editing-with-VIM-HOWTO.

10. Example maps and vimrc files

Following is my 'system' using a combination of vimrc files and maps.

What I did was create a basic .vimrc file in my home directory and map the function keys (except F1) to source each of the custom vimrc files. Here is my example ~/.vimrc.

The custom vimrc files were placed in the ~/.vim_custom directory. Currently those files consist of vimrc files for editing shell scripts, php scripts, C/C++ programming, and sgml source files.

If you're going to copy and paste these into files please beware of the CTRL-D character. That character has to be typed into your file with this key combination: CTRL-V and then CTRL-D. It will display in the file like this: ^D. A quick way to convert all these is to do this:

Everything in that command is typed as printed on this document except CTRL-VCTRL-D which is typed as explained above.

Each vimrc file calls a function which unmaps the function keys except for the F2 function key which is always mapped to re-source the base ~/.vimrc file. It then maps the function keys and any other custom maps specific to its purpose.

I chose to do it this way for several reasons. The first reason was modularity. If I find someone else's vimrc file which includes some neat functions or mappings it's easy to incorporate them into my existing 'system' without messing with what's already there. Second, I don't use the function keys for anything else so it seemed the logical thing to do. Third, it seemed to follow a sort of 'menu' approach to doing things.

If you have an approach to doing this which you like and would like to include it in this document please send in your vimrc/functions/mappings to newbiedoc-discuss@lists.sourceforge.net so we can add it to this document.

11. References and links

Rocket Typist 1 3 1 – Expand Typed Abbreviations Letters

Vi Lovers home page

http://www.vim.org

C-editing-with-VIM-HOWTO

Vi Substitute Guide (HOWTO use the ':s' command)

12. Contributors

These folks have contributed in one way or another, I've tried to include what is was but chances are I screwed it up. If I did, my apologies, and thanks!

  • Allan M. Wind (d/x and d?x)

  • Romain Lerallut (*)

Example A-1. My ~/.vimrc

Example A-2. My ~/.vim_custom/bash-vimrc

Example A-3. My ~/.vim_custom/php-vimrc

Example A-4. My ~/.vim_custom/c-vimrc

Example A-5. My ~/.vim_custom/sgml-vimrc

Best text expansion app for Mac
Forget retyping. Rocket Typist saves text snippets.

Whether you're new to Mac or have been using it for years, highly specialized things like shortcuts, special Mac symbols, and accented characters might result in a web investigation spiralling out of control.

If you've just recently switched from Windows, you should know that Macs don't really use alt codes to type special symbols. Instead, all of the most popular Unicode characters can be typed in right from the keyboard. Unfortunately, Apple could do a much better job of shining light at this functionality.

For example, if you want to get a copyright symbol on Windows (©), you need to type in Alt 0169 — whereas, a copyright symbol on Mac is just Option + G. Similarly, a degree symbol on Mac (º) is Option + Zero and a registered trademark symbol on Mac (™) is Option + 2.

Truth is there are many more like this and below we'll explore different ways of how to type copyright symbol on Mac or any special characters Macs allow, where to find Apple keyboard symbols, and whether there's an emoji keyboard on Mac.

What Are All The Mac Keyboard Symbols?

While a standard computer keyboard contains around 80 keys, you're able — in one way or another — use it to input all of the Unicode characters, of which there are about 130,000.

To start, simply explore how all the face-value characters change when you combine them with modifier keys — Control, Option, and Command. You can even combine multiple modifiers together as well. To see all Mac keyboard shortcuts symbols clearly, however, you need to turn on the full keyboard layout.

Cleverly type with Setapp


Download Setapp to accelerate typing special keyboard symbols on Mac – bypass any limitations right now.

Display all Mac keyboard symbols

Even if you've been using your Mac for a while, it's useful to look at all the possible keyboard combinations from time to time to refresh your memory and discover new ways of quickly inputting information.

Luckily, it's easy to show all Mac key symbols at once:

  1. Go to System Preferences ➙ Keyboard
  2. Check the box next to 'Show keyboard and emoji viewers in menu bar'

Now you can click on the language flag in your menu bar and choose Show Keyboard Viewer. The interactive display will appear, showing all the keyboard symbols and altering the view in real time when you use modifier keys.

Of course, even using all the modifier keys and combinations available, it's impossible to fit all the characters in such constrained amount of space. To see all Mac key symbols, you need to select Show Emoji & Symbols option from the same language flag menu, or use a shortcut Control + Cmd + Space.

Here, you'll see all kinds of categories on the left: Emoji, Arrows, Currency Symbols, etc. In the center are all the characters within a given category. And on the right you can pick a font variation of the same symbol.

To type in a TM symbol Macs use, for example:

  1. Open your word processor of choice
  2. Call the Mac symbols menu
  3. Navigate to Letterlike Symbols on the sidebar
  4. Double-click on ™ to paste it into your editor

How to create custom Mac keyboard shortcuts symbols

With the Show Emoji & Symbols window, you have access to nearly all Unicode characters you'll ever need. However, if you need to use some special characters — such as a copyright symbol on Mac — rather frequently, it would be quite inconvenient to call up a menu and search for what you need every time. Of course, you can add the copyright symbol to your favorite characters, which will save you some time, but there's a much better way.

Macs allow you to create shortcuts for all keyboard symbols to be able to easily type them in whenever you need. For example, to create a shortcut for the copyright symbol on Mac:

  1. Type in the © character into your editor as described above and copy it with Command + C
  2. Open System Preferences ➙ Keyboard
  3. Navigate to the Text tab
  4. Click the plus sign
  5. Paste your © symbol in the With column on the right
  6. Type in a desired key combination to trigger the copyright symbol on Mac in the Replace column on the left

Although this default shortcuts method works well for characters or emoji, it doesn't effectively translate into longer strings of text or paragraphs. If you want to, for instance, create a shortcut that outputs a sales email template, you'd need to use a little nifty tool called Rocket Typist.

Rocket Typist is a full-featured text expansion app created to minimize repetition in composing any form of text-based communication. It's essentially a small database of text snippets you'll use over and over again.

Starting with Rocket Typist is easy: use File ➙ New to create a new snippet, specify the abbreviation, fill out as much text (sentences or even paragraphs) as you need, and then use the abbreviation to expand text in any application.

How to switch between keyboard languages quickly

Sometimes, the Mac keyboard symbols you need are only available in another language — say, they could be Cyrillic-based. To access them, you'd need to enable another keyboard layout on your Mac.

Luckily, it's easy to do:

  1. Go to System Preferences ➙ Keyboard
  2. Navigate to Input Sources
  3. Click the plus sign
  4. Choose the language you need and press Add

Now, the second keyboard layout will be activated. Don't forget to check the box next to 'Show Input menu in menu bar' to see which layout is currently active. The standard shortcut to switch between layouts is Cmd + Space, but you can also change it to Caps Lock key in the Input Sources options.

Extra tip: typing emoji on iPhone is much easier if you add an emoji keyboard layout to your languages.

Special Characters: Type in various symbol variations

In some cases, you might just want to access a variation of the symbol that's already on your keyboard, such as an accented letter.

One way to do this is to find the character of your choice in the Keyboard Viewer, as described above. Another way is to use a keyboard shortcut. You can get an acute accent by typing Option + E and then the letter. Similarly, circumflex is Option + I, grave accent is Option + backquote, tilde is Option + N, and umlaut is Option + U.

A quicker option though is to simply press the key of the letter you want to modify and hold it for a second until a small menu appears. Then just choose a number that corresponds to the modification you seek.

Rocket Typist 1 3 1 – Expand Typed Abbreviations Words

Digitize complex math expressions

If your studies or line of work require the use of complex math, you might be spending too much time crafting LaTeX and MathML expressions by hand. But as with nearly everything else nowadays, there's an easier way.

MathKey is a Mac app specifically developed to write complex equations in academic papers and math documents. Instead of composing dozens of obscure symbols together, the app allows you to hand-write the equation using your trackpad (or mouse) and output perfect LaTeX or MathML, ready for publication.

Search for anything instantly

It's likely that you won't retain all the information provided here. But don't worry, the only thing you need to keep is a supercharged search that can take you right back to the answer you're looking for.

Lacona is an intelligent search for your Mac that contextually analyzes the query and outputs a range of possible solutions, whether it's launching a certain app, looking it up online, or performing a pre-defined action.

Any question about Mac keyboard shortcuts symbols — such as 'how to type copyright symbol on Mac?' — would be met with a guiding response. And all you have to do to start Lacona is press Option + Space.

So there are a lot of things your Mac is capable of that you might have not even considered before. With regards to symbols and characters, what you see on the keyboard is just a tiny slice compared to the total amount available. Using Mac symbols properly will enrich your communication, making it clear and efficient, especially if you get used to creating snippets with Rocket Typist, transferring math equations with MathKey, and keeping everything at the tips of your fingers with Lacona.

Best of all, the apps mentioned above are available to you on a free trial through Setapp, a platform of more than 150 specific Mac apps that are designed to make your days more productive and fun. Now you're ready to solve some equations!

Setapp lives on Mac and iOS. Please come back from another device.

Meantime, prepare for all the awesome things you can do with Setapp.

Read on

Sign Up

Setapp uses cookies to personalize your experience on our website. By continuing to use this site, you agree to our cookie policy.




broken image