|
| 1 | +" set the runtime path to include Vundle and initialize |
| 2 | +set rtp+=~/.vim/bundle/Vundle.vim |
| 3 | + |
| 4 | +filetype off |
| 5 | +call vundle#begin() |
| 6 | +" alternatively, pass a path where Vundle should install plugins |
| 7 | +"call vundle#begin('~/some/path/here') |
| 8 | +" let Vundle manage Vundle, required |
| 9 | +Plugin 'VundleVim/Vundle.vim' |
| 10 | +Plugin 'davidhalter/jedi-vim' |
| 11 | +Plugin 'ervandew/supertab' |
| 12 | +" Brief help |
| 13 | +" " :PluginList - lists configured plugins |
| 14 | +" " :PluginInstall - installs plugins; append `!` to update or just |
| 15 | +" :PluginUpdate |
| 16 | +" " :PluginSearch foo - searches for foo; append `!` to refresh local cache |
| 17 | +" " :PluginClean - confirms removal of unused plugins; append `!` to |
| 18 | +" auto-approve removal |
| 19 | +call vundle#end() |
| 20 | +filetype on |
| 21 | + |
| 22 | +set noautowrite |
| 23 | +set nobackup |
| 24 | +set backspace=2 |
| 25 | +set comments=b:#,:%,fb:-,n:>,n:) |
| 26 | +set dictionary=/usr/dict/words |
| 27 | +set noerrorbells |
| 28 | +"set noesckeys "causes strange pase behaviour on osx |
| 29 | +set helpheight=0 |
| 30 | +set hidden |
| 31 | +"set highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws |
| 32 | +set noicon |
| 33 | +set noignorecase |
| 34 | +set noinsertmode |
| 35 | +set joinspaces |
| 36 | +set laststatus=2 |
| 37 | +set magic |
| 38 | +set nomodeline |
| 39 | +set nonumber |
| 40 | +set report=0 |
| 41 | +set ruler |
| 42 | +set shell=bash |
| 43 | +set shiftwidth=8 |
| 44 | +"set shortmess=at |
| 45 | +set showcmd |
| 46 | +set showmatch |
| 47 | +set showmode |
| 48 | +set tabstop=4 |
| 49 | +set title |
| 50 | +set ttyfast |
| 51 | +set ttybuiltin |
| 52 | +set visualbell |
| 53 | +set t_vb= |
| 54 | +set whichwrap=<,> |
| 55 | +" set wildchar=<TAB> |
| 56 | +set nowritebackup |
| 57 | +set undolevels=10000 |
| 58 | +"set cpoptions=aABceuFs |
| 59 | + |
| 60 | +syntax on |
| 61 | +set hlsearch |
| 62 | +set incsearch |
| 63 | + |
| 64 | +" Fix arrow key behaviour during insert mode |
| 65 | +imap <ESC>OA <Up> |
| 66 | +imap <ESC>OB <Down> |
| 67 | +imap <ESC>OC <Right> |
| 68 | +imap <ESC>OD <Left> |
| 69 | +
|
| 70 | +" window switching |
| 71 | +nnoremap <C-h> <C-w>h |
| 72 | +nnoremap <C-l> <C-w>l |
| 73 | +nnoremap <F2> <C-w>k |
| 74 | +nnoremap <F3> <C-w>j |
| 75 | +"nnoremap <C-j> <C-w>j |
| 76 | +"nnoremap <C-k> <C-w>k |
| 77 | + |
| 78 | +" jedi-vim settings |
| 79 | +let g:jedi#popup_on_dot = 0 |
| 80 | +let g:jedi#show_call_signatures = "2" |
| 81 | +let g:jedi#use_splits_not_buffers = "right" |
| 82 | +"let g:jedi#completions_command = "<C-space>" |
| 83 | + |
| 84 | +nnoremap <F1> :w<CR> |
| 85 | +inoremap <F1> <esc>:w<CR> |
| 86 | +
|
| 87 | +nnoremap <F7> :bd<CR> |
| 88 | +inoremap <F7> <esc>:bd<CR> |
| 89 | +
|
| 90 | +nnoremap <F6> :bp\|bd #<CR> |
| 91 | +inoremap <F6> <esc>:bp\|bd #<CR> |
| 92 | +
|
| 93 | +nnoremap <F8> :q<CR> |
| 94 | +inoremap <F8> <esc>:q<CR> |
0 commit comments