I'm currently running raspbian (a 7 version,
cat /etc/debian_version says
7.8) on a Raspberry Pi 2 Model B.
Because I have to edit some of my python files directly on the running system, I copied my
.vimrc file in order to get the vim environment I'm used to work with.
The first thing I noticed is that my self defined keys are not working:
map <C-Right> :tabnext<CR> map <C-Left> :tabprevious<CR> map <C-n> :tabnew<SPACE> map <F9> :set number!<CR> imap <F9> <ESC>:set number!<CR>a set pastetoggle=<F10>
None of these key combinations work, neither Ctrl+n nor F9, etc.
I found this question Mapping Ctrl+s does not work and I decided to check whether the
stty settings were the same or not.
# on my local debian 7 machine $ stty speed 38400 baud; line = 0; eol = M-^?; eol2 = M-^?; swtch = M-^?; iutf8 # on raspbian $ stty speed 38400 baud; line = 0; eol = M-^?; eol2 = M-^?; -brkint
they are clearly different, so I tried syncing the settings
# on my local debian 7 machine $ stty --save 6506:5:4bf:8a3.... # on raspbian $ stty 6506:5:4bf:8a3....
that didn't help either, adding
silent !stty -ixon to my
.vimrc also didn't help.
None of my keymaps seem to be working, I don't understand why.
I also had a strange error with this code:
autocmd BufReadPost * \ if ! exists("g:leave_my_cursor_position_alone") | \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif | \ endif
I've had these lines in my
.vimrc for ages and now I'm getting this:
Error detected while processing /home/teststand/.vimrc-yanez: line 95: E10: \ should be followed by /, ? or & line 96: E10: \ should be followed by /, ? or & line 97: E10: \ should be followed by /, ? or & line 98: E10: \ should be followed by /, ? or & line 99: E10: \ should be followed by /, ? or & Press ENTER or type command to continue
I don't know how to solve these problems. Is the vim build buggy or do I have to change something else in my