more vim, some py3 hack

This commit is contained in:
2015-12-04 16:43:45 +01:00
parent 46ed180309
commit 3c02dc948f

View File

@@ -1,3 +1,7 @@
" hack to lock vim into py3
if has("python3")
py3 pass
endif
" No Compatibility. That just sucks
" especially annoying on redhat/windows/osx
set nocompatible
@@ -8,22 +12,23 @@ filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Edit files using sudo/su
Plugin 'chrisbra/SudoEdit.vim'
" Python Mode "
Plugin 'klen/python-mode'
" Edit files using sudo/su
Plugin 'chrisbra/SudoEdit.vim'
" Fuzzy finder (files, mru, etc)
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'fisadev/vim-ctrlp-cmdpalette'
Plugin 'YankRing.vim'
Plugin 'scrooloose/nerdtree'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
@@ -73,6 +78,8 @@ let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
" some more ignores
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.tar.*,*.tar " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_cmdpalette_execute = 1
nnoremap <silent> <F10> :CtrlPBuffer<CR>
" chrisbra/SudoEdit.vim
@@ -82,13 +89,18 @@ set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
" Enable colorcolumn display at max_line_length *'g:pymode_options_colorcolumn'*
let g:pymode_options_colorcolumn = 1
let g:pymode_options_max_line_length = 100
let g:pymode_python = 'python3'
if has("python3")
let g:pymode_python = 'python3'
endif
" yankring
let g:yankring_replace_n_pkey = '<m-p>'
let g:yankring_replace_n_nkey = '<m-n>'
nnoremap <silent> <F11> :YRShow<CR>
" NERDTree
nnoremap <silent> <F9> :NERDTreeToggle<CR>
" -------------------------------------------"
set backspace=indent,eol,start