vim Questions

9

Solved

I've set the following options in .vimrc set listchars=tab:▸\ ,trail:· set list And expected to see dots in those places where spaces are used for tabulation in the code (I use spaces, not tabs)...
Ninebark asked 6/1, 2011 at 16:18

3

Solved

How do I need to adjust my vimrc to make vertical scrolling smoother? I want to achieve that one iteration of the mouse wheel just scrolls one instead of three lines.
Reikoreilly asked 8/1, 2014 at 14:5

3

When I run Vim from inside a tmux session and copy some text to the clipboard, each line gets padded with spaces to the right. For example, say I have a text file like this: ^some$ ^text$ Note:...
Montanez asked 26/2, 2015 at 18:22

6

I've recently installed vim text editor on my Windows. I've looked for any explanation about the location of vimrc file on Google, but I couldn't find any meaningful explanation. Where can I find v...
Wombat asked 30/3, 2020 at 13:18

7

Solved

In TeX vim usually screws up my indentation. Mainly when I'm in a displayed equation which I think should look like this: \[ x=\frac{y}{z} \] where the whitespace infront of the x is one tab. ...
Sipe asked 13/8, 2011 at 21:59

3

Solved

In my vimrc, I've remapped jk to escape using imap. The problem emerges when I use jk; it doesn't escape, it only echoes out <Esc>. Here's the entry in quiestion: imap jk <Esc> It's...
Hypnotherapy asked 4/12, 2012 at 14:3

8

Solved

I know how to copy a word, but I seem to overwrite what is in my clipboard because, when I try to copy over a word, it does not seem to be working. To copy a word, I can use bye How to copy ...
vim
Interrex asked 17/10, 2011 at 17:2

6

I am trying to use Vim to locate and copy/paste some code I need to analyze and take notes on. I am using Debian, in a Windows WSL environment. That's what makes this tricky. The regular "yank and...
Peephole asked 1/5, 2020 at 20:45

2

Solved

Is it possible in Vim to have my editor (when editing .c and .h files), show via listchars, a special character only for leading space characters? I found a separate post that noted, as of version...
Candless asked 8/11, 2016 at 23:40

5

I use WSL Ubuntu and Vim inside the new Windows Terminal, but if I have to enter the visual-block mode with C-v, I can't since it acts as paste. I am okay with rebinding it to something else but I ...

2

Solved

In an attempt to make myself use the shorter keystroke to get a colon, I have the following mappings defined in my .vimrc file: noremap ; : noremap : ; However, this breakes some of my other mappi...
vim
Joerg asked 31/3, 2012 at 0:47

5

Solved

I am trying to create an Ansible script to set up my mac. One role is to set up vim. A first clone my dot-files into a local folder and symlink them to ~/. In my vimrc I use vundle to install exten...
Crazy asked 9/2, 2019 at 13:15

10

my autoindent is not working, any diagnostic tests to figure it out? my ":set" is: :set --- Options --- cindent laststatus=2 scroll=17 tabstop=4 window=36 filetype=cpp number smartindent tt...
Buckman asked 15/10, 2010 at 0:29

5

Solved

How can I restore a vim file from the undo file without hitting undo? I had a vim file that I saved while adding text. Then I ran a python command that emptied the file's contents, and I can see s...
vim
Guaco asked 5/9, 2013 at 8:7

3

Solved

I'm working with a C++ project and trying to configure it to use syntastic. In my project I have a nested directory structure of header files (The actual nested structure is much worse, this is an ...
Xenophanes asked 18/5, 2013 at 10:2

8

I have fzf setup in vim with barely any customisation: " fzf and ripgrep settings set rtp+=/usr/local/opt/fzf let g:fzf_action = { \ 'ctrl-t': 'tab split', \ 'ctrl-i': 'split', \ 'ctrl-s': 'vsp...
Philologian asked 18/5, 2020 at 8:58

2

I want to be able to navigate the cursor across functions using Vim. Mainly, I want a command to allow me to go to the next function, like } allows me to go to the next paragraph. I found this: Go...
Moffitt asked 24/1, 2011 at 9:31

9

I'm just starting to use vim. I would like to know if there is a simple default key binding that will allow me to add a space in normal mode. If not what is the next best alternative?
vim
Counterpoison asked 28/4, 2012 at 14:32

5

How do I go to the beginning of the line in vim editor in normal mode? Is it possible to using my Home key on keyboard on Linux?
Explore asked 7/3, 2017 at 17:58

8

Solved

Is there a simple way (i.e. without writing a script or elaborate keymap sequence) to Yank a group of lines and leave the cursor wherever the Yank was performed, as opposed to at the start of the b...
vim
Occidental asked 27/9, 2010 at 18:18

2

Solved

So when I'm using Vim in the mac osx terminal I accidentally enter the command cmd+k that clears my terminal because I'm used to the motion, this makes me have to exit vim and enter again. I want t...
Gradus asked 24/2, 2018 at 22:47

7

Solved

I usually open many files in tabs with vim -p. Is it possible to check if any of the files was changed outside of Vim since editing started?
vim
Florance asked 20/2, 2010 at 19:33

7

Solved

I normally use gVim for editing, but I sometimes use vim when remotely connecting to my machine. When I have a file opened in gVim and it has changed from outside (e.g. new updates from repository...
vim
Meatiness asked 28/5, 2009 at 23:38

6

Solved

I'd like to use VIM to write papers for some classes I'm in. The problem I'm having is with the formatting of lines in the editor. If I don't explicitly break the end of a line with the enter key, ...
Renie asked 7/1, 2014 at 15:48

2

Solved

I have VIM netrw split setting to open any file in a right-side Preview Buffer, and it works fine. My problem is that a new file is automatically open in netrw buffer, when I create the new file ...
Jessie asked 6/8, 2017 at 20:33

© 2022 - 2024 — McMap. All rights reserved.