Skip to main content

Questions tagged [linux-ubuntu]

Use this tag for questions specific to using Vim on the Ubuntu flavor of linux.

Filter by
Sorted by
Tagged with
1 vote
1 answer
27 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. ...
AlanQ's user avatar
  • 13
1 vote
0 answers
25 views

Typescript syntax highlighting uses Error for keywords

I'm having trouble getting good syntax highlighting for typescript files. The issue is that reserved words are highlighted as Error: Looking at :scriptnames I see the default typescript highlighting ...
Erik Hesselink's user avatar
0 votes
0 answers
280 views

VimTeX: Viewer cannot find Zathura window ID! (Ubuntu 22.04 LTS x11)

The PDF file is not opening with Zathura after the VimTeX compilation. I am using https://github.com/benbrastmckie/.config and the file vimtex.lua in my directory ~/.config/nvim/lua/neotex/plugins ...
raf's user avatar
  • 101
2 votes
0 answers
89 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 ...
Melvin Q. Watchpocket's user avatar
2 votes
0 answers
37 views

Consecutive pressing mapped function keys emits unwanted "^[[I" in input buffer in Ubuntu 22.04

OS: Ubuntu 22.04.2 (ubuntu-22.04.2-desktop-amd64.iso) Vim: vim-gtk3 (8.2.3995-1ubuntu2.7 amd64) vimrc: nnoremap <F7> : ! g++ % -o %< <CR> nnoremap <F8> : ! time ./%< <CR> ...
fstqwq's user avatar
  • 21
0 votes
1 answer
525 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 ...
Dadá's user avatar
  • 103
0 votes
0 answers
689 views

NeoVim0.9 installation cannot execute binary file: Exec format error

I was upgrading my very old NeoVim version 0.4 to 0.8 by following the docs on Github. After downloading the nvim appimage, making it executable, and extracting it using ./nvim.appimage, I try to run ....
Squiggles's user avatar
2 votes
1 answer
649 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 ...
Muhammad Fhadli's user avatar
0 votes
0 answers
1k views

Mapping to ctrl+m and ctrl+i in neovim

I was trying to bind to <C-m> and <C-i> in nvim to move from window to but these seem to be mapped by zsh to newline and tab respectively. Is there any way to disable these mappings so I ...
Julian Goddard's user avatar
2 votes
1 answer
644 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 ...
Moqtite's user avatar
  • 33
3 votes
1 answer
589 views

What does runtime! debian.vim actually do?

The vimrc template I used had the message "Ensure options work with the Vim-related packages available in Debian." for runtime! debian.vim Here is the contents of /usr/share/vim/vim81/...
qwr's user avatar
  • 203
1 vote
0 answers
145 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" ; ...
bloody's user avatar
  • 150
1 vote
1 answer
120 views

How do I add a text file to a pre-existing zip

I want to add a text file to a zip file using vim. I want to either add the file to my zip from local drive or create the file in the zip using vim.
Emmanuel wilkson's user avatar
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-...
Vinn's user avatar
  • 791
5 votes
1 answer
1k views

How can we get the third mouse option with cut, copy paste in neovim?

I am new to Neovim and using the default terminal in Ubuntu for Neovim. With the default terminal, we can click the right mouse and get the options for cut, copy and paste. How can I get this type of ...
Eka's user avatar
  • 153
0 votes
0 answers
420 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 ...
Jin's user avatar
  • 185
3 votes
1 answer
786 views

How do I get vim to read syntax files from `/usr/share/vim/addons/syntax`?

According to the Debian documentation about vim, a Debian package (Ubuntu, really, in my case) is expected to place <name>.vim files under: /usr/share/vim/addons/... Syntax files go under a sub-...
Alexis Wilke's user avatar
0 votes
0 answers
154 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 ...
raisa_'s user avatar
  • 101
18 votes
2 answers
4k views

Vim cannot find medical spell files

Problem specification I would love to have a medical spell dictionary in vim. Currently, I have a lot of medical terms in my own personal English dictionary right now. However, using an official ...
melvio's user avatar
  • 617
0 votes
1 answer
124 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....
bushra Sabir's user avatar
0 votes
1 answer
3k views

"command not found" error using filetype plugin [closed]

I am trying to add filetype plugin indent on to my vimrc, and I'm getting the error filetype: command not found. I tried searching but can't find a solution. I have the full vim package installed (not ...
moinudin's user avatar
  • 103
3 votes
1 answer
2k 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 ...
CATboardBETA's user avatar
3 votes
2 answers
4k views

How do I make the cursor blink?

set guicursor=n:blinkwait5-blinkon5-blinkoff5 has no effect. Why is that? mp4
Sebastian Nielsen's user avatar
5 votes
0 answers
188 views

Intermittently cannot switch from Vim terminal to other panes

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 ...
Christina Nguyen's user avatar
0 votes
0 answers
120 views

<number>dd not doing anything on an ubuntu machine

I use 999dd as a goto command before pasting/overwriting the entire contents from the clipboard. For some reason this is not working (at all) on a specific ubuntu machine. Why would this not work be ...
WestCoastProjects's user avatar
2 votes
1 answer
785 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 ...
ned_zeppelin's user avatar
0 votes
1 answer
218 views

coc.nvim - no rome found in your project root

I have the latest version of Ubuntu and recently installed vim. I'm trying to get coc.nvim to work. See https://github.com/neoclide/coc.nvim . This is an autocompletion package (and then some) for vim ...
Jon Th's user avatar
  • 101
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 ...
Hiro 's user avatar
  • 31
3 votes
1 answer
325 views

How can I get +ruby feature in Ubuntu 20.04 LTS?

Really I'm just looking for vim compiled with +ruby and when I installed vim.gtk3 it doesn't come compiled with it instead on :version it comes up as -ruby. I'd like to use the vim-readability plugin, ...
leeand00's user avatar
  • 3,681
0 votes
2 answers
920 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 ...
user2891462's user avatar
0 votes
1 answer
34 views

Is there a way to create a new file from the editior once I have a file open?

So I have the following file number11.py open in vim, this is the route I usually take to create a new file I do ESC :save number11.py, and then :x. Then from my Ubuntu terminal I do the following vim ...
EnlightenedFunky's user avatar
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 ...
Brandon Sturgeon's user avatar
0 votes
1 answer
740 views

How to recover unsaved text without a swap file after Vim crashed?

I am using Vim 8 in WSL Ubuntu. While copying text into a file the terminal crashed. I don't believe it is the WSL as Task Manager does not show 'Not Responding'. I have tried using this answer which ...
Marcus's user avatar
  • 135
1 vote
1 answer
9k 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 ...
Ayush's user avatar
  • 111
2 votes
1 answer
3k views

vim-plug: install plugins on startup not working properly on Ubuntu

per the recommendation in the vim-plug wiki: https://github.com/junegunn/vim-plug/wiki/extra, I've added the following snippet to my vimrc: " Install missing plugins on Vim startup autocmd VimEnter * ...
Paul Roever's user avatar
2 votes
3 answers
2k 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 ...
Noone AtAll's user avatar
2 votes
3 answers
800 views

What's the deal with the Vi/Vim in Ubuntu 18.04/19.04?

Is it different to standard Vi/Vim, if so how and why? Is it Vi or Vim? It does show a version string/identifier that would suggest it is Vim 8.1.320 though oddly it is opened with the 'vi' command ...
warsong's user avatar
  • 403
2 votes
1 answer
93 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 ...
Jon Red's user avatar
  • 23
1 vote
0 answers
798 views

Vim shows error when running python3

OS: Ubuntu 18.04 First, I ran apt-get install python3-dev ruby-dev Then, I installed vim using the instructions in the website, using make distclean, make and make install (This was like the tenth ...
evaristegd's user avatar
3 votes
2 answers
568 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 ...
batbrat's user avatar
  • 133
3 votes
2 answers
3k views

Understanding how "vi" finds its global configuration file

On my Ubuntu OS, I see this in /etc/vim/vimrc.tiny: $ cat /etc/vim/vimrc.tiny " Vim configuration file, in effect when invoked as "vi". Here's the partial output from :version: system vimrc file: "$...
flow2k's user avatar
  • 177
1 vote
1 answer
376 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 ...
3dSpatialUser's user avatar
1 vote
0 answers
98 views

How do I configure my VI environment on Ubuntu 18.10?

I have a fresh install of Ubuntu 18.10 and VI is exhibiting behavior I am unaccustomed to. For example, when I insert something using "i", 4 spaces are automatically placed in front of what I've ...
wsaxton's user avatar
  • 111
0 votes
0 answers
62 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 ...
Jorget Millani's user avatar
0 votes
1 answer
531 views

Identifying the PID of Vim 8.1 internal terminal launched with :terminal ++close

When launching an internal Vim 8.1 terminal for an exclusive program like in terminal ++close ipython, is there a way to identify from vimscript which is the PID of the launched process (i.e. of the ...
FVb's user avatar
  • 193
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 - ...
FVb's user avatar
  • 193
0 votes
1 answer
881 views

Making Numpad numerical keys work in Vim using Ubuntu 18's terminal

In my current machine, I use Vim 8.1 in a Ubuntu 18's default terminal (Vim is running with TERM=xterm256-color, which is a requirement for me). Everything works perfectly, with the exception of the ...
Jorget Millani's user avatar
2 votes
1 answer
257 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 ...
isemaj's user avatar
  • 121
1 vote
0 answers
335 views

Vim: a weird background problem in gnome-terminal

I get weird border form gnome-terminal when i run Vim fullscreen. It never happened before. I'm confused. How to repair it without changing my terminal background colour?
LukasDrSman's user avatar
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 ...
Evan Carroll's user avatar
  • 1,543