I'd like to disable the popup menu scroll mappings <C-n> and <C-p>, so that I can use <C-j> and <C-k> instead. However, when I enter
imap <C-p> <Nop>
imap <C-n> <Nop>
the mappings are still active! How do I disable or override them permanently? Is it not possible?
To be clear, when I call :verb imap <C-p> I see
i <C-P> <Nop>
yet the shortcut still works.
Update: Here is the output of :version, if that helps:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 20 2018 03:49:43)
macOS version
Included patches: 1-400
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +conceal +folding +menu +packages -sun_workshop +visual
+arabic +cryptv -footer +mksession +path_extra +syntax +visualextra
+autocmd +cscope +fork() +modify_fname +perl +tag_binary +viminfo
+autochdir +cursorbind -gettext +mouse +persistent_undo +tag_old_static +vreplace
-autoservername +cursorshape -hangul_input -mouseshape +postscript -tag_any_white +wildignore
-balloon_eval +dialog_con +iconv +mouse_dec +printer -tcl +wildmenu
+balloon_eval_term +diff +insert_expand -mouse_gpm +profile +termguicolors +windows
-browse +digraphs +job -mouse_jsbterm -python +terminal +writebackup
++builtin_terms -dnd +jumplist +mouse_netterm +python3 +terminfo -X11
+byte_offset -ebcdic +keymap +mouse_sgr +quickfix +termresponse -xfontset
+channel +emacs_tags +lambda -mouse_sysmouse +reltime +textobjects -xim
+cindent +eval +langmap +mouse_urxvt +rightleft +timers -xpm
-clientserver +ex_extra +libcall +mouse_xterm +ruby +title -xsmp
+clipboard +extra_search +linebreak +multi_byte +scrollbind -toolbar -xterm_clipboard
+cmdline_compl +farsi +lispindent +multi_lang +signs +user_commands -xterm_save
+cmdline_hist +file_in_path +listcmds -mzscheme +smartindent +vartabs
+cmdline_info +find_in_path +localmap +netbeans_intg +startuptime +vertsplit
+comments +float +lua +num64 +statusline +virtualedit
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -
L/usr/local/lib -o vim -lncurses -liconv -framework AppKit -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.12 -fstack-protector-
strong -L/usr/local/lib -L/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -L/usr/local/opt/
python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation -lruby.2.5.1 -lobjc
vim -u NONEand unmapping the keys as above (or as in statox's answer) still does not disable them; they still bring up/scroll the popup menu. Maybe it's somehow baked into vim? But I thought nothing was baked in. – Luke Davis Sep 30 '18 at 13:58imapcommands on my setup and it works (disabling the autocomplete menu) normally. Try using:verbose mapand:verbose map!to list your mappings and find the offending configuration. – Spidey Oct 01 '18 at 14:50