Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add jedi, vimux, some syntax plugins

jedi might be messing with default ctrl+n auto completion.

default behavior jumps to the first match right away.

with jedi on it seems to only open the auto complete menu,
so you have to mash it twice every time.

must be an artifact of how jedi plugs into that dropdown.

need to figure out how to configure that so that
it's smart enough to be selective on which instances it hesitates
  • Loading branch information...
commit 69564d9a13145fee4d53d76c846d3cbd31fa7ed7 1 parent 0329803
@cpdean authored
Showing with 35 additions and 5 deletions.
  1. +35 −5 .vimrc
View
40 .vimrc
@@ -53,12 +53,17 @@ Bundle 'vim-scripts/VimClojure'
Bundle 'kchmck/vim-coffee-script'
Bundle 'repos-scala/scala-vundle'
Bundle 'digitaltoad/vim-jade'
+Bundle 'chase/vim-ansible-yaml'
+Bundle 'wting/rust.vim'
" ui features
Bundle 'kien/ctrlp.vim'
Bundle 'msanders/snipmate.vim'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/syntastic'
Bundle 'rking/ag.vim'
+Bundle 'goldfeld/vim-seek'
+Bundle 'davidhalter/jedi-vim'
+Bundle 'benmills/vimux'
"Bundle 'klen/python-mode'
filetype plugin indent on
@@ -77,16 +82,41 @@ set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
" ctrl p stuff
-let g:ctrlp_custom_ignore = {
- \ 'dir': '\v([\/]\.(git|hg|svn)|node_modules)$',
- \ 'file': '\v\.(exe|so|dll|class|)$',
- \ 'link': 'some_bad_symbolic_links',
- \ }
+let g:ctrlp_user_command = 'git ls-files %s' " MacOSX/Linux
+" custom_ignore is not used when user_command is defined
+"let g:ctrlp_custom_ignore = {
+" \ 'dir': '\v([\/]\.(git|hg|svn)|node_modules|target)$',
+" \ 'file': '\v\.(exe|so|dll|class|)$',
+" \ 'link': 'some_bad_symbolic_links',
+" \ }
+
+" jedi vim
+"
+" don't spawn a new tab. keep it in buffer
+" so i maintain jumpstack for moving back/forth
+let g:jedi#use_tabs_not_buffers = 0
+
+" tmuxing
+"
+" init new window to the side
+let g:VimuxHeight = "40"
+let g:VimuxOrientation = "h"
+
+" basic control mappings
+nmap <leader>tt :call VimuxRunCommand("py.test ".expand("%:@"))
+map <leader>tq :VimuxCloseRunner<CR>
+
+" mad rerun skills
+nmap <silent> <CR> :call VimuxRunLastCommand()<CR>
+
+" more savings
+nmap <silent> <leader>w :w<CR>
" add <F6> binding for running python code
" should eventually update it so that I can make <F6> run things based on filetype
nmap <F6> :w<CR>:!python %<CR>
nmap <leader>f :vim <C-R><C-W> **/*.py
+nmap <leader>s :Ag
"noremap j <NOP>
"noremap k <NOP>

0 comments on commit 69564d9

Please sign in to comment.
Something went wrong with that request. Please try again.