mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
348f72524d
commit
b918d99a61
@ -586,16 +586,27 @@ functions to evaluate Python expressions and pass their values to Vim script.
|
|||||||
Python 3 *python3*
|
Python 3 *python3*
|
||||||
|
|
||||||
*:py3* *:python3*
|
*:py3* *:python3*
|
||||||
The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
:[range]py3 {stmt}
|
||||||
if the `:py3` command is working: >
|
:[range]py3 << [endmarker]
|
||||||
:py3 print("Hello")
|
{script}
|
||||||
|
{endmarker}
|
||||||
|
|
||||||
|
:[range]python3 {stmt}
|
||||||
|
:[range]python3 << [endmarker]
|
||||||
|
{script}
|
||||||
|
{endmarker}
|
||||||
|
The `:py3` and `:python3` commands work similar to `:python`. A
|
||||||
|
simple check if the `:py3` command is working: >
|
||||||
|
:py3 print("Hello")
|
||||||
|
<
|
||||||
To see what version of Python you have: >
|
To see what version of Python you have: >
|
||||||
:py3 import sys
|
:py3 import sys
|
||||||
:py3 print(sys.version)
|
:py3 print(sys.version)
|
||||||
< *:py3file*
|
< *:py3file*
|
||||||
|
:[range]py3f[ile] {file}
|
||||||
The `:py3file` command works similar to `:pyfile`.
|
The `:py3file` command works similar to `:pyfile`.
|
||||||
*:py3do*
|
*:py3do*
|
||||||
|
:[range]py3do {body}
|
||||||
The `:py3do` command works similar to `:pydo`.
|
The `:py3do` command works similar to `:pydo`.
|
||||||
|
|
||||||
*E880*
|
*E880*
|
||||||
|
@ -943,10 +943,12 @@ Basic.
|
|||||||
C *c.vim* *ft-c-syntax*
|
C *c.vim* *ft-c-syntax*
|
||||||
|
|
||||||
A few things in C highlighting are optional. To enable them assign any value
|
A few things in C highlighting are optional. To enable them assign any value
|
||||||
to the respective variable. Example: >
|
(including zero) to the respective variable. Example: >
|
||||||
:let c_comment_strings = 1
|
:let c_comment_strings = 1
|
||||||
To disable them use ":unlet". Example: >
|
:let c_no_bracket_error = 0
|
||||||
|
To disable them use `:unlet`. Example: >
|
||||||
:unlet c_comment_strings
|
:unlet c_comment_strings
|
||||||
|
Setting the value to zero doesn't work!
|
||||||
|
|
||||||
An alternative is to switch to the C++ highlighting: >
|
An alternative is to switch to the C++ highlighting: >
|
||||||
:set filetype=cpp
|
:set filetype=cpp
|
||||||
@ -962,8 +964,8 @@ Variable Highlight ~
|
|||||||
except { and } in first column
|
except { and } in first column
|
||||||
Default is to highlight them, otherwise you
|
Default is to highlight them, otherwise you
|
||||||
can't spot a missing ")".
|
can't spot a missing ")".
|
||||||
*c_curly_error* highlight a missing }; this forces syncing from the
|
*c_curly_error* highlight a missing } by finding all pairs; this
|
||||||
start of the file, can be slow
|
forces syncing from the start of the file, can be slow
|
||||||
*c_no_ansi* don't do standard ANSI types and constants
|
*c_no_ansi* don't do standard ANSI types and constants
|
||||||
*c_ansi_typedefs* ... but do standard ANSI types
|
*c_ansi_typedefs* ... but do standard ANSI types
|
||||||
*c_ansi_constants* ... but do standard ANSI constants
|
*c_ansi_constants* ... but do standard ANSI constants
|
||||||
|
@ -292,7 +292,7 @@ func s:StartDebug_term(dict)
|
|||||||
sleep 10m
|
sleep 10m
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
" Interpret commands while the target is running. This should usualy only be
|
" Interpret commands while the target is running. This should usually only be
|
||||||
" exec-interrupt, since many commands don't work properly while the target is
|
" exec-interrupt, since many commands don't work properly while the target is
|
||||||
" running.
|
" running.
|
||||||
call s:SendCommand('-gdb-set mi-async on')
|
call s:SendCommand('-gdb-set mi-async on')
|
||||||
@ -348,7 +348,7 @@ func s:StartDebug_prompt(dict)
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Interpret commands while the target is running. This should usualy only
|
" Interpret commands while the target is running. This should usually only
|
||||||
" be exec-interrupt, since many commands don't work properly while the
|
" be exec-interrupt, since many commands don't work properly while the
|
||||||
" target is running.
|
" target is running.
|
||||||
call s:SendCommand('-gdb-set mi-async on')
|
call s:SendCommand('-gdb-set mi-async on')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2019 Apr 23
|
" Last Change: 2019 Nov 29
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" Quit when a (custom) syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -137,7 +137,7 @@ if exists("c_no_curly_error")
|
|||||||
syn match cParenError display ")"
|
syn match cParenError display ")"
|
||||||
syn match cErrInParen display contained "^^<%\|^%>"
|
syn match cErrInParen display contained "^^<%\|^%>"
|
||||||
else
|
else
|
||||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,@cStringGroup,@Spell
|
syn region cParen transparent start='(' end=')' contains=ALLBUT,cBlock,@cParenGroup,cCppParen,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||||
syn match cParenError display ")"
|
syn match cParenError display ")"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
" Language: tmux(1) configuration file
|
" Language: tmux(1) configuration file
|
||||||
" Version: 2.9a (git-0d64531f)
|
" Version: 3.0 (git-48cbbb87)
|
||||||
" URL: https://github.com/ericpruitt/tmux.vim/
|
" URL: https://github.com/ericpruitt/tmux.vim/
|
||||||
" Maintainer: Eric Pruitt <eric.pruitt@gmail.com>
|
" Maintainer: Eric Pruitt <eric.pruitt@gmail.com>
|
||||||
" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause)
|
" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause)
|
||||||
@ -28,6 +28,7 @@ syn match tmuxNumber /\<\d\+\>/ display
|
|||||||
syn match tmuxFlags /\s-\a\+/ display
|
syn match tmuxFlags /\s-\a\+/ display
|
||||||
syn match tmuxVariable /\w\+=/ display
|
syn match tmuxVariable /\w\+=/ display
|
||||||
syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
|
syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
|
||||||
|
syn match tmuxControl /%\(if\|elif\|else\|endif\)/
|
||||||
|
|
||||||
syn region tmuxComment start=/#/ skip=/\\\@<!\\$/ end=/$/ contains=tmuxTodo
|
syn region tmuxComment start=/#/ skip=/\\\@<!\\$/ end=/$/ contains=tmuxTodo
|
||||||
|
|
||||||
@ -43,6 +44,7 @@ hi def link tmuxFormatString Identifier
|
|||||||
hi def link tmuxAction Boolean
|
hi def link tmuxAction Boolean
|
||||||
hi def link tmuxBoolean Boolean
|
hi def link tmuxBoolean Boolean
|
||||||
hi def link tmuxCommands Keyword
|
hi def link tmuxCommands Keyword
|
||||||
|
hi def link tmuxControl Keyword
|
||||||
hi def link tmuxComment Comment
|
hi def link tmuxComment Comment
|
||||||
hi def link tmuxKey Special
|
hi def link tmuxKey Special
|
||||||
hi def link tmuxNumber Number
|
hi def link tmuxNumber Number
|
||||||
@ -62,29 +64,29 @@ for s:i in range(0, 255)
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
syn keyword tmuxOptions
|
syn keyword tmuxOptions
|
||||||
\ buffer-limit command-alias default-terminal escape-time exit-empty
|
\ backspace buffer-limit command-alias default-terminal escape-time
|
||||||
\ activity-action assume-paste-time base-index bell-action default-command
|
\ exit-empty activity-action assume-paste-time base-index bell-action
|
||||||
\ default-shell default-size destroy-unattached detach-on-destroy
|
\ default-command default-shell default-size destroy-unattached
|
||||||
\ display-panes-active-colour display-panes-colour display-panes-time
|
\ detach-on-destroy display-panes-active-colour display-panes-colour
|
||||||
\ display-time exit-unattached focus-events history-file history-limit
|
\ display-panes-time display-time exit-unattached focus-events history-file
|
||||||
\ key-table lock-after-time lock-command message-command-style message-limit
|
\ history-limit key-table lock-after-time lock-command message-command-style
|
||||||
\ message-style mouse aggressive-resize allow-rename alternate-screen
|
\ message-limit message-style aggressive-resize allow-rename
|
||||||
\ automatic-rename automatic-rename-format clock-mode-colour
|
\ alternate-screen automatic-rename automatic-rename-format
|
||||||
\ clock-mode-style main-pane-height main-pane-width mode-keys mode-style
|
\ clock-mode-colour clock-mode-style main-pane-height main-pane-width
|
||||||
\ monitor-activity monitor-bell monitor-silence other-pane-height
|
\ mode-keys mode-style monitor-activity monitor-bell monitor-silence mouse
|
||||||
\ other-pane-width pane-active-border-style pane-base-index
|
\ other-pane-height other-pane-width pane-active-border-style
|
||||||
\ pane-border-format pane-border-status pane-border-style prefix prefix2
|
\ pane-base-index pane-border-format pane-border-status pane-border-style
|
||||||
\ remain-on-exit renumber-windows repeat-time set-clipboard set-titles
|
\ prefix prefix2 remain-on-exit renumber-windows repeat-time set-clipboard
|
||||||
\ set-titles-string silence-action status status-bg status-fg status-format
|
\ set-titles set-titles-string silence-action status status-bg status-fg
|
||||||
\ status-interval status-justify status-keys status-left status-left-length
|
\ status-format status-interval status-justify status-keys status-left
|
||||||
\ status-left-style status-position status-right status-right-length
|
\ status-left-length status-left-style status-position status-right
|
||||||
\ status-right-style status-style synchronize-panes terminal-overrides
|
\ status-right-length status-right-style status-style synchronize-panes
|
||||||
\ update-environment user-keys visual-activity visual-bell visual-silence
|
\ terminal-overrides update-environment user-keys visual-activity
|
||||||
\ window-active-style window-size window-status-activity-style
|
\ visual-bell visual-silence window-active-style window-size
|
||||||
\ window-status-bell-style window-status-current-format
|
\ window-status-activity-style window-status-bell-style
|
||||||
\ window-status-current-style window-status-format window-status-last-style
|
\ window-status-current-format window-status-current-style
|
||||||
\ window-status-separator window-status-style window-style word-separators
|
\ window-status-format window-status-last-style window-status-separator
|
||||||
\ wrap-search xterm-keys
|
\ window-status-style window-style word-separators wrap-search xterm-keys
|
||||||
|
|
||||||
syn keyword tmuxCommands
|
syn keyword tmuxCommands
|
||||||
\ attach attach-session bind bind-key break-pane breakp capture-pane
|
\ attach attach-session bind bind-key break-pane breakp capture-pane
|
||||||
|
Loading…
Reference in New Issue
Block a user