Skip to content

Instantly share code, notes, and snippets.

@cldershem
Created October 22, 2013 00:08
Show Gist options
  • Save cldershem/7093101 to your computer and use it in GitHub Desktop.
Save cldershem/7093101 to your computer and use it in GitHub Desktop.
vim powerline issues
Error detected while processing VimEnter Auto commands for "*":
2013-10-21 20:06:41,304:ERROR:vim:syntastic:Exception while computing segment: i
nvalid expression
Error detected while processing VimEnter Auto commands for "*":
Traceback (most recent call last):
Error detected while processing VimEnter Auto commands for "*":
File "/home/cldershem/.local/lib/python2.7/site-packages/powerline/theme.py",
line 89, in get_segments
Error detected while processing VimEnter Auto commands for "*":
contents = segment['contents_func'](pl=self.pl, segment_info=segment_info, *
*segment['args'])
Error detected while processing VimEnter Auto commands for "*":
File "/home/cldershem/.local/lib/python2.7/site-packages/powerline/segments/vi
m.py", line 66, in ret
Error detected while processing VimEnter Auto commands for "*":
r = func(**kwargs)
Error detected while processing VimEnter Auto commands for "*":
File "/home/cldershem/.local/lib/python2.7/site-packages/powerline/segments/pl
ugin/syntastic.py", line 12, in syntastic
Error detected while processing VimEnter Auto commands for "*":
has_errors = int(vim.eval('g:SyntasticLoclist.current().hasErrorsOrWarningsT
oDisplay()'))
Error detected while processing VimEnter Auto commands for "*":
error: invalid expression
Error detected while processing VimEnter Auto commands for "*":
E716: Key not present in Dictionary: current().hasErrorsOrWarningsToDisplay()
Error detected while processing VimEnter Auto commands for "*":
E15: Invalid expression: g:SyntasticLoclist.current().hasErrorsOrWarningsToDispl
ay()
" supposedly changes stuff based on filetype
filetype on
filetype plugin on
" something for python comments
autocmd FileType python set commentstring=#\ %s
" fixes colors for dark background
set background=dark
" leader
let mapleader=","
" switch between buffers
nnoremap <leader><leader> <c-^>
" Syntax highlighting
syntax on
" autoindent
filetype indent on
set autoindent
" line numbers
set nu
" Highlight search
set hlsearch
set incsearch
" Highlight search off
:nmap <leader>q :nohlsearch<CR>
" pathogen (plugins in folders)
execute pathogen#infect()
" ctrlp
set runtimepath^=~/.vim/bundle/ctrlp.vim
" nerd tree
:nmap nt :NERDTreeToggle<CR>
let g:NERDTreeWinSize = 30
let g:NERDTreeIgnore = ['\.pyc$']
" closetag
" :au Filetype html,xml,xsl source ~/.vim/scripts/closetag.vim
:let g:closetag_html_style=1
:source ~/.vim/bundle/closetag.vim
" escape key
:imap jj <Esc>
" spaces not tabs
set tabstop=4
set shiftwidth=4
set expandtab
" no line wrap
set nowrap
" save/restore folding
autocmd BufWinLeave .* mkview
autocmd BufWinEnter .* silent loadview
" folding
:set foldmethod=indent
" nnoremap <Space> za " space toggles fold
" run flake8 (pep8 + pyflakes) on save
" autocmd BufWritePost *.py call Flake8()
let g:syntastic_check_on_open=1
let g:syntastic_python_checkers=["flake8"]
let g:syntastic_always_populate_loc_list=1
" vim-less support
nnoremap ,m :w <BAR> !lessc % > %:t:r.css<CR><space>
" LaTeX rubber macro for compiling with errors
autocmd filetype tex nnoremap <leader>ce :w<CR>:!rubber --pdf --warn all %<CR>
" LaTeX rubber macro for compiling with no errors
autocmd filetype tex nnoremap <leader>cne :w<CR>:!rubber --pdf %<CR><CR>
" LaTeX PDF macro
autocmd filetype tex nnoremap <leader>v :!evince %:r.pdf &<CR><CR>
" spellcheck for LaTeX and txt
autocmd BufNewFile,BufRead *.tex setlocal spell spelllang=en_us
autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en_us
" vim-airline
" let g:airline_powerline_fonts = 1
" powerline
"python from powerline.vim import setup as powerline_setup
"python powerline_setup()
"python del powerline_setup
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256
@WetzelVictor
Copy link

Well that was a very simple fix... updating my plugins fixed everything. I feel a little bit of shame about not even thinking about doing it haha
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment