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