Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
33 views

After upgrading Ubuntu 16.04 to 18.04 vim does not work… can't install it!

After upgrading Ubuntu, I just notice that vim is not working (actually deleting from Ubuntu) So I tried to re-installing it using this command: $ sudo apt install vim And the result is: Reading ...
0
votes
0answers
36 views

Which flavour Ubuntu for Ubuntu Console Only? [duplicate]

I'm a Web Developer. I've got an old Netbook computer. I want to learn VIM and force myself to use the terminal to create a small NodeJS or Python project and fumble around in the dark with a text-...
0
votes
1answer
21 views

is there a putty replacement that supports diverse colors? (over 4bit) [closed]

putty seems to support only 3bit(8) colors while vim's default colorschemes seem to be 4bit colors. so with only 3bit colors it's sometimes even unreadable. is there any replacement that supports more ...
0
votes
1answer
29 views

How do I find the <Insert> key mapping in Vim so that I can create a similar map on MacOS?

So, for me, the Insert key toggle was driving me to distraction on Mac since Ubuntu is my main OS. I had to hunt down the key mapping and duplicate it in macvim. How I've done this so far is to do: ...
0
votes
0answers
12 views

How does ubuntu vim get insert key to toggle insert mode

I have a Mac for work and I want to figure out how Ubuntu makes the insert toggle work. I've checked several files like: /etc/vim/vimrc.local /etc/vim/vimrc.tiny /usr/share/vim/vimrc.tiny /usr/...
0
votes
0answers
38 views

Ubuntu 18.04 VM; unable to initialize PAM: No such file or directory

I'm trying to learn more about Unix systems, and am working on hardening an Ubuntu Server VM (using VMWare Workstation). In the process of which, I must have done something that messed with the pam ...
24
votes
6answers
4k views

Is Vim safe to use in combination with sudo?

It is not advisable to use sudo with a graphical application like gedit, as described at this link. Accordingly, I have tended to use vim with sudo. Recently I noticed my ~/.viminfo was owned by root ...
1
vote
1answer
51 views

What happens if I downgrade libpython in 18.04?

I just upgraded to ubuntu 18.04, and I'm not sure what happened, but vim doesn't work anymore. I tried sudo aptitude install vim and i get this: $ sudo aptitude install vim The following NEW ...
1
vote
2answers
84 views

Copy file from buffer “a” in vim to new txt file

Would someone help me please with command for copy data from buffer "a" into new .txt file? I have copied 30 lines from Vi through command ("a30yy) into buffer "a" and I do not known how to copy this ...
0
votes
1answer
66 views

Unable to install vim on Ubuntu 14.04: “Package 'vim' has no installation candidate”

sudo apt-get install vim Reading package lists... Done Building dependency tree Reading state information... Done Package vim is a virtual package provided by: vim-nox 2:7.4.052-1ubuntu3 ...
0
votes
0answers
30 views

Vim is freezing after switching workspaces

After I switch from one workspace to another with vim opened to full screen it freezes in insert mode and not allowing to do anything. Only closing the terminal helps or killing entire process. I ...
7
votes
2answers
2k views

Vim is still present and executable even after running apt remove and purge on its package

I ran the following commands to remove vim. sudo apt-get remove vim sudo apt-get purge vim The package manager shows it doesn't exist. But when I type in vim and hit enter, it opens vim. When I ...
1
vote
1answer
33 views

How to add support of scala syntax highlighting in VIM?

How to configure VIM to be able to highlight scala language (.scala files extension)? Current VIM configuration (.vimrc file): :syntax on
0
votes
0answers
22 views

(Ubuntu) Setting up Java using VIM editor and running programs through terminal

I am currently learning to program in Java. I use IntelliJ as and IDE but sometimes I'd prefer to use plain VIM editor in order to understand the syntax a lot better. I've already done this with ...
0
votes
1answer
100 views

Tell me How to remove proxy permanently from ubuntu environment

Every time I'm getting this: env | grep -i proxy HTTP_PROXY=http://: https_proxy=http://: http_proxy=http://: HTTPS_PROXY=http://: And I want to remove this proxy... Tell me how to edit this ...
1
vote
1answer
145 views

paste content from clipboard to text file in ex mode?

In normal mode "+p can paste content in + regiter to text file ,+p can't paste content from clipboard to text file in ex mode,how can? :reg + --- Registers --- "+ smartphone There is a word ...
3
votes
2answers
163 views

How edit anyway .conf on symlink using vim?

I have file in ../new-path/ dir. lrwxrwxrwx 1 root root 32 Sep 6 19:43 test1.conf -> ../new-path1/test1.conf When I edit it with Vim using sudo vim test1.conf on under Vim dialog said. "test1....
1
vote
0answers
49 views

Vim, terminal, or htop won't start

Starting Vim, terminal or Htop from the Ubuntu 16.04 Unity desktop "Search your computer" doesn't work. When I select Vim for example, The Vim icon appears in the launcher and oscillates between ...
0
votes
0answers
32 views

How do I use `sudo -e` together with gvim?

So when one edits a file owned by root it is recommended to use sudo -e. This will open a copy of the file in your favorite $EDITOR. Using this together with vim works like a charm. However, when I ...
3
votes
1answer
54 views

opening a file in terminal vim make the message press enter or enter command to appear

If I open a file in VIM either through :e <filename> or clicking the O key in NERDTree side window or searching and selecting a file with FZF from inside vim makes, I see the message press ...
1
vote
1answer
172 views

Ubuntu 18.04 vim-gtk with python2 support

I need vim-gtk with python2 support on ubutnu 18.04. On Ubuntu 16.04 I used the package vim-gtk-py2 but I don't see an equivalent package on 18.04. Does anyone know of a vim package with python2 ...
3
votes
1answer
395 views

less calls nano instead of vi

In the default configuration of Ubuntu 18 LTS server, pressing the V key in less calls the nano editor instead of vi while none of the environment variables $LESSEDIT, $VISUAL or $EDITOR are set. I ...
3
votes
1answer
661 views

What is the ubuntu-minimal package and do I need it?

I want to uninstall vim, and according to this answer that is done by uninstalling vim.tiny. But when I run apt remove vim.tiny apt also wants to remove ubuntu-minimal. What is ubuntu-minimal? Will ...
0
votes
0answers
27 views

Run a vim command from a file

Say I have a file and, in one line of the file, I have written a vim command (for example :setlocal foldmethod=indent) Is there a way for me to run the command written in that line, without copying ...
0
votes
1answer
166 views

Terminator 1.91 terminal emulator overwrites existing output in Ubuntu 18.04

Seemingly randomly, when sending a SIGSTOP to vim, my (Terminator 1.91) terminal output breaks. Instead of adding lines to the bottom of the display, it overwrites existing lines. Sometimes it will ...
0
votes
0answers
55 views

Accelerating xdotool command

I mainly use dvorak keyboard layout. But when I use vim, I want to use qwerty layout for normal modes, so I put the following lines in my .vimrc file. autocmd VimEnter * silent !xdotool key super+...
4
votes
1answer
104 views

Command to toggle keyboard layout

I am using a keyboard with a different layout than qwerty. This is a pain when I use vim editor so I decided to change my keyboard layout to qwerty only when I am using vim. I came up with an idea of ...
6
votes
1answer
1k views

What does this command line that starts with “1, $” do in Vim?

I have a shell script created by someone else which I am currently trying to understand and there is a line in it which is vim -c "1,\$s/MAJOR_VERSION = ./MAJOR_VERSION = $1/" -c "1,\$s/MINOR_VERSION ...
1
vote
1answer
72 views

set CapsLock as Esc, and Ctrl when pressed in combination

I would like to set CapsLock to Esc when pressed alone, but Ctrl when pressed in combination with another key. This is possible in karabiner-Elements for MacOS, but i cant find an easy way to do it ...
1
vote
0answers
99 views

Ubuntu 16.04 latest update of VIM broke Pathogen [closed]

I think the latest update of VIM broke it on Ubuntu 16.04. Now when I run VIM I get this message: Error detected while processing function pathogen#infect[8]..pathogen#interpose[12]..pathogen#...
1
vote
0answers
32 views

Weird error and weird solution about the group access

I am using Ubuntu 18.04 where vim and vim-gnome are installed. I have a remote server (Ubuntu 16.04) which can be connected by sftp:// in nautilus. When I try to modify a remote file in the local ...
0
votes
0answers
43 views

Unable to stop VIM with Kill, Htop, or anything else

I'm running Ubuntu Bionic. I installed SLiM display manager so my GUI uses tty2 and I ran vim to edit some C++ code in tty1. Suddenly, it froze completely. I tried to type things but nothing would ...
0
votes
0answers
76 views

The cursor appears before the line number after pressing down arrow in vim Insert mode with tmux

I use tmux2.1, vim8.1 in ubuntu16.04.4. And xshell-5 to connect to my server. This only happened when I use .vimrc and inside tmux. And real position of cursor is correct , only show error. After ...
0
votes
0answers
23 views

install vim text editor on ubuntu through terminal [duplicate]

I have tried install vim text editor on ubuntu through terminal but i got below issue After try this below command: sudo apt-get update sudo apt-get install vim E: dpkg was interrupted, you must ...
0
votes
0answers
75 views

Cant navigate or remove autocomplete popup in vim

I am using vim8.1 with YouCompleteMe plugin for auto-complete. When auto-complete list pop-up is triggered , If I ignore it and continue typing, nothing happen . But whenever I press arrow key, it ...
2
votes
1answer
274 views

gVim randomly spouting warning: invalid source position for vertical gradient

I run gVim from the command line and have for many, many years. But ever since upgrading to Ubuntu 18.04, I keep getting a long string of this warning a while after starting gVim: ** (gvim:5924): ...
1
vote
0answers
317 views

Terminal in Tmux is 256 color but Vim isn't

I'm new to Ubuntu. Recently I installed tmux on my Ubuntu 16.04. The terminal screen in tmux shows 256 color correctly. However, when I opened vim in tmux, the color was different from what normally ...
1
vote
1answer
49 views

Vim test if options are valid before setting

I use my .vimrc on a number of different machines, which all have significantly different versions of vim. Most versions boot up fine, but one of them has reports this (doctored) list of errors on ...
1
vote
0answers
64 views

Disabling relative line numbers in SpaceVim

I find it annoying having to type :set nrnu everytime I open a file. If I make a .vimrc file then spacevim no longer loads, I just get vanilla vim.
3
votes
0answers
2k views

Can't install vim on Ubuntu 18.04 because of broken python package [closed]

I'm having problems installing vim on my upgraded Ubuntu. When I try to install vim: sudo apt-get install vim I get this error saying I have broken packages. The following packages have unmet ...
0
votes
0answers
223 views

Indentation problem with python3 and vim

A sample of my python file is def __init__(self, csvFile, chunksize=10000): self.newName = csvFile[:-4] import ipdb; ipdb.set_trace() self.csvFile=csvFile self....
0
votes
0answers
12 views

Exiting netrw v156

I was trying to follow some instructions on setting up a quicker login method to a server. I created an SSH key and I put it on the server. this allowed me to log into the server using terminal and ...
0
votes
0answers
61 views

Is there any software you know that helps for mouseless movement?

I am searching for a software that would help me use vim-like keys for moving around in the os without need for the mouse at all. There are couple tiling wms which are amazing but the problem is that ...
1
vote
1answer
675 views

vim-clang-format: clang-format is not found

I installed clang-format on Ubuntu 18.04 LTS with sudo apt install clang-format and the installation was successful. I can execute clang-format-6.0 now, but when I use ClangFormat in vim, it tells me ...
0
votes
0answers
31 views

Why is default vim without clipboard?

Is there any reason why default vi and vim come without clipboard support? I'd expect global register to be active by default. Don't know why I have to install vim-gnome or vim-gtk to enable this.
0
votes
1answer
656 views

Default vim usage in Ubuntu Bionic feels regressed from 17.10

Using Ubuntu Bionic (server image pre-GA), coming from Centos 7 (i.e. this may not be limited to just Bionic), I find that the vim editor has some very annoying defaults. How can I disable the ...
0
votes
0answers
41 views

Vim system clipboard in Ubuntu server(without GUI)

I am using Ubuntu Server16.04 and Vim 7.4. Actually, I have had Vim use system clipboard(using register + and clipboard=unnamedplus) in Ubuntu Desktop. However, somehow It doesn't work anymore since ...
0
votes
0answers
51 views

Vim start-up: set the vim runtime path(s) without calling debian.vim?

can we set the rtp's without having to call debian.vim? Using Win10 HP laptop for local development. Not running any servers.
0
votes
2answers
75 views

I can not use vim to edit texts

The problem is that when I'm trying to edit text like: >> vim lab nothing happens. Can anyone help me?.
1
vote
0answers
55 views

x11 clipboard not available after quitting vim

While I'm running an instance of Vim (version 7.4, in the terminal) I can copy text into the + (Primary Selection) and * (Clipboard Selection) registers. If I switch to another program in a new window/...