Questions tagged [linux-ubuntu]
Use this tag for questions specific to using Vim on the Ubuntu flavor of linux.
67 questions
1
vote
1
answer
52
views
How do I recover or edit the correct file in this example?
OS: Ubuntu
tree -a
.
├── index.html
├── main.js
├── script.js
└── src
└── Main.elm
To edit: Main.elm I type :vim ./src/Main.elm
From there I wish to edit script.js.
So I type :e ../script.js. ...
2
votes
0
answers
140
views
Is the vim-daily launchpad.net PPA still functioning?
It says on vim PPA manager Jonathon F's launchpad page that:
"This account belonged to a deceased user and has been archived."
(In fact, Jonathon F. died in January of 2023.)
But on the ...
0
votes
1
answer
632
views
Down arrow key triggers coc#pum#visible() ? coc#pum#next(0) : "\"
I am using NVIM 0.9.0 stable release with Conqueror of Completion which I installed recently.
I am used to using the arrow keys in insert mode for quick navigation between two lines. After installing ...
2
votes
1
answer
737
views
Cannot open terminal ini nvim
I installed Plugin terminal using the vim-terminal plugin and try to execute :TerminalSplit bash but before the terminal open I got a warning message.
Python 2 interface is not installed, using Python ...
2
votes
1
answer
760
views
Vim appimage can't run on Ubuntu 22.04
Vim has a official AppImage (cool). But I can't run it on Ubuntu 22.04. I suppose that some dependencies are lost. My problem is that I can't identify what exactly are. I see the terminal output when ...
1
vote
0
answers
185
views
tmux send-keys to vim has no effect when used with swap-pane
I have a tmux window with 2 panes (pane-ids: 0 and 1). In the pane 0 there is vim launched. I want to fire a combination of two commands from tmux command-prompt:
:send-keys -t 0 "iabc" ; ...
13
votes
6
answers
15k
views
Installing Neovim 0.7 on Ubuntu?
I just moved from Mac to Ubuntu.
I have set everything up but my lua keybindings are following the 0.7 configurations.
When I install neovim on Ubuntu it gives me 0.6.
I tried this:
sudo add-apt-...
0
votes
0
answers
479
views
Yanking to system clipboard does not work
I'm on Ubuntu 20.04.3 LTS, I have +clipboard and +xterm_clipboard in my vim --version, and I have set set clipboard=unnamedplus in my .vimrc.
For some reason, yanking still does not copy to the system ...
0
votes
0
answers
191
views
Why do `wq!` and `q!` causing "E855 Autocommands caused command to abort" on any Python files?
Executing :q! and :wq! (of course :x as well) on any Python files causing "E855: Autocommands caused command to abort". However, :qa , :wqa (and of course :xa as well) don't caused the same ...
0
votes
1
answer
153
views
How to separate the negative and positive values from 3rd column in vim file?
I am dealing with a long data in the vim file. I want to separate the positive values and negative values in the 3rd column in separate files.
Example:
1.000 3.889 4.666
4.889 2.809 -8.687
3.896 4....
4
votes
1
answer
3k
views
Where is the .vim folder by default in Ubuntu?
I have seen that the .vim directory is in $XDG_CONFIG_HOME/, but it isn't. The closest I can find is /etc/vim/, but that does not contain what I need (namely, init.vim). Am I missing something?
I am ...
4
votes
0
answers
249
views
Intermittently cannot switch from Vim terminal to other panes [closed]
I've looked at quite a few other posts and haven't found a similar problem. I've recently begun using WSL and Vim and love it. Most of the time, it works great and I use CTRL-W-h/j/k/l to navigate ...
2
votes
1
answer
873
views
Vim fzf :Buffers (WSL Ubuntu) stopped working after update
I am using Vim on Ubuntu for Windows Subsystem for Linux (WSL). After updating all components involved (Vim, fzf, Ubuntu), the :Buffers command stopped working. Note that :Files, :Lines, etc. work as ...
1
vote
2
answers
2k
views
How to Keep Syntax Color but Disable Highlighting in Vim?
I recently activated auto-complete using YouCompleteMe and syntax color in Vim. However, a red highlighting color appeared.
I tried to disable syntax color with syntax off, but this highlighting ...
0
votes
2
answers
969
views
Do not use the system Python 3 version in Vim
I am running Ubuntu 16.04, which requires the Python 3 system version to be 3.5: updating it to 3.7 breaks the package manager.
At the same time, I want to use Vim with YouCompleteMe. YouCompleteMe ...
1
vote
1
answer
1k
views
Vim takes a long time to close over SSH?
While ssh'd into my server, vim hangs for a variable amount of time (about 2 seconds, but can be longer or shorter) when opening and closing.
It's worth noting that (to my eyes) the delay is the ...
1
vote
1
answer
10k
views
Vim-devicons not working at all [closed]
I tried installing vim-devicons to be used with nerdtree(using vim-plugin). I tried devicons FAQ, everything is fine except "check if you are able to see the characters, from ex mode:", i tried ...
2
votes
3
answers
3k
views
How do i open Vi after I installed Vim?
I discovered vi/vim only yesterday
on my ubuntu I didn't have vim installed, only vi
I enjoyed its simplicity and minimalism
then I decided to try vim too, ran sudo apt install vim, played with it
...
2
votes
1
answer
119
views
Update external file based on VIM mode
Currently I have my vim set up to update the statuslline based on what mode the editor is in. Like if I'm in insert mode then the statusline turns red. Magenta in replace mode. Green in command ...
3
votes
2
answers
617
views
How to ensure files are copied to VIMRUNTIMEDIR when building Vim 8.1 from source and specifying a prefix?
I compiled vim 8.1 for Ubuntu 16.04 x64, from source, by following Valloric's excellent guide on the subject. Although that guide is for an older version, it was really simple to check out the correct ...
1
vote
1
answer
409
views
Latex-suite <alt-I> mapping
Last week I reinstalled Ubuntu 18.04 LTS on my laptop. During my last installation of ubuntu (also 18.04) I learned vim and used it in combination with the latex-suite. However on this new ...
0
votes
0
answers
83
views
Displaying specific text only in the airline of a given window
Suppose that using bufwinnr() I find the windows number where a given buffer is being displayed to be 2.
With that information, is there a way to display a specific string only in the airline status ...
3
votes
1
answer
5k
views
Unable to install most recent gvim 8.1 on Ubuntu
On Ubuntu, when I do vim --version in the terminal I get:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 6 2019 14:05:44)
Included patches: 1-699
However, when I do gvim --version I get:
VIM - ...
2
votes
1
answer
287
views
Occupy the remaining space in terminal
When I open the vim in the xterm (ubuntu) there's always a space on the right and bottom part of terminal which is not fully occupied by the vim. What could be the reason behind it? And what are the ...
1
vote
1
answer
4k
views
How do I configure syntastic to use Python3 in Ubuntu?
The following code shows invalid syntax. I assume syntastic is looking at Python2 for syntax-checking. I need it to look at Python3 instead.
def x():
x = 42
def y():
nonlocal x
x = 8
...