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
7
votes
2answers
567 views

Bash function to robustly pipe terminal output to vim

I often re-direct my terminal output to vim, in this fashion, which I get tired of typing all the time: ls | vim - I would like to define a function v to do this for me, i.e I want to be able to type:...
0
votes
0answers
7 views

How to insert numbers in gedit in rtl as in vim rtl

I want gedit to have a similar behavior to vim :set rl photo of the same text input in both : text -> "السلام عليكم ١-٢-٣-٤" without the dashes or hyphens . vim: السلام عليكم ٤٣٢١ Gedit: ...
0
votes
0answers
22 views

I want to remap the right CTRL key to ESC [duplicate]

I want to remap the control (CTRL) key on my Ubuntu 18.04 LTS laptop to escape (ESC). I'd rather not hack the xmodmap configuration if possible, because I've already remapped keys using gnome-tweaks, ...
0
votes
0answers
22 views

Vim: How to enter a normal editor command in shell before literally oppening

There is a command option when you run vim to open a file with command-line that i found when i was searching. here it is: vim "+ normal G" textfile When you use the command + normal G vim ...
1
vote
1answer
23 views

Vim won't work after upgrading ubuntu to focal fossa

I was using vim built from source, with ruby support on ubuntu 18.04. After upgrading ubuntu to Focal Fossa, its not working anymore. I get the following error in the terminal vim: error while ...
0
votes
0answers
17 views

Very unusual rapid memory consumption as soon as Atom or SublimeText opened

Any ideas how I can diagnose why this is happening? On Dell XPS 15 running Ubuntu 18.04.4 LTS. Was using Atom with a few extensions (Hydrogen, etc) editing some Python code, a total of 3 tabs opened....
0
votes
0answers
18 views

Running midnight commander in vim occurs visual error

I tried navigating folders using midnight commander in vim, so I typed :!mc to do running midnight commder in vim . And when I type C-o for returning to vim, terminal screen shows, not the vim screen....
1
vote
1answer
793 views

Getting the message “[ 0.283078] Initramfs unpacking failed: Decoding failed” when booting ubuntu 20.04 then boots normal

so title basically says it. Before, I had problems installing the a200 intel wifi/bluetooth driver which I didn't manage to install properly (I had downloaded it but couldnt use it/ I didnt get it ...
1
vote
1answer
108 views

Problems with Vim after upgrade Ubuntu to 20.04

I recently upgraded Ubuntu from 19.10 to 20.04 using do-release-upgrade, facing no problems whatsoever. I had Vim installed in my system (build from source). But now, when I try to run Vim, I get this ...
0
votes
1answer
90 views

Not able to install golangci-lint in ubuntu 18.04

On installing vim-go in my Ubuntu 18.04 but on following the steps I am getting an error as shown below :- vim-go: Error installing github.com/golangci/golangci-lint/cmd/golangci-lint@master: go: ...
0
votes
0answers
13 views

Soft links change working directory to link source in vim

I'm using wsl ubuntu on windows 10, and I have a directory that I had been storing python projects in before I started using wsl at C:\Users\____\Onedrive\Documents\Python Projects. I have created a ...
2
votes
2answers
261 views

How do I change default terminal for executing .desktop files?

I've been trying to execute vim with alacritty as default. I have alacritty set as my default terminal emulator already, and in my vim.desktop I changed exec=vim %F with exec=alacritty -e vim %F. The ...
0
votes
0answers
26 views

how do I paste the text currently in the clipboard into the terminal opened inside vim by using the command :terminal

I have recently started using vim and opened the terminal using :terminal command in vim but I am not being able to paste the text in the clipboard in it. Can someone guide me on how to do it. It ...
1
vote
1answer
21 views

How do I remove “language support” entry, which is appearing twice under applications menu in Ubuntu Budgie 20.04?

I am pretty new to the OS. I just discovered that there are 2 entries being displayed for "language support" under applications. What I have tried so far: navigated to /usr/share/applications looked ...
0
votes
0answers
15 views

How do I get rid of the gap on the right hand side of a maximised terminal when running Vim?

On multiple versions of Ubuntu, Vim and Neovim display a horrible gap on the right hand side of the terminal when it is maximised. This is Gnome terminal: And this is Konsole: This does not happen ...
0
votes
1answer
20 views

Arrow and canc no more works as indeed

My problem is that, out of nowhere my arrow keys and the canc button no more work on Ubuntu If I'm using the terminal the arrow keys, instead of moving left and right or let me use previous commands, ...
0
votes
1answer
127 views

How to customize vim editor using someone else's customization?

I downloaded a file that would help me customize my vim editor here in the section on "Customizing Vim". I now have the file in /home/double_toned as vimrc. Now when I type vim in the command line, I ...
0
votes
0answers
65 views

E212: Cannot open file for writing

I am trying to edit vim settings so I enter ~/.vimrc to browse to the file. However, I get this error when trying to save the file: E212: Cannot open file for writing Can anyone assist? I've tried ...
0
votes
1answer
94 views

Ubuntu Server/Desktop 18.04 how update Vim from 8.0.1453 to 8.2 [duplicate]

I am working with Ubuntu Server and Desktop and both are based with the 18.04 version I need work with vim - by default it is installed in Server - it has the 8.0.1453 version. But in the ...
1
vote
1answer
25 views

Got syntax error when setupping powerline theme

I am taking example from this bash.rc file to apply this to my shell: #======================================================================# # .bashrc # Fichero de opciones del shell bash # # ...
0
votes
2answers
60 views

Calling the “history” command within a VIM shell script

Total programming newbie, probably extremely naive - bear with me. As part of a current assignment, we've been given the task of grouping specific commands into a shell script. (date, hostname, arch.....
0
votes
1answer
79 views

Vim breaks ubuntu18.04 requesting for vim-common 2:8.0.1453-1ubuntu1.3

Preparing to unpack .../vim-runtime_2%3a8.0.1453-1ubuntu1.3_all.deb ... Unpacking vim-runtime (2:8.0.1453-1ubuntu1.3) over (2:8.0.1453-1ubuntu1.1) ... dpkg: error processing archive /var/cache/apt/...
0
votes
1answer
42 views

in VI mode i want copy particular specific lines from. log, .txt file

I have files which contain more than 2,00,000 lines in file i. e. abc.log file in that I want to copy line 600 to 750 and 40,000 to 60,000 in VI mode and paste new txt files
0
votes
0answers
22 views

Ubuntu 18.04.4 on Raspberry Pi 3: Issues with Display Ratio

(Disclaimer: I'm relatively new to raspberry pi so just bear with me.) I just installed ubuntu 18.04.4 on my raspberry pi 3 and got the desktop running (along with vim and python3). However, the ...
6
votes
3answers
444 views

Vim's command to create a new file with the same content of any other file

Say, there is a file first.txt and I want to make a new file second.txt with the same content of first.txt, is there a direct command in Vim to do that? I don't want to first create second.txt and ...
0
votes
0answers
31 views

Solarized doesn't work in ubuntu 18.04 vim on gnome terminal

As much as I have tried to use solarized in vim on the terminal, it doesn't work for me. I've tried all the possible combinations of set t_Co and using solarized color scheme on the terminal too and ...
0
votes
0answers
25 views

Using strace to capture each read and write given to vim

So, to clarify, I'm currently working on a CTF challenge that consists of running an strace over on a bash script that is running vim commands using commands like vim -c ":!cat flag.txt" inside of a ...
0
votes
1answer
97 views

Something missing with Vim

I'm new to Vim. When I run it from the terminal I get the error: Error detected while processing /home/Rob/.vimrc: line 28: E492: Not an editor command: Plugin 'vim-pandoc/vim-rmarkdown' vim-llp: ...
0
votes
1answer
169 views

vim: E212: Can't open file for writing (even when using sudo)

I'm trying to write to /usr/share/application/whatever.desktop and every time I try to save, using vim, I get the following error: E212: Can't open file for writing I get this error even using ...
4
votes
2answers
325 views

How can I install the minimap plugin for vi or vim?

My System Ubuntu Desktop 18.04 LTS Window Manager: i3WM No virtualization. Native install. Parts of this question comes from my post on Facebook Some days ago I was trying to identify this ...
0
votes
1answer
81 views

mapping keys in .Xresources not working

I'm mapping keys such as Ctrl+Shift+a to send a particular string that way vim can receive it. ~/.Xresourcs XTerm.vt100.translations: #override \ Ctrl ~Meta Shift <Key>a: string(0x1b) ...
0
votes
1answer
988 views

After recompiling vim to use python 3, I still get “requires Vim compiled with Python 2.x support” from YCM

I followed the instructions at https://github.com/ycm-core/YouCompleteMe/wiki/Building-Vim-from-source which included adding python3 support. Then I installed ycm per the instructions at https://...
1
vote
2answers
502 views

Default editor for git set to nano--how?

New eoan installation, just installed git and vim and recovered one of my projects from backup. Configured git user.email and user.name, made a couple of small changes, tried commit and... nano ...
1
vote
1answer
41 views

define vim key mapping for user defined bash function

I defined a bash function in my .bashrc file, "myfun" for example. Now I would like to execute this function inside vim function vimfun(filename) execute '!myfun' '%' endfunction and I want to ...
0
votes
0answers
39 views

Can't install vim after upgrade from 16.04 to 18.04

Can't (re-)install vim after upgrade due to some python library incompatibilities: [~] dave -> sudo apt install vim Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
102 views

what is a good text editor for ubuntu touch? [closed]

I have ubuntu touch installed on an arm based andriod phone. I have some files to edit, but using vim and nano is hard using the onscreen keyboard since I haven't figured out how to press the escape ...
1
vote
1answer
569 views

How do I install vim-gnome on Ubuntu 19.10?

On one laptop running Ubuntu 19.04 I have installed vim-gnome without any problems. On a second laptop running Ubuntu 19.10 I get the following error when using: sudo apt install vim-gnome Reading ...
0
votes
0answers
72 views

vim fails to run after uninstalling python [error while loading shared libraries: libpython3.5m.so.1.0]

I uninstalled Python 3.5 to install Python 3.8 and now when I try to run vim I get the following error: vim: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file:...
1
vote
1answer
45 views

Vi/Vim editor enters next line instead of entering editor mode

Recently, I noticed that when I type vi foo.txt, my mouse cursor will simply enter the next line without actually opening the file. If it is a new file, I can enter Ctrl+C to enter the file and edit. ...
1
vote
1answer
83 views

vim - running dd range command using command line

For deleting a range of lines, I know we can use :3,15d and it works. But if we try to run the same command using normal command (:3,15 normal dd), it behaves erratic and deletes some random blocks/...
0
votes
0answers
50 views

On WSL: Broke Soft Link to gvim

I realized that I made a mistake trying to get gvim to work on my Windows system. After following the following instructions, gvim no longer works in my BASH/ZSH shell. Link to Instructions What I ...
0
votes
0answers
47 views

Remove encryption key set for a file in vim

I have mistakenly save one of my files with :X command and hence I had to set my encryption key for that. But now I want to remove the encryption key and keep it as it was. I tried setting :set key= ...
0
votes
1answer
39 views

Numpad in vim via ssh

I run putty in order to connect to Ubuntu machine via ssh. I found that when I use numpad in vim editor it prints garbage or executes some strange vim commands. Why and how to solve that?
-1
votes
1answer
761 views

Unable to use Vim

I downloaded the current version of Vim (which I use for Python programming) from their web site. When I try to run it in the terminal I get the following message: vim: error while loading shared ...
0
votes
0answers
418 views

Windows Ubuntu and Zathura

I am trying to set up zathura on Windows 10 by using Ubuntu as available from the microsoft store. I would like to use Zathura as my PDF viewer when writing with vim/vimtex, and am currently facing ...
0
votes
0answers
326 views

Using all potential of the font Fira Code

I am asking myself if there is a way to use Fira Code for coding in Vim8 (and GNOME terminal) with ligatures ? Arrows and other symbols seems perfect; it seems not supported yet :(
0
votes
0answers
61 views

YouCompleteMe - Path of file

I would like to know settings that disable showing the path after dash. It is disturbing and not necessary. I tried to search on google on YouCompleteMe doc, but unsuccessful. I have no idea which ...
16
votes
3answers
3k views

Vim: Exit (:wq) with trailing exclamation mark ! What's the purpose?

If one leaves an edited file with :q!, then it discards the updates. If one leaves with with :wq, then it writes the updates and quits Vim. But what's the purpose of :wq! (with a trailing exclamation ...
0
votes
1answer
82 views

How to paste code into vim without super indenting issue

I paste into the gedit text editor and that' s ok (on the left). But when I paste into vim (on the right) i get the weird 'too much indenting' issue. Also it's not immediately fixable with selecting ...
0
votes
0answers
20 views

How to let ` be the circle suggestion key in youcompleteme plugin

I tried a lot to try to get it works, I set let g:ycm_key_list_select_completion = ['`', '<Down>'] and remove '':'' in auto-pairs as below, but the auto pairing still exists. let g:...

1
2 3 4 5
15