-
-
Notifications
You must be signed in to change notification settings - Fork 766
Expand file tree
/
Copy pathvimrc.ci
More file actions
69 lines (60 loc) · 2.18 KB
/
vimrc.ci
File metadata and controls
69 lines (60 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
" CI-specific vimrc for direct test execution
set nocompatible
set nomore
set shortmess=at
set cmdheight=10
set backupdir=
set directory=
set undodir=
set viewdir=
set noswapfile
set paste
set shell=bash
" Enable magic for motion support (required for text object mappings)
set magic
" Enable filetype detection
filetype plugin indent on
syntax on
" Set up runtimepath for CI environment
let s:vim_home = '\/home\/diraol\/.vim'
let s:project_root = '\/home\/diraol\/dev\/floss\/python-mode'
" Add Vader.vim to runtimepath
execute 'set rtp+=' . s:vim_home . '/pack/vader/start/vader.vim'
" Add python-mode to runtimepath
execute 'set rtp+=' . s:project_root
" Load python-mode configuration FIRST to set g:pymode_rope = 1
" This ensures the plugin will define all rope variables when it loads
if filereadable(s:project_root . '/tests/utils/pymoderc')
execute 'source ' . s:project_root . '/tests/utils/pymoderc'
endif
" Load python-mode plugin AFTER pymoderc so it sees rope is enabled
" and defines all rope configuration variables
runtime plugin/pymode.vim
" Ensure rope variables exist even if rope gets disabled later
" The plugin only defines these when g:pymode_rope is enabled,
" but tests expect them to exist even when rope is disabled
if !exists('g:pymode_rope_completion')
let g:pymode_rope_completion = 1
endif
if !exists('g:pymode_rope_autoimport_import_after_complete')
let g:pymode_rope_autoimport_import_after_complete = 0
endif
if !exists('g:pymode_rope_regenerate_on_write')
let g:pymode_rope_regenerate_on_write = 1
endif
if !exists('g:pymode_rope_goto_definition_bind')
let g:pymode_rope_goto_definition_bind = '<C-c>g'
endif
if !exists('g:pymode_rope_rename_bind')
let g:pymode_rope_rename_bind = '<C-c>rr'
endif
if !exists('g:pymode_rope_extract_method_bind')
let g:pymode_rope_extract_method_bind = '<C-c>rm'
endif
if !exists('g:pymode_rope_organize_imports_bind')
let g:pymode_rope_organize_imports_bind = '<C-c>ro'
endif
" Note: Tests will initialize python-mode via tests/vader/setup.vim
" which is sourced in each test's "Before" block. The setup.vim may
" disable rope (g:pymode_rope = 0), but the config variables will
" still exist because they were defined above.