Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add a set of g:pymode_lint_*_symbol options.#295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
klen merged 1 commit intopython-mode:developfromkdeldycke:develop
Oct 13, 2013
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionsAUTHORS
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,3 +30,4 @@ Contributors:
* Lowe Thiderman (thiderman);
* Naoya Inada (naoina);
* Anler Hp (ikame);
* Kevin Deldycke (kdeldycke);
1 change: 1 addition & 0 deletionsChangelog.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,7 @@ Changelog
* Support 'pudb' in breakpoints;
* Pyrun can now operate on a range of lines, and does not need to save (c) lawrenceakka
* Update pylama to version 1.5.0
* Add a set of `g:pymode_lint_*_symbol` options;

## 2013-05-15 0.6.18
--------------------
Expand Down
7 changes: 7 additions & 0 deletionsREADME.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -193,6 +193,13 @@ Default values: ::
" Maximal height of pylint error window
let g:pymode_lint_maxheight = 6

" Symbol definition
let g:pymode_lint_todo_symbol = 'WW'
let g:pymode_lint_comment_symbol = 'CC'
let g:pymode_lint_visual_symbol = 'RR'
let g:pymode_lint_error_symbol = 'EE'
let g:pymode_lint_info_symbol = 'II'
let g:pymode_lint_pyflakes_symbol = 'FF'

.. note::
Pylint options (ex. disable messages) may be defined in ``$HOME/pylint.rc``
Expand Down
6 changes: 6 additions & 0 deletionsautoload/pymode/troubleshooting.vim
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -60,6 +60,12 @@ fun! pymode#troubleshooting#Test() "{{{
call append('$', 'let pymode_lint_cwindow = ' . string(g:pymode_lint_cwindow))
call append('$', 'let pymode_lint_message = ' . string(g:pymode_lint_message))
call append('$', 'let pymode_lint_signs = ' . string(g:pymode_lint_signs))
call append('$', 'let pymode_lint_todo_symbol = ' . string(g:pymode_lint_todo_symbol))
call append('$', 'let pymode_lint_comment_symbol = ' . string(g:pymode_lint_comment_symbol))
call append('$', 'let pymode_lint_visual_symbol = ' . string(g:pymode_lint_visual_symbol))
call append('$', 'let pymode_lint_error_symbol = ' . string(g:pymode_lint_error_symbol))
call append('$', 'let pymode_lint_info_symbol = ' . string(g:pymode_lint_info_symbol))
call append('$', 'let pymode_lint_pyflakes_symbol = ' . string(g:pymode_lint_pyflakes_symbol))
call append('$', 'let pymode_lint_jump = ' . string(g:pymode_lint_jump))
call append('$', 'let pymode_lint_hold = ' . string(g:pymode_lint_hold))
call append('$', 'let pymode_lint_minheight = ' . string(g:pymode_lint_minheight))
Expand Down
55 changes: 55 additions & 0 deletionsdoc/pymode.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -76,6 +76,18 @@ PythonMode. These options should be set in your vimrc.

|'pymode_lint_signs'| Place signs

|'pymode_lint_todo_symbol'| Todo symbol

|'pymode_lint_comment_symbol'| Comment symbol

|'pymode_lint_visual_symbol'| Visual symbol

|'pymode_lint_error_symbol'| Error symbol

|'pymode_lint_info_symbol'| Info symbol

|'pymode_lint_pyflakes_symbol'| PyFlakes' info symbol

|'pymode_lint_jump'| Auto jump to first error

|'pymode_lint_hold'| Hold cursor in current window
Expand DownExpand Up@@ -296,6 +308,49 @@ Default: 1.

If this option is set to 0 then pylint will not place error signs.

------------------------------------------------------------------------------
*'pymode_lint_todo_symbol'*
Values: Symbol for todo signs.
Default: "WW".

This option sets the symbol to use in the gutter to display todo signs.

------------------------------------------------------------------------------
*'pymode_lint_comment_symbol'*
Values: Symbol for comment signs.
Default: "CC".

This option sets the symbol to use in the gutter to display comment signs.

------------------------------------------------------------------------------
*'pymode_lint_visual_symbol'*
Values: Symbol for visual signs.
Default: "RR".

This option sets the symbol to use in the gutter to display visual signs.

------------------------------------------------------------------------------
*'pymode_lint_error_symbol'*
Values: Symbol for error signs.
Default: "EE".

This option sets the symbol to use in the gutter to display error signs.

------------------------------------------------------------------------------
*'pymode_lint_info_symbol'*
Values: Symbol for info signs.
Default: "II".

This option sets the symbol to use in the gutter to display info signs.

------------------------------------------------------------------------------
*'pymode_lint_pyflakes_symbol'*
Values: Symbol for PyFlakes' info signs.
Default: "FF".

This option sets the symbol to use in the gutter to display PyFlakes' info
signs.

------------------------------------------------------------------------------
*'pymode_lint_jump'*
Values: 0 or 1.
Expand Down
30 changes: 24 additions & 6 deletionsftplugin/python/init-pymode.vim
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -108,16 +108,34 @@ if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
" errors ruller, even if there's no errors.
call pymode#Default("g:pymode_lint_signs_always_visible", 0)

" OPTION: g:pymode_lint_todo_symbol -- string. Todo symbol.
call pymode#Default("g:pymode_lint_todo_symbol", "WW")

" OPTION: g:pymode_lint_comment_symbol -- string. Comment symbol.
call pymode#Default("g:pymode_lint_comment_symbol", "CC")

" OPTION: g:pymode_lint_visual_symbol -- string. Visual symbol.
call pymode#Default("g:pymode_lint_visual_symbol", "RR")

" OPTION: g:pymode_lint_error_symbol -- string. Error symbol.
call pymode#Default("g:pymode_lint_error_symbol", "EE")

" OPTION: g:pymode_lint_info_symbol -- string. Info symbol.
call pymode#Default("g:pymode_lint_info_symbol", "II")

" OPTION: g:pymode_lint_pyflakes_symbol -- string. PyFlakes' info symbol.
call pymode#Default("g:pymode_lint_pyflakes_symbol", "FF")

" OPTION: g:pymode_lint_signs -- bool. Place error signs
if (!pymode#Default("g:pymode_lint_signs", 1) || g:pymode_lint_signs) && has('signs')

" DESC: Signs definition
sign define PymodeW text=WWtexthl=Todo
sign define PymodeC text=CCtexthl=Comment
sign define PymodeR text=RRtexthl=Visual
sign define PymodeE text=EEtexthl=Error
sign define PymodeI text=IItexthl=Info
sign define PymodeF text=FFtexthl=Info
execute 'sign define PymodeW text=' . g:pymode_lint_todo_symbol . "texthl=Todo"
execute 'sign define PymodeC text=' . g:pymode_lint_comment_symbol . "texthl=Comment"
execute 'sign define PymodeR text=' . g:pymode_lint_visual_symbol . "texthl=Visual"
execute 'sign define PymodeE text=' . g:pymode_lint_error_symbol . "texthl=Error"
execute 'sign define PymodeI text=' . g:pymode_lint_info_symbol . "texthl=Info"
execute 'sign define PymodeF text=' . g:pymode_lint_pyflakes_symbol . "texthl=Info"

if !pymode#Default("g:pymode_lint_signs_always_visible", 0) || g:pymode_lint_signs_always_visible
" Show the sign's ruller if asked for, even it there's no error to show
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp