Skip to main content
Andrew Ferrier's user avatar
Andrew Ferrier's user avatar
Andrew Ferrier's user avatar
Andrew Ferrier
  • Member for 9 years, 10 months
  • Last seen this week
219 votes
7 answers
220k views

What's the simplest way to strip trailing whitespace from all lines in a file?

197 votes
9 answers
87k views

Does Ex mode have any practical use?

54 votes
7 answers
12k views

Can I delete an entire line, except the line break?

29 votes
5 answers
3k views

How can I reformat a multi-line string in Vim when using the Python filetype?

26 votes
4 answers
12k views

How can I clear a register/multiple registers completely?

26 votes
1 answer
30k views

Why am I getting a "E488: Trailing characters" error on this custom command?

25 votes
2 answers
4k views

How can I make gx recognise full URLs in vim?

16 votes
2 answers
3k views

What is a "section" in vim?

10 votes
3 answers
5k views

How can I start vim and then execute a particular command that includes a \, from the command line?

6 votes
1 answer
869 views

What is an effective way to learn vimscript? [closed]

6 votes
3 answers
2k views

How do I elegantly override file type detection patterns with more specific patterns

6 votes
4 answers
865 views

What's the difference between a text object and a motion?

5 votes
1 answer
1k views

How can I avoid warnings about unused variables?

5 votes
1 answer
621 views

Is it possible to turn on spell-checking for only parts of buffers?

4 votes
1 answer
802 views

How can I specify a command-line command with options as an equalprg?

3 votes
1 answer
291 views

How can I drag a file onto MacVim and make it open in a split, not a new tab?

2 votes
0 answers
98 views

How can I make 'lnext' run 'lfirst' if it needs to be?

2 votes
2 answers
1k views

How can I discourage myself from using ':q', ':wq', etc. to quit vim?

2 votes
1 answer
145 views

Is there a way to get a count of the number of spelling errors in a buffer?

1 vote
1 answer
56 views

Is there any way to prevent modelines getting reapplied when files are saved / written?

1 vote
2 answers
137 views

Is there a 'let' equivalent for setting an option only local to a buffer/window?

1 vote
2 answers
214 views

Can I navigate backwards by word (not WORD) in command-line mode?

1 vote
2 answers
174 views

Can I specify '-o' as the default for vi in my vimrc?

1 vote
3 answers
351 views

How can I create a command to remove non-consecutive duplicate lines?

1 vote
1 answer
142 views

Is there a way to have sidescrolloff behave differently depending if I am end of a line?

0 votes
0 answers
34 views

Is is possible to include other behaviour in a keymapping which would normally invoke a <Plug>?

0 votes
1 answer
235 views

Why are files in after/ftplugin/ run on every save, and can I work around it?

0 votes
1 answer
366 views

What's the easiest way to replace some text with the contents of the clipboard when using clipboard=unnamed?