You can refer to the "Finding unused keys" section in the "Mapping keys
in Vim" tutorial available at:
http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_%28Part_2%29
- Yegappan
Meta keys are almost always safe (<M-A>, <M-B>, etc.). Check for
mappings from plugins, etc. before using.
When in doubt, use the help. For example, to see if CTRL-J is taken
(it is, but there are several commands to do the same thing) type
:help CTRL-J and then press CTRL-D instead of ENTER to list all
results. Then view each result to see what they do and if there are
any alternate ways to do the same thing before mapping.
If the mapping is for one mode only, you can prepend the mode. For
example, for CTRL-J in insert mode,
:help i_CTRL-J
Oh, and you can also use the map leader (see :help <Leader>), which
defaults to the backslash key. For example,
nmap <leader>h :echo "hello world!"<CR>
Lotta people use ';' and/or ',' as a leader char. So if you want to
/r/eformat some text, you can map ",r" to a set of commands, function,
etc. Kinda the way 'g' prefaces like a brazillion separate commands
(go-to, reformat, etc.).
I've been thinking of doing that for the first time, as I never had
occasion/need before to remap anything like that. Really should, but
never got a round tuit.
The problem with ; and , is that they are already commands, used to
repeat the last f, t, F, or T search to more rapidly jump to a certain
character.
See :help ; and :help ,