Questions tagged [vim]

An open-source text editor which is typically run from the command line. A minimal version is included in Ubuntu by default but the full version is available in repositories. Questions should relate to using Vim on Ubuntu.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

vim: can i use expression-register in cmdline window

I am using Kubuntu 22.04. I am attempting to find a simple way to edit commands, macros that are in a register. On the one hand because I have forgotten my former way, on the other hand I want to use ...
user avatar
0 votes
3 answers
74 views

Vim is opening with Vi when I use Sudo - why?

I use neovim. I changed my .zshrc to open nvim when I type vim in the terminal. My configuration is from my Mac where I didn't use Sudo much (now I use Ubuntu, I use sudo all the time). When I do sudo ...
user avatar
  • 13
0 votes
0 answers
10 views

vim misbehaves on UTF-8 APL text

I have a problem editing APL text comments in vim. gedit and friends work fine, and vi/vim worked fine until a release or two ago of Ubuntu, currently 22.04. If I cursor down past an APL comment ...
user avatar
0 votes
1 answer
108 views

How do I get xcape to work correctly on Ubuntu 22.04?

I'm a vim/nvim user, and xcape has become for me a key feature in the last years. I use it in combination with gnome-tweaks (new package name, on previous version was gnome-tweak-tool) in order to: ...
user avatar
0 votes
0 answers
27 views

Please check why ubuntu is giving error

code: char index2key(u64 index, char* key, u32 l_min, u32 l_max, const char* charset, u32 n_charset) { u32 l_key = l_min; u64 n_key = pow(n_charset, l_min); while (index >= ...
user avatar
0 votes
1 answer
17 views

how to capture a vim macro within register reuse

I need to record or code a vim macro that captures the current line into a register and then calls an external command like figlet to make it a title form. Something like: qp "add So here I have ...
user avatar
0 votes
0 answers
53 views

failed to install vim on my ubuntu

I've having problem installing vim on my Ubuntu. After running sudo apt-get install vim, I get the following error message: Ign:1 http://ca.archive.ubuntu.com/ubuntu focal-updates/main amd64 vim-...
user avatar
0 votes
2 answers
21 views

using vim for FCEDIT with a special textwidth

I am using Kubuntu 20.04, but this is a bash issue I'm annoyed about it since tens of years. I have .vimrc and .viminfo on a USB stick. Thus to use vim as editor for FCEDIT, I setup export FCEDIT='vim ...
user avatar
0 votes
0 answers
69 views

My vim theme (gruvbox) is not being applied

im trying to set this theme for vim: https://vimawesome.com/plugin/gruvbox . I have installed it: I added the Plug to .vimrc Plug 'morhetz/gruvbox' From a opened vim editor I executed the command: :...
user avatar
1 vote
1 answer
42 views

Have neovim load a file from file explorer

I would like to have neovim as a default text editor also when accessed from file explorer. When I choose it from the "open with" dialogue or when it is the default for some file extension I'...
user avatar
0 votes
0 answers
30 views

"syntax off" in vimrc not working; other settings work as expected

I'm trying to turn syntax highlighting off by default in vim in Ubuntu 21.10. I can toggle set number and imap just fine in my vimrc, but syntax highlighting is on by default for some reason, and ...
user avatar
0 votes
1 answer
151 views

VIM, ESC key doesn't work - Ubuntu 20.04

I'm using Git to control the different versions of my project. When reverting to a previous commit it shows a VIM terminal as expected. Theoretically I should press ESC to write my command, but ESC ...
user avatar
  • 1
0 votes
0 answers
36 views

In vim, what does in normal mode the key Meta-g, Alt-g cause?

I have unintentionally typed the key ALT-g, equal to Meta-g, to CTRL-] g, and by this my open file was damaged. In Kubuntu 20.04, Vim version 8.1. Such problems I have very often, but in former times ...
user avatar
0 votes
1 answer
252 views

Why is my Ubuntu 21.10 running nvim instead of vim?

I've had 21.10 installed for a while but have noticed that 'vim --version' brings up the info for 'nvim'. Is there any reason why this is happening?
user avatar
  • 3
1 vote
1 answer
95 views

set shortcut to move between windows in reverse

version: Ubuntu 18.04 i want to move between windows and work spaces in a "vim-like" way. I set ctrl+alt u/d to move up/down work spaces, and changed alt tab (switch between windows -->) ...
user avatar
2 votes
1 answer
51 views

File manager - jump to file/folder by line number

Is there any file manager that shows a number (similar to line number in vim) for each folder/files in the current directory and you can jump to any folder/file by typing the corresponding number with ...
user avatar
  • 237
1 vote
0 answers
32 views

Unmet dependencies for vim-tiny package [duplicate]

I tried some of the available solution, but hard luck anyone able to provide me the solution. Unmet dependencies installing vim or vim-tiny Unmet dependencies. Try 'apt --fix-broken install' ...
user avatar
0 votes
1 answer
128 views

where can i download onivim

I am thinking of trying onivim. I visited their page and read the installation guide. They guide me to download the app image but there was no link in the page. Where can I download the app image?
user avatar
  • 161
0 votes
0 answers
37 views

How to install vim with clientserver feature enabled on ubuntu 20.04?

Every thing is in the title, I want to use the clientserver feature of vim, but it seems to be disabled in ubuntu official vim package.
user avatar
1 vote
1 answer
170 views

Nautilus open text file with vim and make terminal persist after closing

I would like to open a (text) file with Vim in nautilus. This part is easy: Right-Click -> Open With Vim starts a terminal with vim inside running, file open already. When I close vim, the terminal ...
user avatar
  • 1,059
0 votes
1 answer
91 views

How to disable M\mouse wheel click paste in VIM?

Using Ubuntu 20.04, when using vim, clicking mouse wheel works same as pushing 'p' in command mode. I tried sudo apt-get install -y xbindkeys xsel xdotool && echo '"echo -n | xsel -n -i; ...
user avatar
  • 1
0 votes
1 answer
41 views

How to save script (sh) runing with vi command plus how to remove file?

I am installing DUC (Dynamic update client) for NO-IP DDNS on Ubuntu 20.04 desktop. I used help from this site : https://www.blackmoreops.com/2020/11/18/how-to-install-the-noip2-on-ubuntu-and-run-via-...
user avatar
  • 1
0 votes
0 answers
14 views

jedi-vim verbose at top of vim file

Recently installed jedi-vim and went to try the autocomplete like "Import" when this at the top of the vim file shows up... 1 The "import" statement 2 ********************** ...
user avatar
4 votes
2 answers
121 views

Is there a command to move a cursor to a specific line when creating a new file in vim?

I am new to ubuntu. I am using vim for quite sometime now. I came across autocmd BufNewFile command to automatically add some text when a file with some particular etension is created.I have attached ...
user avatar
1 vote
1 answer
122 views

How to remap CapsLock to Esc key in Ubuntu installed on VPS (console only, no Desktop Environment)?

The goal is to remap CapsLock to Esc key in my Ubuntu 20.04 remote server (console only, no Desktop Environment). This Ubuntu system is installed on Virtual Private Server. I'm logging to this server ...
user avatar
1 vote
1 answer
80 views

Using Alacritty to write LaTeX (with vim) can't launch Evince to preview

I use Neovim to write LaTeX files with the Alacritty terminal. After writing the files I want to preview them with Evince. However, Evince doesn't launch. I don't know why. If I use the default ...
user avatar
1 vote
2 answers
85 views

Ubuntu 20.04 Septemer 2021 - VIM-Only Error: whatever update was pushed broke pasting, both hightlight/middle button and ctrl-insert/shift-ctrl-insert

Been using vi since the late 1980s, so let's assume I'm extremely familiar with it... Whenever I try to paste now (yes, in insert mode) it first overwrites lines, then pastes part of the selection and ...
user avatar
  • 11
0 votes
0 answers
20 views

How to maintain the environment when running VIM?

how can I have :!which python in VIM referring to the same python version than $python in UNIX prompt? In other words, how can the environment variable be kept while in VIM?
user avatar
0 votes
0 answers
48 views

Encoding Issues while running python through vim?

I am currently facing a problem when executing :!python3 % in vim. :!python3 test_glove.py Traceback (most recent call last): File "test_glove.py", line 13, in <module> for line ...
user avatar
0 votes
1 answer
83 views

Suspecious hidden .swp file in usr/bin

after I ran rkhunter it showed suspected hidden file /usr/bin/.piny.py.swp. After a little google I came to know that it is made by VIM. But at that time VIM was not installed in my system. Well I ran ...
user avatar
  • 638
0 votes
0 answers
38 views

How to attach vim to a tmux session when opening text files in nemo?

Question summary: How do we get vim to attach itself to a pre-existing tmux session when we click on a text file in nemo? What I tried so far I've installed the nemo file manager on Ubuntu 20.04. When ...
user avatar
  • 246
2 votes
1 answer
160 views

Copy and paste in in Tmux and Vim: have we reach a consensus?

I am trying to use Tmux and Vim for better efficiency. Unfortunately, there is a copy/paste issue, as it is not possible to use the Vim visual mode between two panes of Tmux. Several methods have been ...
user avatar
4 votes
1 answer
2k views

Can't write to a hidden path using Curl

I did a fresh install of Ubuntu 20.04 today. I got as far as setting up my vim environment which installs plug.vim using curl when I hit a speed bump. Error creating directory /home/simon/.vim/...
user avatar
13 votes
3 answers
4k views

Why does Vim in Ubuntu 20.04 require Python 3?

I'm using Docker, and my dockerfile is: ###################################################### FROM ubuntu:20.04 WORKDIR /opt/test # Apt installs RUN apt update #####################################...
user avatar
  • 139
0 votes
0 answers
46 views

I can't verify that the environment variable “SECRET_KEY_BASE” is properly set in Linux

My ruby ​​version is 2.6.6, my mysql version is 8.0.23, my mysql2 version is 0.5.3, my bundler version is 2.2.21, my rails version is 5.0.7.2, and my Xcode version is 12.5. I use macOS Big Sur(version ...
user avatar
0 votes
0 answers
116 views

Editing Google Drive Files in Vim Fails using Gnome Online Accounts

When I link a Google account with Ubuntu using Gnome Online Accounts, I can't save changes to Google Drive files in Vim/gVim. I am trying to edit plain text files. I get the following error when ...
user avatar
0 votes
0 answers
346 views

How to fix vim color scheme in other terminals?

I'm not using Ubuntu, but I feel like this question will be relevant in any other distribution. So the problem I'm dealing with right now is I don't like gnome-terminal. I've tried alacritty, konsole, ...
user avatar
1 vote
2 answers
107 views

Error installing vim after upgrading from ubuntu 16.04 LTS to 18.04 LTS

Today I upgraded my ubuntu from 16.04 LTS to 18.04 LTS. The upgrade was successful. But when I tried to install vim, it throws error. Building dependency tree Reading state information... Done ...
user avatar
0 votes
0 answers
93 views

vimspector adapter initialzation faild, terminated with status 127

my .vimspector.json : { "configurations": { "cpp:launch": { "adapter": "vscode-cpptools", "configuration": { "name&...
user avatar
0 votes
0 answers
183 views

default value of $TERM? vim is now broken

after installing ubuntu 20.04.2 on my laptop, i set up vim. i found this colorscheme that i like: colorscheme. the colours for syntax highlighting were correct, but it didn't have the beautiful blue ...
user avatar
3 votes
1 answer
181 views

How to remove index numbers and symbols from tmux window titles

This configuration removes index numbers and other symbols from tmux's window titles to prioritize readability. It results in the following format: basePath/ -> at the terminal prompt ...
user avatar
  • 121
1 vote
0 answers
35 views

how can I launch an x window inside a vim window

I have stopped using my desktop manager in favor of consoles. I can "startx myProgram" to launch a dedicated window; however I would like to use a window in Vim instead of the entire console....
user avatar
0 votes
1 answer
27 views

nvim insert mode breaks keyboard layout on Ubuntu 20.04

When I enter Insert mode in nvim 0.4.3, other keyboard layouts are not available, but the icon at the top right is changing. I'm using GNOME as DE. Here's my .vimrc Thanks in advance!
user avatar
1 vote
1 answer
63 views

vim: removing multiple lines - d3d vs 3dd

I was speaking with my friend about removing multiple lines while using vim. They said they use d3d to remove 3 lines, whereas I use 3dd I understand my command is: 3 (repeat 3x) dd (delete the entire ...
user avatar
  • 88
2 votes
0 answers
731 views

VIM doesn't open immediately after I press enter

Original question I am using the following software: WSL with Ubuntu installed from the Microsoft Store. Windows Terminal and oh-my-zsh I have the following undesirable behaviors which was not the ...
user avatar
  • 151
1 vote
0 answers
178 views

gVim not recognizing all installed fonts

I have recently reinstalled Ubuntu and installed vim and gVim using sudo apt install vim-gtk3 and also installed "Fixedsys Excelsior" font via font manager. On my previous installation the ...
user avatar
  • 11
0 votes
2 answers
407 views

vim on ubuntu desktop is very laggy and slow, but vim.tiny is fine

Recently I changed my work environment from Windows to Ubuntu Desktop, and I met a strange problem I never met before. I found vim on the gnome-terminal of the Ubuntu desktop quite slow and laggy, and ...
user avatar
0 votes
1 answer
241 views

How Do You Remove the Terminal Titlebar for Neovim?

I just started trying out Neovim, so I am just getting the hang of setting it up. After installing Neovim through sudo apt install neovim, when I launch Neovim through either the nvim command, or ...
user avatar
  • 233
0 votes
1 answer
170 views

Cannot launch vim from Keyboard Shortcut

I want to edit text in Vim and want to automate the process. Here's my program: $ cat /usr/local/bin/example-script echo "Some Text" > ~/Desktop/filename nvim ~/Desktop/filename The ...
user avatar
  • 103
1 vote
1 answer
49 views

VIM: Open multiple file in specfic order

So I want to start off with this: I understand that I can open multiple files with vim *,vim */file.txt,vim directory/*, etc. What I am looking for is this use-case: I have a directory of two folders, ...
user avatar

1
2 3 4 5
16