Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A scripting language embedded into Vim. It can be used to customize Vim to suit your needs and to create plugins. Also called VimL.
1
vote
1
answer
131
views
Autoreload vimrc when writing to vimscript files
I wanted to have my vimrc automatically update when I write to a .vim file using this autocmd:
autocmd BufWritePost *.vim,$MYVIMRC source $MYVIMRC
But for some reason when I have this enabled and t …
1
vote
Accepted
Autoreload vimrc when writing to vimscript files
This code works:
augroup reload_vimrc
autocmd!
autocmd BufWritePost *.vim,vimrc,$MYVIMRC ++once source $MYVIMRC | e
augroup END
It
does the augroup group/autocmd! dance to set up a group …
1
vote
2
answers
460
views
Move cursor and screen together
I am implementing a smooth scrolling function for <C-u> and <C-d>, which just sleeps for a few milliseconds and then moves the screen up (<C-y>) or down (<C-e>) one line:
function SmoothScroll(up)
…
0
votes
Move cursor and screen together
I have now just checked manually whether the cursor is at the border of scrolloff, i.e. if it would be scrolled by <C-y> for example or not, and if not, then I move it manually at each iteration with …