Hallo liebe Community,
zur Zeit versuche ich gerade vim darauf zu trimmen, das ich es für die Entwicklung mit Python verwenden kann.
Ich habe jetzt schon erfolgreich einige Plugin installiert, allerdings kommt nun bei mir eine Fehlermeldung die nicht gefixt bekommen, auch nach recherche via Google.
Die passenden Ordner sind auch im .vim Ordner hinterlegt
Die Fehlermeldung lautet wie folgt:
Error detected while processing /home/theodor/.vimrc:
line 77:
E185: Cannot find color scheme 'zenburn'
line 79:
E117: Unknown function: togglebg#map
Und mein .vimrc:
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
" ...
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" UTF-8 Support
set encoding=utf-8
"split navigations
"More natural split opening
set splitbelow
set splitright
"Easier split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
" Folding option variables
" Preview docstring in fold text Default=0
let g:SimpylFold_docstring_preview=1
" PEP8 Indentation
au BufNewFile,BufRead *.py
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
"au command
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
"Auto-Complete YouCompleteMe
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
"Syntax Highlighting
let python_highlight_all=1
syntax on
" ColorSchemes
if has('gui_running')
set background=dark
colorscheme solarized
else
colorscheme zenburn
endif
call togglebg#map("<F5>")
" File Browsing
"Hide .pyc Files
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
"Line Numbering
set nu
"System Clipboards
set clipboard=unnamed
"PLUGINS
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-syntastic/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}