Skip to main content
more https links
Source Link
Jacktose
  • 905
  • 2
  • 8
  • 19

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854https://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357https://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: https://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023https://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: https://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: https://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: https://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: https://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: https://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 
replaced http://superuser.com/ with https://superuser.com/
Source Link

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: http://superuser.com/a/939832/163315https://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: http://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: https://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 
clarify
Source Link
Jacktose
  • 905
  • 2
  • 8
  • 19

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: http://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: http://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 

Short answer

Turn off “application keypad mode switching.”

Terminal-specific instructions

  • [PuTTY][p1] (also [here][p2]): Terminal > Features > uncheck Disable application keypad mode
  • SecureCRT: Session Options > Terminal > Emulation > Modes > Mode switching > uncheck Enable keypad mode switching
  • iTerm: Switch to iTerm2 or see general instructions below.
  • [iTerm2][i2-1] (also [here][i2-2]): Preferences > Profiles > Keys > Load Preset… > xterm with Numeric Keypad or add the settings manually as shown [here][i2-3].
  • [Mac OS Terminal][term1] (also [here][term2]): Preferences > Profiles > Advanced > uncheck Allow VT100 application keypad mode
  • Other: look for an option like application keypad mode or see below.

[p1]: http://vim.wikia.com/wiki/PuTTY_numeric_keypad_mappings#Using_the_numeric_keypad) [p2]: http://stackoverflow.com/a/7284745/1144854 [i2-1]: https://www.twistermc.com/39930/use-number-pad-vim-iterm2/ [i2-2]: http://web.archive.org/web/20131110033808/https://code.google.com/p/iterm2/issues/detail?id=1357 [i2-3]: http://superuser.com/a/939832/163315 [term1]: https://discussions.apple.com/thread/6613968 [term2]: http://apple.stackexchange.com/a/201341/201023

General instructions for .vimrc

If the terminal-specific instructions don't work for you, you can fix it in vim by adding the following mappings to your .vimrc:

:inoremap <Esc>Oq 1 :inoremap <Esc>Or 2 :inoremap <Esc>Os 3 :inoremap <Esc>Ot 4 :inoremap <Esc>Ou 5 :inoremap <Esc>Ov 6 :inoremap <Esc>Ow 7 :inoremap <Esc>Ox 8 :inoremap <Esc>Oy 9 :inoremap <Esc>Op 0 :inoremap <Esc>On . :inoremap <Esc>OQ / :inoremap <Esc>OR * :inoremap <Esc>Ol + :inoremap <Esc>OS - :inoremap <Esc>OM <Enter> 
Source Link
Jacktose
  • 905
  • 2
  • 8
  • 19
Loading