Questions tagged [vim]
vim (Vi IMproved) is a text editor supporting different editing modes.
1,877 questions
0
votes
1
answer
31
views
In external command line editor functionality, how to make (n)vim treat the temp file as zsh script?
I have a keybinding ctrl+x ctrl+e which uses a zshcontrib functionality (seemingly loaded by default on my Fedora machine) to edit the current command line in $EDITOR. (That function's name is edit-...
0
votes
1
answer
57
views
Prevent terminal from giving information about its background, so that Vim always sets bg=light (default)
I use Rxvt-Unicode and set background to black in .Xdefaults.
Vim detects that, cf. help 'background' :
"dark" is used when 'term' is "linux", "screen.linux", "...
0
votes
2
answers
91
views
How to start vipw/vigr without my vimrc?
my vimrc seems to not play along with vipw/vigr (probably because i only allow root to place tmp/buffers/etc in a secure location) so I tried (using bash):
user@host$ EDITOR='/usr/bin/vim -u NONE' ...
0
votes
0
answers
87
views
How to preset slime target to vim terminal by default?
When I use vim-slime, every time I open a vimterminal I have to reconfigure it.
:let g:slime_target="vimterminal"
Followed by:
SlimeConfig
And then I choose the terminal I just opened as ...
0
votes
1
answer
117
views
Changing font in my Vim text editor on Arch Linux? (DWM/X11)
I need your help! I am trying to set up a specific font and font size in my ~/.vimrc file using set guifont=Monospace:h15, but nothing is changing no matter if I put 12 or 20 in the size column. I've ...
1
vote
1
answer
325
views
Recompiling Vim with +clipboard on Arch Linux (DWM/X11)
I use Arch Linux + DWM on the X Window System. I can't copy from Vim to an external application, and the vim --version command returns -xterm_clipboard. As I understand it, I need to recompile my Vim ...
0
votes
0
answers
116
views
Opening Vim under script(1) breaks output. Can Vim detect script?
Opening vim while recording with script causes script to go wild (my screen starts filling up with a bunch of crap, some of which says "script", and I also believe it is colored neon green).
...
3
votes
1
answer
409
views
Multiple selection with fzf and vim having new lines in path/file names
I have a Bash function that follows the fzf key-bindings in key-bindings.bash.
# shellcheck disable=SC2206
__fzf_edit_file__() {
builtin local -a opts
builtin local edit_file file
opts=(
&...
0
votes
1
answer
63
views
Vim: How to Shift Screen Horizontally by One Character Column (Similar to Ctrl + E for Vertical Scrolling)
I'm currently using Vim and I'm looking for a way to shift the screen horizontally by one character column at a time, similar to how Ctrl + E shifts the screen up vertically by one row.
0
votes
0
answers
52
views
weird background when neovim plugins create panels
I'm not 100% sure how to describe the problem, but there's this background color applied to the editor whenever Telescope, NerdTree, or CtrlP display. Incase it wasn't obvious nixos is configuring ...
0
votes
0
answers
24
views
Nvim syntax highlighting disabled by screen command [duplicate]
When I open up neovim on my raspbian device the syntax highlighting works perfectly well. As soon as I use the screen command (to create a multi-paned setup) nvim becomes black and white. Colors ...
1
vote
3
answers
509
views
sudo vi fails with "Permission denied" after hardening RHEL
I recently hardened my RHEL system, and after that, sudo vi stopped working. When I try to run:
sudo vi test.sh
I get the following error:
/bin/vi: line 23: /usr/libexec/vi: Permission denied
/bin/vi: ...
0
votes
1
answer
53
views
is vimdiff able to swap delta between open files?
hence vimdiff a file comparsion tool targeted towards the cli environment.
I'm wondering if it offers functionality to swap line of codes between two tabs?
0
votes
2
answers
127
views
Using find with vim for file that contains whitespace
I have a file which contains whitespace in its name: my file.txt.
If I want to find a file which has this name and pipe its output to a vim with args, I must use --null|-0 in order to handle ...
0
votes
2
answers
265
views
How to make xfce4-terminal scrollback the terminal when pressing shift-pgup/pgdown while in vim
After a recent Ubuntu upgrade, behavior of using vim inside an xfce4-terminal has changed. Shortcut keys "Shift+Page Up" and "Shift+Page Down" are mapped in xfce4-terminal to "...