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
0answers
29 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 ...
3
votes
1answer
89 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 ...
0
votes
0answers
16 views

How to indent code in Eclipse like Vim?

I want to indent code in Eclipse like Vim. For example, I have a vim indent file and I want to use this file in Eclipse.
1
vote
0answers
19 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....
0
votes
1answer
21 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!
1
vote
1answer
52 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 ...
0
votes
0answers
11 views

E149: Sorry, no help for XXX (no help in vim) [duplicate]

Running ubuntu 20.10 and vim: version 8.2.716 that comes default with installation. Seems the help function in Vim does not work/exists: :help cp-default ...
1
vote
0answers
92 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 ...
0
votes
0answers
51 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 ...
0
votes
2answers
69 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
25 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 ...
1
vote
1answer
40 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, ...
1
vote
1answer
31 views

Download and Setup VIM-LaTeX

I am a relatively new Linux user and I have also recently found out about Vim. I watched a few videos on Vim, completed vim tutor, and fell in love with it. I want to start using it as my main text ...
0
votes
3answers
69 views

Newbie - What are the pros & cons of using vim instead of gedit

I am a bit confused as of advantages or disadvantages of using 'vim, versus gedit. I just find 'gedit' very practical. Thks
0
votes
1answer
136 views

Vim “write with sudo” not working

I'm editing a system-wide file called ssh_config in /etc/ssh folder using vi without root privilege. And I save this file by using the following command: :w !sudo tee % But it doesn't work, I'm ...
1
vote
1answer
124 views

Can't install vim

I'm kind of new so please go easy on me. I just installed ubuntu as dual boot alongside windows 10 (Ubuntu 20.10 is my current version) and I'm trying to install vim. I've tried sudo apt-get update ...
0
votes
1answer
68 views

How to clear terminal history

I'm writing as expansion to this blog: How to clear the terminal history from vim? I have this in my vimrc: autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python3' ...
2
votes
1answer
56 views

Cannot run commands in bash terminal - argument list too long

Whenever I try to run "vim .bashrc" I get the error: "argument list too long" Most of the threads about this seem to be focused on commands like rm or mv... but I can't even open a ...
0
votes
0answers
40 views

Using terminal buffer as context for Vim

When using the terminal, I wish I could search through the output from commands and scroll up terminal buffer, in read-only mode, with Vim keybindings. An example is running ls -al and then wanting to ...
1
vote
0answers
79 views

Access to system clipboard with vim 8.1.2269 on 20.04

I work with vim on Ubuntu 20.04 installed from the official repositories: $ apt policy vim vim: Installed: 2:8.1.2269-1ubuntu5 Candidate: 2:8.1.2269-1ubuntu5 Version table: *** 2:8.1.2269-...
0
votes
0answers
26 views

how to disable colored display when listing tag targets in vi?

This has always been a nuisance to me. In a new PC for experiment, I set syntax=off so normal vi doesn't show things in color. But when I press g+] to list up tag targets(using ctags), I see the ...
1
vote
0answers
43 views

vi cursor not working properly with :set nu

The cursor works as if nonu was set. It starts before the numbers are displayed and the line ends where characters would end when there was nonu set. .exrc has only :set nu. vim works without any ...
1
vote
2answers
351 views

How to clear the terminal history from vim?

My python file: print('HelloWorld') After executing the file in terminal history: HelloWorld Press ENTER or type command to continue This is fine. Now, if I then run the file again, it shows the ...
1
vote
1answer
110 views

Zooming does not work in my text editors

Ctrl + + and Ctrl + - are not working in my text editors, e.g. vim, gedit and nano on Ubuntu 20.04.0. It works perfectly in browsers such as Chrome, Mozilla, etc.
1
vote
0answers
203 views

What are .swp files and why are they created?

I have a directory named /home/Prog where I put my programs. Sometimes, a hidden file with the extension .swp is created in this folder whose contents look like a program that I had had in this folder....
1
vote
1answer
55 views

How can I use a vim plugin for a filetype that the plugin is not intended for?

If you convert a Jupyter Notebook to a markdown document (with pandoc, for example) then it's nice and easy to edit it without having to launch the browser. I enjoy the vim-markdown plugin for this ...
0
votes
0answers
452 views

How to uninstall a package which is installed in /usr/local/bin?

I had installed VIM but it has been messed up and breaking up due to some plugins. So I removed it with: sudo apt-get remove vim . But there is still vim command available. I also tried sudo apt-get ...
0
votes
2answers
39 views

Why vundle is not available with apt?

it seems that all vim plugin around can be managed and installed with a plugin manager. This because: on apt are only available few plugins many plugins have many dependencies and with a plugin ...
0
votes
1answer
146 views

select and the PS3 variable

I have a small function that I keep in my profile to give me quick access to some config files: viconf () { COLUMNS=12; printf "Edit config file:\n\n"; select x in ~/.bashrc ~/....
0
votes
0answers
296 views

Syntax error unexpected (

I keep trying to launch this vim sh file but i keep getting the error message Syntex error: unexpected "(" #!/bin/bash openssl req -x509 -out pop1001234.cert -keyout pop1001234.key \ -...
1
vote
1answer
122 views

How to recover my terminal vim window when I use ctrl-s to save in vim by mistake?

I have been using Visual Studio code a lot lately and like a lot of IDEs you can get used to using CTRL-S to save as it is quicker than using "esc :w" - if you are using vim bindings like I ...
1
vote
0answers
37 views

xmodmap Mode_switch for different layouts

I need to add the same "Mode_switch layer" triggered by Caps_Lock for both layouts: EN and RU. Specifically, both Caps_Lock + h and Capd_Lock + р (Cyrillic_er) should lead to Left; both ...
0
votes
0answers
15 views

odd vim behavior after upgrade to ubuntu 20.10

After installing 20.10, I found that vi/vim now behaves oddly: editing an APL function causes the appearance of comment lines (starting with the lamp (⍝ - for illumination) to slide over by a space ...
1
vote
0answers
610 views

gedit: Unable to init server: Could not connect: Connection refused

I am trying to make use of the alias command to separate the ROS1 and ROS2. I have dual-booted Ubuntu on my MacAir machine and am using the docker container, which I have installed both the ROS1 and ...
0
votes
0answers
391 views

Cuda installation gudes and sudo: vim: command not found error

I am new to Ubuntu and I am eager to learn everything about it but everytime I tried do something with Ubuntu, I am getting frustrated because there are many solutions about a problem but any of ...
0
votes
1answer
80 views

What is the Ubuntu 16.04 package for vim with python3 support? [duplicate]

I want to install a vim version that supports python3 (+python3), but I am unable to find it on the Ubuntu repositories. I'm running Ubuntu 16.04.7, and I can't upgrade to 18.04 currently because I ...
0
votes
0answers
171 views

How to load TermDebug vim plugin automatically?

I'm using Termdebug plugin to use gdb right inside vim to debug program. The thing is the sequence to launch gdb from vim involves the following steps :packadd termdebug :Termdebug <executable-...
0
votes
1answer
2k views

How do I get radarr.service to start automatically?

I have installed radarr successfully, but it will only run if I use terminal and type: mono ~/Radarr/Radarr.exe When I close terminal, radarr will stop working so I followed the instructions on wiki ...
0
votes
1answer
142 views

Can't send ENTER key in Vim and ncurses apps under Byobu and Tmux

I recently upgraded from Ubuntu 18.04 to Ubuntu 20.04 and got a strange problem with byobu, tmux, Vim and ncurses applications: Enter doesn't work, and I need to use CTRL+M instead. For example, if I ...
1
vote
0answers
618 views

Slow terminal commands

I'm facing a weird problem that I never had in 4 years using in Ubuntu. Commands in terminal are running very slow. A simple clear take up to 20 seconds, as well as cd, get into vim, everything is ...
0
votes
0answers
31 views

Broken Packages? [duplicate]

I am struggling to install VIM on my ubuntu box. I don't understand how to resolve this dependency problem. $ sudo apt-get install vim Reading package lists... Done Building dependency tree Reading ...
0
votes
0answers
38 views

How to enable swapfiles in vim editor?

I have searched in google but i always found how to disable swapfiles. It said that we have to add set noswapfile in vim configuration file. And i tried to put set swapfile in the same configuration ...
1
vote
1answer
32 views

how to copy lines at a particular intervals in vim editor

I need to copy lines 10,20,30,40 etc to another file in vim editor. how to yank lines at specific intervals in vim.
0
votes
0answers
39 views

Protecting a file against the upgrade. OK to make immutable?

Running Ubuntu 18.04 on x64. For one particular package, namely Vim/Gvim, there are a few custom files that I install in one of the directories (specifically, the "syntax" directory). I ...
1
vote
0answers
45 views

terminal and vim popped out error message

In my terminal, I got repeated messages: [9415:9415:0920/093654.751013:ERROR:gl_utils.cc(316)] [.RendererMainThread-0x17a0942c3a00] GL_INVALID_FRAMEBUFFER_OPERATION: Framebuffer is incomplete. When I ...
1
vote
1answer
312 views

Weird character appear when opening file using Vim after installing vim-gnome

I am trying to learn Vim and using .vimrc from this link. Everything works fine but after I installed vim-gnome via sudo apt-get install vim-gnome to use xterm_clipboard, weird characters keep ...
0
votes
1answer
391 views

Scrolling up in terminal reveals previous Vim sessions

I recently moved from Ubuntu to WSL Ubuntu, and the only problem with the move seems to be how Vim displays in the terminal. For example, I open a file in vim, and after exiting back into the command ...
0
votes
0answers
31 views

Separate vim colors for “view” command?

I have existing linux vim configurations with a colorscheme that is not applied when using the view command. The text will be all green if view is run, instead. I don't know why or how it works. I ...
0
votes
0answers
137 views

Can't load plugin in neovim

Each time I try to edit any file neovim gives error in plugins I am using Ubuntu 18.04 and neovim version 0.4.2. I am using plug plugin manager. My init.vim file looks like """"&...

1
2 3 4 5
16