Vim's configuration file.

learn more… | top users | synonyms

6
votes
1answer
196 views

Time of day as conditional in Vim

I'm working on improving my .vimrc, and I want to have command inside of it that depends upon whether it is night or day. I'd like to have something like the following in the end: if isNightTime " ...
1
vote
2answers
445 views

Customize autoindent settings in VIMRC file

I have autoindent enabled in my .vimrc file but have run into an annoying bug/feature. For example, when I'm tabbed in 3 times, and I hit return, the new line is also tabbed in 3 times. Then when I ...
4
votes
1answer
972 views

vim - set relativenumber not working from vimrc, only works when set in buffer

For the life of me, I cannot figure out why set relativenumber does not load when set in my .vimrc file. Other settings, like set number and setting the color scheme work perfectly. If I want set ...
7
votes
6answers
3k views

How can I make .vimrc read from an external file?

I'd like to modify my .vimrc to read the value of a variable from an external file. How can I do this? Specifically, a friend and I share a git repo with our .vim files, but there are a few small ...
2
votes
2answers
2k views

How to set syntax specific settings in my VIMRC?

I work with several languages and markups in vim every day (ruby, python, javascript, CSS, HTML, etc), and would like to have different settings for each buffer when I fire up my editor. How can I ...
19
votes
7answers
4k views

How to make VIM settings computer-dependent in .vimrc?

I share my VIM configuration file between several computers. However, I want some settings to be specific for certain computers. For example, font sizes on the high-res laptop should be different to ...
7
votes
2answers
2k views

Why does Vim ignore files in ~/.vim/after/ftplugin?

I seem to have a problem with my local Vim configuration but I'm not sure what it is. I need to override some filetype-specific settings. As per multiple tutorials/howtos, I created ...
1
vote
2answers
564 views

vimrc - Acess Denied

I'm trying to add in colorscheme desert at the bottom of my _vimrc file within Windows 7 and when trying to save it, I keep getting "Access Denied". I set my HOME variable to the "C:\Program Files ...
1
vote
2answers
3k views

Command contains pipe characters - why is vim saying “not an editor command”?

I'm trying to map some commands to a shortcut in vim. Specifically, I'm trying to get a colorized git diff. If I type this command in Ex mode, it works as expected: :! git diff --staged % | colordiff ...
4
votes
3answers
4k views

Enabling vim file type plugin

In my .vimrc file I have this line.. filetype plugin indent on and then in ~/.vim/ftplugin/py.vimrc (I've also tried saving it as a .vim file) I've copied and pasted a vimrc file for python ...
3
votes
1answer
133 views

What site is there for sharing Linux custom configuration files?

I remember someone here at SU gave a link to a site where you could share your Linux custom configuration files (like bashrc, vimrc and others), but I don't remember what was that site. I already ...
4
votes
5answers
3k views

Tips for using vim as a log viewer

As a log viewer, which of vim's features are convenient? less -F is quite good. But I believe vim could be better if we knew its hidden features. * or # v//d g//d etc.. PS. I don't use ...
33
votes
2answers
9k views

How to start vim without executing /etc/vimrc?

On my Linux server at work, the admins did not install cscope, and I installed it from source in my home directory and added it to the $PATH. The trouble is, the /etc/vimrc has a reference to ...
12
votes
3answers
4k views

How to split existing buffer vertically in vim?

I have list of buffers in vim. I can split buffer horizontally using :sb[N] where N is the buffer number. How can I split the buffer vertically ?
192
votes
2answers
53k views

How do you reload your .vimrc file without restarting vim?

Can you edit your .vimrc file in vim, and reload it without restarting vim?
0
votes
2answers
3k views

Setting the viminfo path in gVim for portability (Windows)

I'm trying to make my gVim installation as portable as possible, and in doing so I want to put the _viminfo file in the $VIM directory rather than $HOME. I'm pretty new to hacking vimrc ...
1
vote
3answers
465 views

How can I assign vim to be the default application to open my _vimrc file? (Windows 7)

I would like to be able to double click on the file "_vimrc" and have it open up in vim. However, "_vimrc" doesn't have a file extension so I can't have it open in vim based on file type. EDIT: ...
2
votes
1answer
489 views

vimrc configuration

I'm sorry if my title seems vague. I wasn't sure how to make a succinct title. I have 2 questions: 1) For tab movement in vim, when I map ctrl+pgup to ctrl+p and ctrl+pgdown to ctrl+n, it works fine ...
1
vote
1answer
1k views

Vim full color and anti aliasing on Windows 7

I am just wondering how to get VIM to run under full color (32 bit) rather than 256 colors. I am also trying to get anti aliasing but haven't found anything. I am running gvim 7.2 on Windows 7. ...
85
votes
2answers
46k views

Where should the .vimrc file be located on Windows 7?

I recently installed vim on Windows 7 as a stand-alone binary. Where should I put my .vimrc file?
1
vote
1answer
131 views

Starting vim at top of the screen

I'm an avid MacVim user and every time I launch it the window starts about 2 rows too far down on the screen to where I have to drag it up to the top of my screen every time. Is there anything I can ...
2
votes
1answer
948 views

Linux Ubuntu Vim - navigate to symlink/link directory?

Hey guys can you help me with some issues on how to navigate through links to the directory or file it points to through the command line? If i try to 'cd' into them it says they are not directories ...
1
vote
4answers
3k views

Filetype detection not working

My vimrc is up here, I am using the same vimrc on two seperate computers, both macs (MacVim). One detects the filetype correctly when launching a file from the terminal. The other makes me manually ...
6
votes
4answers
2k views

VIM: Disable Swap

How does one disable swap files for VIM via .vimrc?
1
vote
3answers
1k views

VIM has stopped using my _vimrc and I can't figure out where it is getting set?

My _vimrc looks like this set nocompatible source $VIMRUNTIME/vimrc_example.vim colorscheme pablo set backup=~/vimfiles/backup set directory=~/vimfiles/tmp set diffexpr=MyDiff() function MyDiff() ...