Questions tagged [vim]

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor.

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

Vim installed with Git for windows does not work correctly in PowerShell

I am on Windows 10. I first installed Git for windows and then I installed posh-git in PowerShell. Git installed fine into the folder C:\Program Files\Git which included vim.exe in C:\Program Files\...
1
vote
1answer
13 views

Viewing wide terminal output in tmux

I enjoy using psql with Tmux and Vim, using Vim to edit my queries and send them to psql in another Tmux pane. This is a fantastic workflow, far superior to a GUI like DBeaver in my opinion, but: It ...
1
vote
2answers
11 views

gvim 8.2 doesn't redraw the screen when editing a git commit message in windows 10 powershell

I installed vim on windows 10 using chocolatey. When I edit a file in powershell, everything works great! I even got copy and paste to work. However, when I edit a git commit message, vim doesn't ...
0
votes
1answer
7 views

Configure gvim swap, undo, and backup files on windows

I installed vim on windows 10 using chocolatey. When I edit a foo file in powershell, vim leaves behind .foo.un~ or .foo~ files. What are these and how do I stop vim from leaving them around?
1
vote
1answer
11 views

gvim 8.2 doesn't paste on windows 10 in powershell

I installed vim on Windows 10 with chocolatey. Copy and Paste don't work when I invoke vim in powershell. I expect them to work as long as I'm in insert mode. How can I make copy and paste work?
0
votes
1answer
17 views

Mapping Shift+Arrows to select text in tmux with vim

I use vim in linux and have recently started to use tmux too. I use vim with the Windows shortcuts instead of the vim ones, for example; Shift+Arrows for selection instead of HJKL, Shift+Arrows for ...
0
votes
1answer
14 views

Using tmux copy mode just like vim

I'm trying make use of the copy mode of tmux to copy some part of text in one of my panes but I cannot really manage with it, spacebar is not working to select the text and I'm getting a bit lost. ...
1
vote
1answer
37 views

Default vim colorscheme in Debian?

In every Linux system I install or I happen to log into I want to use the same vim colorscheme, e.g. the default one Debian uses, because I usually use Debian and I like the default colorscheme. What'...
0
votes
0answers
8 views

GVim Shows Python Support Error When Opening [migrated]

Every time I open up gVim there is an error that says that Python is not supported. I have checked numerous websites and everything that I have tried does not seem to work. In my vimrc file, I have ...
0
votes
0answers
4 views

Get current buffer (content) size in vim script [migrated]

I'm using nvim v0.4.3 and am trying to apply some of the tricks + alpha (e.g. disabling substitution preview) to make editing large files faster. I want to do that even to unnamed buffers (i.e. ...
0
votes
0answers
21 views

How do I set the vim plugin youCompleteMe to c++ and python?

I want to configure my vim file to set youcompleteme to autocomplete my cpp and .py files, but I don know how do this at the same time.
0
votes
0answers
327 views

How to install nerdtree vim plugin in a fish shell?

Iḿ trying to install nerdtree vim plugin in my fish shell, but I'm still getting the same error: line 76: E117: Unknown function: nerdtree#runningCygwin E15: Invalid expression: !nerdtree#...
0
votes
2answers
31 views

How to copy from vim to clipboard on ubuntu 20.04

I am trying copy text in vim and then i use the *y, but pasting it into a browser does not work. I am using ubuntu with i3 tiling manager. Can someone help with this?
1
vote
1answer
12 views

Copy mutliple line in vim until empty line

I would like to yank some lines beginning from 'some_code_to_copy' until the empty line and then do the same for 'some_other_cody_to_copy' in vim. some_code_to_copy(){ statement; statement; ...
1
vote
1answer
19 views

VIM go back (CTRL-O) to already opened tab

When I do gf then file under the cursor is opened in current tab. That's fine. When I do CTRL-W gf file under the cursor is opened in new tab - that's fine, but when I do CTRL-O newly opened tab is ...
0
votes
1answer
25 views

vim: unable to match character after new line properly

In vim, I'm trying to match all lines that has ^A. but not followed by a B. on the next line. I'm matching it with /\v^A\. .*$\n[^B]. This correctly identifies the relevant portion in question 2., but ...
0
votes
0answers
17 views

Passing BibteX options in Vim-Latex

My current Latex workflow involves using Mendeley to automatically create .bib files. These bibfiles are stored in a Mendeley directory in my home folder. Because I don't want to have all my projects ...
0
votes
1answer
31 views

How to move to next line and enter insert mode at same indentation level in Vim

I am using VimIdea in IntelliJ. How can move to the next line from normal mode and enter insert mode matching the indentation. While in normal mode, using o creates a new line and enters insert mode ...
0
votes
1answer
7 views

vim syntax file, how to mark everything after the word END as a comment?

i am writing a vim syntax file and would like to highlight everything after (but not including) the word END until the end of the file as a comment. thank you for any help!
1
vote
1answer
397 views

Understanding and using \& in vim search-and-replace

I have come across the following specifier for a vim pattern on http://vimregex.com/: \& -- the next line where the previously used substitute pattern matches And not quite sure what an ...
1
vote
1answer
37 views

In notepad++, can I paste a block of lines adjacent to the existing block of lines

Existing file aaaaaaaaa nn mm kkkkkk ll o I want another block of lines just next to this block of data. if I have few lines copied in the clipboard(either from same file or from a different file), ...
0
votes
1answer
30 views

how to copy all code in vim with invalid register name?

I'm trying to select all the code in my vim editor in a putty session on my windows 10 and paste it on notepad in windows 10. once I get into vim with terminal command vim code.s on ubuntu I've tried ...
0
votes
1answer
40 views

How do I exit vim, that is within emacs term mode with evil?

I am trying to make transition from vim to emacs (specifically doom-emacs). I was using term mode and habitually used vim in an attempt to edit another file forgetting that I was inside emacs. I ...
0
votes
0answers
28 views

Why does Vim think it is still running?

This is a follow up to this question: Why doesn't vim always give me the option to delete a swap file? My laptop died with some Vim sessions open. These were all files I had already saved, so I ...
0
votes
1answer
67 views

Git perminant cache password

Is there a way to use git config --global credential.helper without a timeout? i.e. have it never ask for my password again?
1
vote
2answers
58 views

Vim invert block of text over an axis

I was wondering what would be the most VIMish way to the following: I want to invert the text on the right side of the equal sign to the left (and the left to the right). For example, I want this v1 =...
0
votes
1answer
134 views

`git commit` redirecting output

I'm writing a script that runs git commit. It requires /dev/stdout to be clean for piping/cmd substitution. I this case, $EDITOR is set to nvim. $ git commit > /path/to/somewhere hint: Waiting ...
0
votes
1answer
71 views

macOS Console Vim Python3 Install

I know this question has been asked in many various forms, but I have not yet been able to get any of the answers to work. If anybody can point me in the right direction, it would be greatly ...
0
votes
1answer
26 views

How to let sudoedit source ~/.bashrc file

I have Vim shortcuts which requires me to edit the ~/.bashrc file to stop some terminal shortcuts like <C-S> - which freezes the whole terminal - so I can use them in Vim. when I open a Vim file ...
0
votes
0answers
17 views

How to copy text from vim to external application without using mouse?

I am trying to avoid usage of mouse by using keyboard only so that I can speed up things. Also, I am not great in VIM. My only motivation to vim is that everything should be possible through keyboard ...
0
votes
1answer
44 views

How to run shell commands after vim commands in command mode?

I know how to run shell comands in vim with :! bang syntax, But how can I done it after vim commands? for example :w!; !echo "some stuff"? I cannot make semicolon and continue with bang. So is there a ...
0
votes
1answer
1k views

Autoindentation in Vim for Python

I'm attempting to switch over to VIM right now, and would like to get it to indent automatically as an IDE would for Python. I've got the following .vimrc file syntax on set number autocmd FileType ...
0
votes
0answers
45 views

Make readline edit input command in external editor (similar behavior as “edit-and-execute-command” from bash)

Background So far I've found readline very useful since just by modifying a single configuration file (i.e. ~/.inputrc), you are configuring all those programs that depends on readline. The programs ...
0
votes
0answers
16 views

Neovim not updating beyond 0.2.2 on Linux mint

I can't update neovim beyond 0.2.2 while the latest release is 0.4. I tried updating but it shows you are already at the latest release. I tried installing deb package but doesn't work because it has ...
0
votes
1answer
18 views

How can I string vi-movements and commands in binding a key in vi-mode in bash?

In my previous question How to toggle case of word under cursor in vi mode in bash?, I have asked how to make word under cursor upper. The command for that is upcase-word. But unfortunately, that is ...
0
votes
1answer
41 views

How to toggle case of word under cursor in vi mode in bash?

In vi mode in bash, There is no such thing as toggling case. The only key to toggle until the line is <PageUp> key (as I by chance touched it). And according to this answer How to map PageDown ...
0
votes
1answer
63 views

How to map a keyboard shortcut to CTRL+R in iTerm 2?

I am trying to map the Command + Shift + Z shortcut to what vim uses for redo, CTRL + R: What is the proper code I should enter in? It seems that \c is not the correct code, but I cannot find it on ...
0
votes
0answers
9 views

How can I get Vim on Linux to read a .vimrc and plugins with clrf line endings?

I'm a Windows user and I'm using both Vim compiled for native windows as well as Vim inside the Windows Subsystem for Linux. The WSFL Vim is basically the elf binary that comes with the latest stable ...
0
votes
5answers
468 views

how to paste into tmux from system clipboard

I'm using tmux with WSL (Ubuntu 18.04) and I can't figure out how to paste into tmux. Pasting works great with the normal terminal by simply right clicking, but this doesn't work in tmux. All the ...
1
vote
2answers
194 views

How can I get tmux to ignore commands when inside a neovim pane?

I'm trying to get my tmux and neovim to work together as seamlessly as possible. There's kinda one issue I'm having with it though. Whenever I'm in a neovim pane within tmux, and I want to split ...
1
vote
0answers
55 views

Windows 7 Showing Rectangle Boxes Instead of Characters! [gVim]

I have been trying to solve this mystery for such a long time. Within Gvim I see all the airline symbols are not showing. Some are like rectangle boxes. It seems MS Word 2016 can show slightly more ...
2
votes
1answer
82 views

Solarized leaving red highlighting at the end of lines in vim

I'm using vim with the solarized dark color scheme within the Windows Subsystem for Linux. Solarized looks great except for one strange feature. When I scroll down in a vim file and then scroll back ...
0
votes
2answers
30 views

vim-like command line gui

Lately, I've been wondering how vim's user interface works, that when you start it, it occupies the entire terminal window, instead of just printing text and maybe requiring you to input something and ...
3
votes
1answer
135 views

How to reveal a file in vim Netrw treeview?

How can I reveal a specific file (usually the current buffer) in Netrw tree view, similar to :NERDTreeFind command does for NERDTree? To be more precise... I have a file opened in a buffer and I use ...
1
vote
1answer
50 views

Why is vim swapping case on forward-delete?

Vim + Catalina I just switched to MacOS Catalina which has zsh and vim 8.1 out-of-the-box. VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 13 2019 14:45:40) Included patches: 1-503, 505-680, 682-...
4
votes
2answers
116 views

Why I can't paste and copy from other program in Vim?

I can't copy paste from other programs in Vim on my new Ubuntu 18.04 even I set up .vimrc: set clipboard=unnamed "+p or "*p is not working either.
2
votes
1answer
115 views

VIM highlighting newlines in a file, how to disable?

I have tried installing a few new colourschemes for VIM and I have encountered a weird highlighting issue best explained with this pic: When opening an existing file everything is fine however when I ...
0
votes
1answer
37 views

Use sed to replace part of a string leaving other part represented by regex unchanged

Consider you want to replace part of a sentence and leave other part represented by the regular expression (regex) unchanged. For instance, here's a text file text1.txt A Egg b Egg C Egg D Egg E ...
0
votes
0answers
56 views

Installed vim in local area, but the new vim errors out for my installed plugins

I have installed a newer version of vim under ~/.local/usr/local/bin/vim, but when I open this version, I get the below errors for my plugins in ~/.vimrc: line 8: E492: Not an editor command: ...
0
votes
2answers
151 views

tmux: disable mouse when entering vim

Where ever I say vim, its vim inside tmux. Current scenario: I have mouse disabled in vimrc and enabled in tmux.conf. Mouse scrolls inside vim, use tmux-mouse to scroll and thus scrolls through ...

1
2 3 4 5
72