vim (Vi IMproved) is a text editor supporting different editing modes.
0
votes
0answers
7 views
Racket CLI repl interprets tabs in text sent via tmux as autocomplete
I'm using vim, tslime, and tmux to send scheme code to the racket repl (v6.7) via the command line. I'm running on Arch Linux.
When I do so, I commonly get the auto-completion warning:
"Display ...
0
votes
1answer
19 views
run editor command when leaving insert mode in vim
I want to run a :command in vim when I exit insert mode. Specifically I want to run :GoFmt to format my code when I exit insert mode. Currently it runs when I save the file but sometimes I want to ...
3
votes
2answers
52 views
How can I access a Vim process after closing its terminal on macOS?
This what I get when I run the ps command:
$ ps
PID TTY TIME CMD
14777 ttys000 0:00.25 -bash
19716 ttys000 0:00.15 vi templates/base.html
8240 ttys001 0:00.11 -bash
8284 ...
1
vote
0answers
19 views
How do I create abbreviations in vim (PuTTy)? [closed]
When I try to use the command for abbreviations ":ab" in PuTTy, it says that the command was not found.
0
votes
0answers
24 views
How can I pipe coloured grep output into vim [duplicate]
So I am trying:
grep --color -irn '.' -e "start" and I'm getting my coloured search results with different colours for my files and my search terms. What I can't do is, whenever I pipe this output ...
-1
votes
0answers
28 views
Vim problem installing python 3.5 from source [migrated]
I have installed python 3.5 from the official source, and everything was working. I decided to try vim as a sort of command line IDE. Most plugins worked with vim, but when I tried YouCompleteMe for ...
1
vote
1answer
28 views
How to stay in zoom in tmux if select-pane command issued?
I'll explain what I mean. Suppose I've created a horizontal split and then zoomed the top pane.
Then when I'm pressing C-w-l bounded to select-pane -L (I'm using vim and TmuxNavigator plugin to '...
3
votes
1answer
45 views
How to get the file path of a buffer?
I know that the register % contains the full path of the current buffer. But how to get the full path of another buffer by its number?
Is there such a function/command in VIM?
I want to explain how ...
2
votes
1answer
41 views
Cannot enable TrueColor support in tmux via overriding terminfo
dist: Arch Linux.
I have an st build from AUR and tmux from official repo.
In st I meet a good TrueColor support that works with last Vim version via termguicolors option.
But when i tried to bring ...
4
votes
1answer
39 views
vim - How to escape filename containing single and double quotes mix?
Let's say i create a filename with this:
xb@dnxb:/tmp/test$ touch '"i'"'"'m noob.mp4"'
xb@dnxb:/tmp/test$ ls -1
"i'm noob.mp4"
xb@dnxb:/tmp/test$
Then vim . to go inside Netrw directory listing.
" ...
0
votes
1answer
34 views
filename with newline in vim's Netrw Directory Listing
Create a filename containing newline character:
$ touch $'a\nb'
When i do vim ., the filename split into multiline:
I can only select one line and press enter. Then it act as new file and show this ...
5
votes
1answer
52 views
Suppress recovery files when editing sensitive files in vi, nvi, and vim
I'm writing an application that maintains an encrypted database containing extremely sensitive information including cryptographic keys and passwords. The application is paranoid about using memlock, ...
2
votes
1answer
27 views
How to navigate back from text/binary file view in Vim's Netrw directory listing?
I use vim.gtk3 . to navigate current directory in Netrw Directory Listing view.
I know I can press x to act like xdg-open. I also know I can press - to navigate to parent directory.
But if I press ...
0
votes
1answer
51 views
vim cut&paste not working in Stretch / Debian 9
Upgraded here a few VM servers to Debian 9.
Now when in ssh, we cannot copy and paste between remote terminals. The cursor seems to be doing the movements, and marking the text, albeit in a funnier ...
0
votes
0answers
29 views
:Explore deletes current buffer, didn't use to
I used to be on ubuntu 14.04, where :Explore always worked fine, but I recently updated to 16.04 (vim version 7.4, patches 1-1689), and the behaviour of :Explore has changed. (unfortunately not sure ...
0
votes
1answer
37 views
Vim ignores “set hlsearch” in vimrc. Setting manually works fine
I may be wrong, but I seem to recall hlsearch being on by default.
Setting it explicitly in .vimrc has no effect, though running
:set hlsearch
within vim turns on highlighting as expected.
I've ...
1
vote
2answers
58 views
Vi replace the currently searched string
I know how I can search and replace a string, either globally or in a selected area.
But I have the habit to go over a word and then hit * to search for that word. This won't only search for the word ...
0
votes
2answers
86 views
Need to type special symbol in vi
I want to type ½ in vi mode but it is coming with extra character ½. I am pressing ALT+0189. I have searched a lot on the same but failed to get.
Please advise.
1
vote
2answers
44 views
Vim, put off indent in global config
My vim have a auto indent future for C files. I can run it and :set nocindent to change this behaviour. I don’t know what to add to the global configuration file. I’ve tested these lines without ...
0
votes
2answers
25 views
How can I use vim to remove first few characters of the selected lines using commands?
How can I remove the first few characters like remove ; from the selected lines using commands? I switched into the insert mode, but can't figure out how to do.
;extension=php_bz2.dll
;extension=...
2
votes
2answers
116 views
Set solarized scheme on LXTerminal
I installed the solarized theme for vim but it looks quite ugly.
The documentation says, that I should also enable the solarized theme in my terminal, which is the LXTerminal. Therefore I tried to ...
1
vote
1answer
48 views
vim inside screen : Indentation displayed incorrectly
When I used vim outside a unix screen to edit a file, vim displays the file correctly.
However , when I open the same file inside a unix screen, the indentation "seems" to become messy.
I say "seems" ...
1
vote
1answer
86 views
What vim theme is this?
I just ssh'd into a machine and I like the vim theme a lot. Does anyone know it's name? Here are a few screen shots:
1
vote
1answer
46 views
Editing and compiling files on a remote server with Vim
I am editing a bunch of files on a remote server. I can connect using SSH (public key or password). I use Vim as follows:
vim scp://user@server//path/to/file.cpp
I need to use Vim on my computer ...
1
vote
0answers
36 views
Unable to install vim on a RasPi (Raspbian GNU/Linux 7)
I am trying to install vim onto a RasPi (i.e., Raspbian GNU/Linux 7 (wheezy)), but while executing "sudo apt-get install vim" I am getting an error. I have tried searching for a solution, but I haven'...
1
vote
1answer
24 views
Vim printoptions wont accept two options simultanenously
I want to print my code into a pdf file, and I found this answer very helpful. However, I want the generated pdf without header and with line number.
From the comment and internet, I found I need to ...
1
vote
0answers
22 views
Conque-GDB in vim: how to set size
I use Conque-GDB as a plugin in Vim.
Here is how my Vim now looks like:
As you see I also use the Nerdtree and I can easily change its size:
https://codeyarns.com/2014/05/08/how-to-change-size-of-...
0
votes
1answer
31 views
How to debug `Error while processing function` in `vim` and `nvim`?
TL;DR
How to find where exactly vim or nvim error started (which file?) when I'm interested in fixing the actual issue and not just removing the bad plugin? Anything better than strace and guesswork ...
8
votes
2answers
261 views
Where is vim after pkg install?
Taking the first few shaking steps with FreeBSD. Started by installing vimI thought, but:
root@rpi:~ # pkg install vim
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All ...
3
votes
1answer
39 views
How do you get the contents of the buffer as a string in vim?
I am trying to use the buffer contents in various functions.
-2
votes
1answer
40 views
First several characters of clipboard deleted when pasting in Vim
When I paste items into Vim, the first several characters are routinely missing. This has caused some serious errors. If I paste into gedit, for example, all lines are there. I can go back into Vim ...
0
votes
1answer
20 views
How can I get vim to show document path in Terminal?
OS X 10.11 adds a nice feature to Terminal.app that interprets control sequences of the form
ESC ] 6 ; file://hostname/<path-as-URL> BEL
as specifying the "document" which is currently being ...
1
vote
1answer
21 views
How to prevent `git difftool` from calling another `vimdiff`?
I have git configured (like below) to use vimdiff as difftool and compare another pair of files without prompting as soon as I call :qa. It's awesome. The only problem is sometimes there are ...
0
votes
1answer
21 views
screen - sent bash to background?
So I was working on homework on my school's unix server and I think I totally messed up a screen session. I was going a little trigger/keyboard happy in vim and accidentally did :w2 instead of just :w,...
2
votes
3answers
39 views
How do I overwrite rows of text going down in vi / vim?
In vi / vim I would like to overwrite rows of text going down the page. Similar to overwriting characters in a line - I press R, then paste and the charcters are overwritten, but instead I want to do ...
0
votes
1answer
22 views
Is there any vim plugin provides brackets jump features?
I am looking for a vim plugin which can provide the following functions:
automatically let the cursor jump one character ahead and insert a tag(<++>) at the original place if the user input a pair ...
1
vote
0answers
30 views
XTerm does not update vim changes properly
im currently using XTerm emulator and vim 7.x
and when I for instance delete a word the
curser is set correctly back to the previous word,
but the deleted word is still shown.
Same problem when ...
2
votes
1answer
47 views
Vim & Vimperator: Map Windows/Meta key?
I would like to map the Windows/Meta key in my vimperatorrc & vimrc, including Meta-key bindings for tab movement:
" move to previous tab
nnoremap <M-h> gT
" move to next tab
nnoremap <...
2
votes
2answers
58 views
Two different vim configs for one user based on alias?
I'm trying to get two different vim setups to load based on who is using it.
Problem
two users use the 'root' user regularly
each of us prefers different setup in vim.
He uses a simple .exrc ...
1
vote
1answer
64 views
Is it possible to find which vim/tmux has my file open?
I use tmux at work as my IDE. I also run vim in a variety of tmux panes and will fairly often background the process (or alternatively I just close the window - I have vim configured not to remove ...
0
votes
0answers
18 views
Make GTK or KDE text fields be Vi-like?
Is there a way to make all GTK or KDE text fields Vi-like, akin to what set -o vi in ~/.bashrc does with the Bash shell?
2
votes
2answers
30 views
vim search for underscored variable name with *
When I press * on a variable name such as hello,
vim will highlight names like this->hello or this.hello, but not _hello.
It is a very strange behavior because I can highlight all hello's by /...
2
votes
5answers
45 views
quickly change the next several lines in vim?
I have the current file (current location being [n])
The [p]hilosophical chicken saw the street
The red dog saw the street
The red dog crossed the street
The apple was red
The red dog crossed the ...
1
vote
1answer
54 views
vim: manipulate dictionary popup for autocompletion
I would like to tweak vim for using cdo (Climate Data Operators) efficiently. Because I need to use cdo in (bash) scripts, I would like to add an autocomplete matching (implemented!) with small ...
1
vote
1answer
40 views
Map alt or ctrl + h,j,k,l as arrows in general | gnome | vim-style
I would like to use ctrl + h as Left Arrow and so on (vim style) in whole OS (all apps). I use gnome 3.16.4.
xev result for ctrl+h press-release sequence is:
KeyPress event, serial 37, synthetic NO,...
1
vote
1answer
44 views
VIM replaces backspace with ^?
Whenever I type backspace in VIM the editor inserts ^?.
I've edited .vimrc to have set backspace=indent,eol,start and it didn't work. set backspace=2 Didn't work either.
I've read that you need to ...
1
vote
1answer
146 views
Powerline in vim errors setting up
I installed powerline using pip install as per their installation recommendations.
I have it working fine in both zsh as a prompt and tmux as a statusline yet I can't get it to work in vim.
When I ...
0
votes
1answer
182 views
Enabling python3 on vim in Fedora 24
I have vim installed and it is configured with +python3/dyn. If I run vim --noplugin I can use py3. However with my plugins enabled, I get the following error:
E837: This Vim cannot execute :py3 ...
2
votes
0answers
43 views
How to use `gnome-terminal` with new client/server architecture as wrapper?
Anyone knows how to accommodate for new gnome-terminal-server magic?
Before gnome-terminal got its new "client/server" architecture I used to use it as vim wrapper with great success for many years. ...
1
vote
1answer
28 views
Can't change default text width in GVim
Gvim is set to 78, can't change default text width to "0" at gvim, i edited "C:\Program Files (x86)\Vim_vimrc" set textwidth=0 or set tw=0 but neither helped. How do i disable textwidth parameter?