From 3c02dc948ffc570394370d3fd26983cdca3fecc6 Mon Sep 17 00:00:00 2001 From: Peter Dahlberg Date: Fri, 4 Dec 2015 16:43:45 +0100 Subject: [PATCH] more vim, some py3 hack --- vim/vimrc | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 662a83f..27571d4 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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 :CtrlPBuffer " 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 = '' let g:yankring_replace_n_nkey = '' - nnoremap :YRShow + +" NERDTree +nnoremap :NERDTreeToggle + " -------------------------------------------" set backspace=indent,eol,start