File tree Expand file tree Collapse file tree 4 files changed +34
-11
lines changed Expand file tree Collapse file tree 4 files changed +34
-11
lines changed Original file line number Diff line number Diff line change 6
6
"
7
7
" Only python-mode will be loaded.
8
8
9
+ " Disable all persistence between sessions.
10
+ let skip_defaults_vim= 1
11
+ " TODO XXX: this nevertheless keeps viminfo enabled. As a workaround the flag
12
+ " '-i NONE' should be added to vim's loading.
13
+ set viminfo =
14
+ set nobackup
15
+ set noswapfile
16
+
9
17
" Modify vimrc configuration.
10
18
execute (' set rtp+=' . expand (' <sfile>:p:h' ))
11
19
set rtp -= $HOME /.vim
@@ -19,3 +27,6 @@ let g:pymode_debug = 1
19
27
if ! (has (' win16' ) || has (' win32' ) || has (' win64' ))
20
28
set shell = /bin/ bash
21
29
endif
30
+
31
+ " IMPORTANT: Do note that the history of this session is saved on the log file.
32
+ " See the augroup in ./ftplugin/python/pymode.vim file.
Original file line number Diff line number Diff line change @@ -693,13 +693,16 @@ Python-mode doesn't work
693
693
------------------------
694
694
695
695
Start python mode with:
696
- `vim -u <path_to_pymode> /debugvimrc.vim`
697
- Reproduce the error and submit your python mode debug file. You check its
696
+ `vim -i NONE - u <path_to_pymode> /debugvimrc.vim`
697
+ Reproduce the error and submit your python mode debug file. You can check its
698
698
location with `:messages ` for something like:
699
699
`pymode debug msg 1: Starting debug on: 2017-11-18 16:44:13 with file /tmp/pymode_debug_file.txt`
700
700
Please submit the entire content of the file along with a reasoning of why the
701
701
plugin seems broken.
702
702
703
+ *Underlined do check for sensitive information in the file before
704
+ *Underlined submitting!
705
+
703
706
704
707
Rope completion is very slow *pymode-rope-slow*
705
708
----------------------------
Original file line number Diff line number Diff line change @@ -241,9 +241,17 @@ if g:pymode_debug
241
241
\ . strftime (" \% Y-\% m-\% d \% H:\% M:\% S" )
242
242
\ . ' with file ' . &verbosefile )
243
243
" }}}
244
+ " Redefine folding expression. {{{
244
245
if g: pymode_folding
245
246
setlocal foldexpr = pymode#debug#foldingexpr (v: lnum )
246
247
endif
247
248
call pymode#debug#sysinfo ()
249
+ " }}}
250
+ " Define auto commands for vim. {{{
251
+ augroup augroup_save_issue_commands
252
+ autocmd !
253
+ autocmd VimLeave *.py | call pymode#debug (' Session history:' ) | silent ! history
254
+ augroup END
255
+ " }}}
248
256
249
- endif
257
+ endif
Original file line number Diff line number Diff line change @@ -103,17 +103,18 @@ Then rebuild **helptags** in vim:
103
103
** filetype-plugin** (` :help filetype-plugin-on ` ) and ** filetype-indent**
104
104
(` :help filetype-indent-on ` ) must be enabled to use python-mode.
105
105
106
- # Troubleshooting
106
+ # Troubleshooting/Debugging
107
107
108
108
If your python-mode doesn't work:
109
109
110
- 1 . ** (From the FAQ)** Start python mode with:
111
- ` vim -u <path_to_pymode>/debugvimrc.vim `
112
- Reproduce the error and submit your python mode debug file. You check its
113
- location with ` :messages ` for something like:
114
- ` pymode debug msg 1: Starting debug on: 2017-11-18 16:44:13 with file /tmp/pymode_debug_file.txt ` .
115
- Please submit the entire content of the file along with a reasoning of why
116
- the plugin seems broken.
110
+ ** (From the FAQ)** Start python mode with:
111
+ ` vim -i NONE -u <path_to_pymode>/debugvimrc.vim `
112
+ Reproduce the error and submit your python mode debug file. You can check its
113
+ location with ` :messages ` for something like:
114
+ ` pymode debug msg 1: Starting debug on: 2017-11-18 16:44:13 with file /tmp/pymode_debug_file.txt ` .
115
+ Please submit the entire content of the file along with a reasoning of why the
116
+ plugin seems broken.
117
+ *** Do check for sensitive information in the file before submitting.***
117
118
118
119
# Frequent problems
119
120
You can’t perform that action at this time.
0 commit comments