JTextArea in vi mode

Is there a free and open source extension of JTextArea that would support "vi mode"?

Asked by: Connie978 | Posted: 21-01-2022

Answer 1

Maybe you can find useful info here: http://jvi.sourceforge.net/.

Answered by: Audrey547 | Posted: 22-02-2022

Answer 2

AFAIK, no. This is such an obscure request, I think you'd have to code it yourself.

Answered by: William121 | Posted: 22-02-2022

Answer 3

Of course, I can't be sure that such a component does not exist, but I'd be truly astonished if it does. There is a vi plugin for Eclipse, which presumably includes a Java implementation of the vi keybindings. However, that plugin is commercial, so you can't legitimately reuse that source code. As a matter of curiosity, what exactly do you want this for?

Answered by: Kevin834 | Posted: 22-02-2022

Similar questions

swing - Mix of Arabic and English causes problems in JTextArea (Java)

I have a JTextArea which displays HTML of an Arabic web page. So it's essentially a mix of English and Arabic. In the JTextArea, with columns set to 30, certain text just disappears instead of wrapping properly. The weird thing is that if I copy the invisible text and paste it into Notepad, then I can see it in Notepad. If I change the number of columns to 40, everything displays fine. Any ideas?

java - Changing the font of text being typed in a JTextArea

I am working on a chat application and I want the user to be able to change their font while typing messages. I tried using the setFont() method but it changes the font for the entire text within the JTextArea component and when the text is sent to the display area, another JTextArea component, the font changes do not appear. Instead it displays the text in the font of that set in the dis...

java - JTextArea - very small size with long text

I'm using a JTextArea to display a long text JTextArea _definition = new JTextArea(5, 50); with word-wrap _definition.setLineWrap(true); _definition.setWrapStyleWord(true); embedded in a JScrollPane add(new JScrollPane(_definition), gbc); All that is part of a JPanel with the GridBagLayout. Everything is working fi...

java - How to limit JTextArea max Rows and Columns?

I am using JTextArea in JScrollPane I want to limit the maximum number of lines possible and the maximum chars in each line. I need that the string will be exactly like on the screen, each line will end with '\n' (if there another line after it) and the user will be able to insert only X lines and Y chars in each line. I tried to limit the lines but I don't know exactly how many lines do I have beca...

java - Moving focus from JTextArea using tab key

As stated, I want to change the default TAB behaviour within a JTextArea (so that it acts like a JTextField or similar component) Here's the event action private void diagInputKeyPressed(java.awt.event.KeyEvent evt) { if(evt.KEY_PRESSED == java.awt.event.KeyEvent.VK_TAB) { actionInput.transferFocus(); } } And here's the listener

java - JTextArea with strange behaviour when resizing the JFrame

I'm using some JTextArea in my Swing application. The surrounded JScrollPane is added to a JPanel using the GridBagLayout manager. // Pseudo Code ---- JTextArea area = new JTextArea(); area.setRows(3); JScrollPane sp = new JScrollPane(area); JPanel p = new JPanel(new GridBagLayout()); p.add(sp, new GridBagConstraints( 0, 0, 1, 1, 1, 0, WEST, H...

java - JTextArea alignment

Any method available to place the JTextArea to the right of the JPanel?

java - How do I add spell checking to a JTextArea?

I have a small Java application that has a JTextArea where the user enters text. I would like to add spell checking capabilities to this component similar to the way that Microsoft Word does it, i.e. misspelled words are underlined and a popup menu with corrections is displayed when the user right clicks on the underlined word. Are there any open source libraries for adding this functionality to JTextAreas?

java - How can I display red text in a JTextArea?

I want to show error(text) in result in red color after compiling exec file and display it in textarea of gui using swing in java.

java - Setting fonts in a JTextArea

I've got a JTextArea which has the following text "Text1 Text2 Text3". Is there a way I can make all of them different fonts? E.g. "Text1" is bold, "Text2" is italic and "Text3" is normal? I know I can create a Font object, however I can only apply it the JTextArea object. Thanks.

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)