Error detected while processing ... airline.vim
Update: adding set nocompatible in ~/.vimrc fixed this issue
Receiving this message while starting vim with air-line (installed by manually moving zipped files into ~/.vim):
Error detected while processing ~/.vim/autoload/airline.vim:
line 85:
E697: Missing end of List ']':
E15: Invalid expression: [
line 86:
E10: \ should be followed by /, ? or &
line 87:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
Error detected while processing function <SNR>8_airline_toggle:
line 16:
E10: \ should be followed by /, ? or &
line 17:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
syntaxset FileType
*exe "set syntax=" . expand("<amatch>")
line 22:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
line 25:
E10: \ should be followed by /, ? or &
line 26:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
Receiving this message while starting vim with air-line (installed via pathogen):
Error detected while processing ~/.vim/bundle/vim-airline/autoload/airline.vim:
line 85:
E697: Missing end of List ']':
E15: Invalid expression: [
line 86:
E10: \ should be followed by /, ? or &
line 87:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
Error detected while processing function <SNR>12_airline_toggle:
line 16:
E10: \ should be followed by /, ? or &
line 17:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
syntaxset FileType
*exe "set syntax=" . expand("<amatch>")
filetypeplugin FileType
*call s:LoadFTPlugin()
filetypeindent FileType
*call s:LoadIndent()
line 22:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
line 25:
E10: \ should be followed by /, ? or &
line 26:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
can you post your vimrc here or to a gist? did you change your coptions by chance? thanks.
Here is my ~/.vimrc. The line execute pathogen#infect() is removed for the case of manual installation as I currently have no other plugins installed.
I tried both a manual installation (git clone and move pathogen.vim to ~/.vim/autoload/) as well as installation of vim-pathogen package via AUR.
I also tried manual installation of airline (moved all files into ~/.vim) since I have no other plugins installed anyway and turning pathogen off. Still getting the same errors.
I'm not familar with what coptions are. In case you were referring to cindent, I tried commenting that out as well.
In case it matters, I'm on Archlinux using vim 7.4.16.
execute pathogen#infect()
syntax on
filetype plugin indent on
set t_Co=256 " 256 colors
set background=dark " Lighter colors for dark background
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Ignore case in search patterns
set number " Show line numbers
set hidden " Hide buffers when they are abandoned
"set autowrite " Automatically save before commands like :next and :make
set showmatch " When a bracket is inserted, briefly jump to the matching one
set hlsearch " highlighted search
set incsearch " search while typing
set backspace=indent,eol,start " fix backspace
set mouse=a " Enable mouse usage (all modes)
set smartcase " ignore case UNLESS capital letter used
set cindent " C indentation
set autoindent
set tabstop=4 " Number of spaces that a <Tab> in the file counts for
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent
set expandtab " Use the appropriate number of spaces to insert a <Tab>
" <Ctrl>-V, <Tab> for real tab
set smarttab " When on, a <Tab> in front of a line inserts blanks
" according to 'shiftwidth'. 'tabstop' is used in other
" places. A <BS> will delete a 'shiftwidth' worth of space
" at the start of the line
thank you for the info. please add the following to your vimrc and see if it goes away:
set cpooptions-=C
please verify for me that this fixes the problem for you, and i can make some relevant changes to the code to handle this. thanks.
ah yes, '>' and '<' are the default values. please have a look at the help and/or faq for how to configure the separators to either using powerline symbols or some other choice (a lot of people like setting them to empty strings). thanks.
In case it helps anyone, I had the same issue with my setup (putty + Xserver on Windows). Just had to kill Xserver and restart it. That did it.