1
vote
1answer
301 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
2k views

Why does VIM say there are trailing characters 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 ...
2
votes
4answers
3k 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
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() ...