Comments (20)
I don't have stata, so I don't want to be responsible for this. If you could do a pull request, I would merge it. The syntax script is also required to add support for a new interpreter.
from vimcmdline.
from vimcmdline.
You have pasted the ftplugin/stata_cmdline.vim
script, but the syntax/cmdlineoutput_stata.vim
script is still missing, and it is required to colorize the output when running in the Neovim builtin terminal.
from vimcmdline.
The syntax script will not be required if Stata already colorizes the output.
from vimcmdline.
from vimcmdline.
I'm sorry, but this is not enough. The two main purposes of vimcmdline are: (1) send lines to interpreters; (2) colorize the output. Of course, we don't need to colorize stata's output if it is already colorized. I know that Stata GUI colorizes the output, but I could not find any screenshot of Stata running in a terminal emulator to know whether it colorizes the output or not.
from vimcmdline.
from vimcmdline.
I have seen in screenshots that the prompt is a dot followed by an empty space. So, I already know how to highlight the input. Are error messages prefixed by a constant string? I still need this information.
Could you install Neovim and try this syntax/cmdlineoutput_stata.vim
:
" Vim syntax file
" Language: No language. Output additionals for stata
runtime syntax/cmdlineoutput.vim
" Input
syn match cmdlineInput "^\. .*"
from vimcmdline.
from vimcmdline.
Are you running stata in the Neovim terminal?
from vimcmdline.
from vimcmdline.
No. You get a terminal if you do:
:terminal
And vimcmdline starts the interpreter in a Neovim terminal by default. Did you put let cmdline_in_buffer = 0
in your init.vim
?
from vimcmdline.
from vimcmdline.
Could you do a pull request, please?
from vimcmdline.
from vimcmdline.
from vimcmdline.
Error detected while processing function
VimCmdLineStartApp[6]..VimCmdLineCreateMaps:
What error? Please, do :messages
to see again error messages. Anyway, be careful to not have vimcmdline scripts copied in more than one place.
Another issue is that the first time some output is viewed in the
stata-console it seems that I need to go into input-mode in this window to
get the full output
python3
has the same problem, and I don't know how to fix it.
from vimcmdline.
from vimcmdline.
You have to put this in the beginning of ftplugin/stata_cmdline.vim
:
" Ensure that plugin/vimcmdline.vim was sourced
if !exists("g:cmdline_job")
runtime plugin/vimcmdline.vim
endif
Regarding the need of going to input mode in stata
, I fixed the issue with python3
by deleting my ~/.inputrc
.
from vimcmdline.
Perhaps, before doing the pull request you will have to rebase your repository. I'm not good with git commands, but maybe these commands will work:
git remote add upstream https://github.com/jalvesaq/vimcmdline.git
git fetch upstream
git checkout master
git rebase upstream/master
git push -f origin master
from vimcmdline.
Related Issues (20)
- session/line number not unique error, reproducible example HOT 6
- No such variable "s:ft", key not present in Dictionary: "python" HOT 7
- 117: Unknown function: VimCmdLineSendCmd HOT 2
- new feature: execute up to the current line HOT 2
- how to print the shape of a python numpy array HOT 2
- Hy support? HOT 3
- Python send paragraph sends extra blanks lines to repl HOT 5
- Would that be possible to have several cmdline_app per filetype and start interpreter differently per repl HOT 7
- Sending multiple lines freezes IPython with "%cpaste -q" HOT 11
- Toggle interpreter HOT 1
- [prolog] consult/1 file when opening REPL HOT 3
- Problems tmux and kitty as terminal HOT 7
- README does not make clear whether Tmux is required HOT 1
- error reported when import a module, but actually it works HOT 3
- new feature: send the whole file into python interpreter HOT 1
- Cannot start external terminal for python HOT 3
- b:cmdline_source_fun doesn't work for node HOT 3
- VIM help for plugin is missed HOT 5
- This is not an issue, but I think open the bash terminal whatever the filetype is be a good idea. HOT 2
- Does VCL allows me to use ssh? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimcmdline.