Topics related to the configuration of the VI editor.
Questions tagged [vimrc]
16 questions
35
votes
1 answer
How to tell if I'm in MacVim in .vimrc
In my .vimrc, I want to check if I'm in MacVim vs. regular vim so I can optionally set some MacVim-specific settings, which should not be applied to regular vim.
How do I do this?
Andy White
- 1,219
30
votes
4 answers
Vim re-edit as root
I often open a file in Vim, make some changes and when it's time to save, the file is read-only... (owned by another user). I'm looking for tips on how I could reopen the file as root and keep my changes without first saving it to a temporary file…
rkthkr
- 8,728
21
votes
10 answers
Suggestions for entries in a sysadmins .vimrc
At the very least I always uncomment "syntax on" in /etc/vim/vimrc
Gareth
- 8,733
20
votes
2 answers
How do I keep 10 lines visible when scrolling up to EOF with CRTL-F?
I am used to using vi, not vim. What I find annoying in vim is that when you are scrolling with CTRL-F and reach EOF, vim scrolls down to the very last line and put this line on the top of your screen, and you can't see the lines above. You must…
Gaston
- 302
5
votes
4 answers
How to I use Vim's increment (Control-a) when in a screen session?
Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
alesplin
- 228
3
votes
1 answer
Creating a global Vim configuration, including separate configuration files for plugins?
I use Arch Linux (ARM, but irrelevant) on a server machine, and I want to create a global configuration for Vim, based on my current personal configuration.
I have already moved my ~/.vimrc to /etc/vimrc, and that works fine, but I want to configure…
Archimaredes
- 131
3
votes
2 answers
Use local dotfiles on remote session
I have a few servers that I have personal accounts on, I have created an SVN repository to contain my home directory so that I can manage my dotfiles across these servers, which I'm finding works very well and makes it easy for me to track the…
richo
- 998
3
votes
2 answers
Languages in vim editor
How to insert copy-paste a hindi language word from web pages to vim editor.When i do it now it says "..... . ....." What is the settings that has to be changed in vim editor to do this
Thanks..
Hulk
- 401
1
vote
2 answers
Puppet: How to enforce file creation in root's home folder?
I'm trying to set a custom .vimrc profile on all servers in the production environment by using Puppet.
I wrote the following manifest:
class vim {
file { "/etc/skel/.vimrc":
path => '/etc/skel/.vimrc',
ensure => present,
mode …
Itai Ganot
- 10,976
1
vote
5 answers
Vim Configuration for Server-Side Editing
I always use Vim on our servers (mostly Ubuntu based) and I always lack a good configuration that suits vim over SSH without too much frills.
I'd like to gather as much as possible configuration settings for someone who writes mostly bash, zsh and…
kolrie
- 235
0
votes
1 answer
Using sed to remove "(double-quotes) on code lines while leaving them on real comments in a vimrc
I'm finally learning how to use sed to edit configs while installing Ubuntu(Server/Desktop). After much gnashing of teeth and searching about for the proper syntax to not remove the "(comment double-quotes with exactly one blank space afterward(real…
0
votes
1 answer
Change background color of vi/vim
I don't have access to the vimrc (no write access that is)
So far I have been using
colorscheme desert
to be able to read comments. But i'm getting tired of it any workaround or do I have to beg sysadmin to chmod it?
Marin
- 111
0
votes
1 answer
How to disable ctrl-v in Vim?
In /etc/vimrc, how do I disable the ctrl-v feature. I.e, disable visual block.
Hulk
- 401
0
votes
0 answers
How to setup vim-lsp-config and java-debug adapter working on java
I'm in University and we have started learning OOP using java{Help my sanity}. I am able to get completions and snippets working but I don't know how to configure Mason and Mason-Lsp-config to work with LspConfig. I am using lazy.nvim btw if that…
-1
votes
2 answers
I need a popup help file for Vim
Is there some kind of plugin or mode that can be used to display some help for commands? I am increasingly finding nano inadequate. I want to be come a hardcore Vim and Emacs user.
vfclists
- 1,702