Topics related to the configuration of the VI editor.
Questions tagged [vimrc]
15 questions
32
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,161
- 1
- 14
- 19
29
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 re-open the file
as root and keep my changes without first saving it to a temporary file…
rkthkr
- 8,503
- 26
- 38
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,413
- 13
- 43
- 44
19
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
- 193
- 1
- 5
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
- 218
- 1
- 6
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
- 938
- 1
- 7
- 16
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
- 371
- 1
- 6
- 16
2
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
- 121
- 4
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,424
- 27
- 88
- 143
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
- 225
- 3
- 12
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…
Chris Rainey
- 3
- 2
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
- 4
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
- 371
- 1
- 6
- 16
-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,562
- 5
- 20
- 36
-1
votes
2 answers
vim create one's own syntax configuration file
I'm trying to create my own syntax configuration file for vim.
I have then created a ~/.vim/filetype.vim file with the following content:
augroup filetypedetect
autocmd BufNewFile,BufRead *.todo setfiletype todo
augroup END
and the syntax…
philippe
- 2,131
- 4
- 30
- 53