Due to working in an environment with no clipboard support I have the following line in my
nmap <F12> :set invnumber<CR> <bar> :set invpaste<CR>
Oddly enough, this works for some files I open, but any other file (or new ones) only the first part (
invnumber) is run, and the
<bar> and anything that follows is ignored.
nmapshows the same output on working and non-working files
- I thought it might be somehow cached on a name, but new files with names matching working ones do not work either.
- I tried reversing the order of commands, but only the first is run on non-working files.
- Removed all plugins, but this behavior persists.
- Cleaned the vimrc except this line - persists.
What is the problem, or if it's not something simple, how do I debug this?
VIM version is 7.4, (I do not control this) and the plugins I use are matchit, surround, Tabular, and flake8.