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
0
votes
0answers
30 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 ...
2
votes
1answer
132 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
166 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 ...
2
votes
1answer
96 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, ...
0
votes
2answers
104 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 ...
0
votes
1answer
33 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 ...
0
votes
1answer
116 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 ...
0
votes
1answer
89 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 ...
1
vote
1answer
2k 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
1answer
844 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 * ...
1
vote
3answers
415 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 ...
1
vote
3answers
460 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 ...
2
votes
1answer
60 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 ...
1
vote
0answers
487 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 ...
2
votes
2answers
276 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 ...
2
votes
2answers
773 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: "$...
1
vote
1answer
253 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 ...
1
vote
0answers
81 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 ...
0
votes
0answers
31 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 ...
0
votes
1answer
144 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 ...
3
votes
1answer
3k 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 - ...
0
votes
1answer
366 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 ...
2
votes
1answer
95 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
0answers
151 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?
1
vote
1answer
3k 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 ...
2
votes
0answers
39 views

gvim gnome hides command prompt

This is not firmly reproducible but when I run ctrl+wv to create a vertical split window, I sometimes lose visibility to the colon command prompt. Command prompt still works invisibly. Sometimes I can ...
1
vote
1answer
2k views

Vim 8.1 Globally custom highlight colors

Problem I'm finally getting around to upgrading from Vim 7.4 to Vim 8.1, but my global custom highlight colors have stopped working. I am aware similar questions (such as this one) have been asked, ...
0
votes
1answer
800 views

<Esc> key mapping seems to be not working in my vim 8.0 on my Ubuntu 16.04

I have inoremap jj <ESC> in my vimrc on my Ubuntu 16.04. I have no idea why my jj not working and its just typing literally <ESC> in my text file for my jj press. Any idea how can I get ...
2
votes
0answers
24 views

gVimDiff in Nemo context menu

On Windows I'm used to have the gVimDiff context menu when two or more files are selected in Windows Explorer. Is there something similar for Nemo on Ubuntu? I searched for the string in the title ...
6
votes
1answer
2k views

Copying From Vim to Ubuntu Bash on Windows

Note: this question is specific to the relatively new Ubuntu Bash on Windows system. So it seems possible to paste into Vim from the Windows clipboard by simply right clicking in insert mode after ...
3
votes
2answers
416 views

Portable Vim for Ubuntu Linux

I use Ubuntu as my desktop OS. I want my vim to be portable so that I can use my vim configuration as well as the plugins I use in my college PCs too. Is there any way to have a portable version of ...
7
votes
1answer
4k views

Trying to compile vim with python 3.6. Where is my config directory?

I'm a bit of a noob when it comes to Linux, only started using it recently. However, I am trying to compile vim with python because I am using latex live preview and it needs a python compiled vim ...
2
votes
1answer
1k views

Cannot setup tern_for_vim plugin

I installed the plugin tern_for_vim. Followed all the instructions from readme but it doesn't work. I don't have any autocompletion for javascript, the commands :TernDef and :TernDoc are not ...
0
votes
1answer
2k views

I can't edit a single file with Vim, [closed]

I just installed Ubuntu 16.04 and installed Vim, I tried to edit some files and when trying to write changes Vim said: E173 4 more files to edit I don't know why it's happening but it's making my ...
2
votes
1answer
3k views

How to safely switch from vim-athena to vim-gtk?

I have vim 7.4 Huge version with X11-Athena GUI installed on my laptop running ubuntu 16.04. I would like to safely switch to vim-gtk. Do I have to uninstall existing vim installation and install vim-...
2
votes
0answers
99 views

Manual fold issue on both Mac & Ubuntu

When I set foldmethod=manual and then I'm typing <zc> E490: No fold found is raising. Same story with set foldmethod=marker. The behavior is the same on Mac Sierra and Ubuntu 16.04. I ...
1
vote
1answer
306 views

How to avoid dependency conflics when installing vim from source?

I run Ubuntu 14.04 and want to use YouCompleteMe with vim for python and c++ code completion. YouCompleteMe requires vim 7.4.143+, which is higher than what I get with apt-get, so I follow this ...
55
votes
3answers
38k views

How can I get a newer version of Vim on Ubuntu?

Ubuntu's packages can be pretty old, but for some desktop programs (like Vim) I'd much rather have the latest version, as newer versions often fix various bugs. How can I get a reasonably recent Vim ...
26
votes
7answers
35k views

Vim 8.0 Python support

I'm trying to upgrade my Vim installation to version 8.0, but it doesn't support both Python and Python 3 as the below image. (PS: Because of this problem, I cannot use the YCM (YouCompleteMe) plugin ...
13
votes
1answer
12k views

Vim compiled with python3 but has('python') returns 0

I just followed these instructions to compile vim with python 3: https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source After the install I checked to see if I have python3: vim --...
2
votes
3answers
811 views

No echo command?

I tried doing the following command on a new install of Ubuntu and got a "Sorry, command not supported on this version message": :echo @% How could any version of vim not support echo? The reported ...
1
vote
1answer
1k views

Ethan Schoonover's Solarized color scheme does not work as expected

I'm trying to use this color scheme on my Ubuntu system. I installed the package using Option 1 in GitHub, and modified .vimrc as instructed. It turns out that the colors displayed are different as ...
3
votes
1answer
4k views

How do I install Neovim with GUI and msgpack support in Ubuntu?

I would like to get Neovim because of its msgpack API and clear roadmap of development, but it is not in Ubuntu 16.04's repositories. Command 'gvim' from package 'vim' (main) Command 'gvim' from ...