Tagged Questions
1
vote
1answer
97 views
Vim has unexpected key presses on startup, what could be causing this?
Whenever I open a file with vim, the vim session starts with 2c having been automatically/programmatically 'pressed'. This means that if I start off trying to move down the file by pressing j, then ...
0
votes
1answer
171 views
Why does VIM say there is trailing whitespace on this command?
I am trying to write a beautify CSS command in vim that sorts and alphabetizes all of the CSS properties as well as checks to see if there is not a space after the colon and inserts one.
Here is my ...
1
vote
4answers
494 views
Always use :set paste, Is it a good idea?
In a terminal vim, pasting clipboard data often messes up the code indent.
I just knew if I uses :set paste the indent is not broken.
Though, after pasting data, should I do :set nopaste again? What ...
1
vote
3answers
982 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()
...