I am using
nnoremap <C-Space> i
inoremap <C-Space> <Esc>
to map to Esc. It works for all file with any extension but it doesn't work for the files with ".tex" extension ( I am using Vim-latex suite). I don't know why?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI am using
nnoremap <C-Space> i
inoremap <C-Space> <Esc>
to map to Esc. It works for all file with any extension but it doesn't work for the files with ".tex" extension ( I am using Vim-latex suite). I don't know why?
:map
and check if <c-space> is bind to something else (maybe some plugin)? – tga Aug 27 '18 at 2:57<unique>
in your mapping to have an error raised if another plugin try to overwrite it. – Charles Gueunet Aug 27 '18 at 12:10map <unique> <C-Space> <Esc>
. It should returnE277: mapping already exists for...
if overwritten, with the corresponding file and line. – Charles Gueunet Aug 27 '18 at 17:20