mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-16 02:06:39 +00:00
Update with some python stuff
Had a bunch of python stuff on multiple local vimrcs so moving it to the synced version
This commit is contained in:
parent
96eb187886
commit
4b7a427429
51
vimrc
51
vimrc
@ -73,7 +73,6 @@ Plugin 'morhetz/gruvbox'
|
|||||||
"Plugin 'github.vim'
|
"Plugin 'github.vim'
|
||||||
|
|
||||||
" -- Filetypes --
|
" -- Filetypes --
|
||||||
Plugin 'ViViDboarder/vim-forcedotcom'
|
|
||||||
Plugin 'pdurbin/vim-tsv'
|
Plugin 'pdurbin/vim-tsv'
|
||||||
Plugin 'pangloss/vim-javascript'
|
Plugin 'pangloss/vim-javascript'
|
||||||
Plugin 'fatih/vim-go'
|
Plugin 'fatih/vim-go'
|
||||||
@ -82,9 +81,17 @@ Plugin 'hsanson/vim-android'
|
|||||||
Plugin 'groovy.vim'
|
Plugin 'groovy.vim'
|
||||||
Plugin 'tfnico/vim-gradle'
|
Plugin 'tfnico/vim-gradle'
|
||||||
Plugin 'dart-lang/dart-vim-plugin'
|
Plugin 'dart-lang/dart-vim-plugin'
|
||||||
|
Plugin 'avakhov/vim-yaml'
|
||||||
|
"Plugin 'chrisbra/csv.vim'
|
||||||
|
" SFDC
|
||||||
|
Plugin 'ViViDboarder/vim-forcedotcom'
|
||||||
"Plugin 'ViViDboarder/force-vim'
|
"Plugin 'ViViDboarder/force-vim'
|
||||||
"Plugin 'ViViDboarder/vim-abuse-the-force'
|
"Plugin 'ViViDboarder/vim-abuse-the-force'
|
||||||
"Plugin 'chrisbra/csv.vim'
|
" Python
|
||||||
|
Plugin 'klen/python-mode'
|
||||||
|
Plugin 'davidhalter/jedi-vim'
|
||||||
|
Plugin 'alfredodeza/pytest.vim'
|
||||||
|
Plugin 'alfredodeza/coveragepy.vim'
|
||||||
|
|
||||||
" ***************************
|
" ***************************
|
||||||
" Built in settings
|
" Built in settings
|
||||||
@ -268,8 +275,14 @@ nmap gB :bp<CR>
|
|||||||
|
|
||||||
set notitle
|
set notitle
|
||||||
|
|
||||||
|
" Easy update tags
|
||||||
command TagsUpdate Dispatch ctags -R .
|
command TagsUpdate Dispatch ctags -R .
|
||||||
|
|
||||||
|
" Command to display TODO tags in project
|
||||||
|
command Todo Ag! TODO
|
||||||
|
|
||||||
|
au BufRead,BufNewFile *.md set syntax=markdown
|
||||||
|
|
||||||
" ********************************
|
" ********************************
|
||||||
" PLUGIN SETTINGS
|
" PLUGIN SETTINGS
|
||||||
" ********************************
|
" ********************************
|
||||||
@ -385,7 +398,24 @@ else
|
|||||||
let g:neocomplcache_max_list = 10
|
let g:neocomplcache_max_list = 10
|
||||||
"let g:neocomplcache_enable_camel_case_completion = 1
|
"let g:neocomplcache_enable_camel_case_completion = 1
|
||||||
let g:neocomplcache_enable_fuzzy_completion = 1
|
let g:neocomplcache_enable_fuzzy_completion = 1
|
||||||
|
if !exists('g:neocomplcache_force_omni_patterns')
|
||||||
|
let g:neocomplcache_force_omni_patterns = {}
|
||||||
|
endif
|
||||||
|
let g:neocomplcache_force_omni_patterns.python =
|
||||||
|
\ '\%([^. \t]\.\|^\s*@\|^\s*from\s.\+import \|^\s*from \|^\s*import \)\w*'
|
||||||
|
" alternative pattern: '\h\w*\|[^. \t]\.\w*'
|
||||||
endif
|
endif
|
||||||
|
"
|
||||||
|
" Enable omni completion.
|
||||||
|
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
||||||
|
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
|
||||||
|
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
|
||||||
|
" Skip python because we have jedi-vim
|
||||||
|
"autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
||||||
|
autocmd FileType python setlocal omnifunc=jedi#completions
|
||||||
|
autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
|
||||||
|
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
|
||||||
|
|
||||||
|
|
||||||
nmap <leader>a :Ag<Space>
|
nmap <leader>a :Ag<Space>
|
||||||
nmap <leader>i* :Ag<Space>-i<Space>'\b<c-r><c-W>\b'<CR>
|
nmap <leader>i* :Ag<Space>-i<Space>'\b<c-r><c-W>\b'<CR>
|
||||||
@ -399,7 +429,20 @@ let g:syntastic_html_tidy_ignore_errors = [
|
|||||||
\ 'proprietary attribute "ng-app"',
|
\ 'proprietary attribute "ng-app"',
|
||||||
\ 'proprietary attribute "ng-click"'
|
\ 'proprietary attribute "ng-click"'
|
||||||
\ ]
|
\ ]
|
||||||
|
let g:syntastic_python_checkers = ['flake8']
|
||||||
|
let g:syntastic_python_flake8_args='--max-line-length=80'
|
||||||
|
" let g:syntastic_python_checkers = ['pep8']
|
||||||
|
" let g:syntastic_python_pep8_args='--ignore=E501'
|
||||||
|
|
||||||
" Command to display TODO tags in project
|
" Pymode
|
||||||
command Todo Ag! TODO
|
let g:pymode_lint = 1
|
||||||
|
let g:pymode_lint_on_write = 0
|
||||||
|
let g:pymode_lint_checkers = ['flake8']
|
||||||
|
let g:pymode_rope = 0
|
||||||
|
let g:pymode_rope_completion = 0
|
||||||
|
let g:pymode_rope_complete_on_dot = 0
|
||||||
|
let g:pymode_breakpoint = 0
|
||||||
|
|
||||||
|
" jedi-vim
|
||||||
|
let g:jedi#completions_enabled = 0
|
||||||
|
let g:jedi#auto_vim_configuration = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user