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 |
Vim reads initialization commands from a file called vimrc on startup. This can be used to set settings, define functions, execute autocommands, and more.
1
vote
How to set the document to move up and down while sliding the mouse wheel, while the mouse p...
You might try adding:
if has('mouse')
set mouse=a
endif
...to your .vimrc. …
3
votes
Accepted
What is 3kA in this mapping?
Autocommands like au Filetype tex... which you typically put in your .vimrc, are a more advanced part of what makes Vim awesome :)
Now!... … For example my .vimrc file has:
nmap <leader>sp :set spell<CR>
nmap <leader>nsp :set nospell<CR>
Which allow me to use toggle spellcheck on by sp and off by nsp (the <leader> is a useful thing vim provides …
0
votes
2
answers
192
views
project-based config: how to load plugins/colors from custom subdir of $PWD when doing `vim ...
So: cd path/to/project && vi -u .config/vimrc some-script.py should... somehow ...load all the plugins/colorschemes contained in that .config directory, ignoring the standard ~/.vimrc and ~/.vim/* config … magic:
vim considers ~/.vimrc and ~/.vim/ to always be siblings so if you do vi -u path/to/config/vimrc since vim is smart it will automatically look for plugins inside path/to/config/vim
something …
0
votes
project-based config: how to load plugins/colors from custom subdir of $PWD when doing `vim ...
config/vim/pack/*/start/ (as well as .config/vim/pack/*/opt/) and this will work when invoked like vi -u .config/vimrc scriptname.py. … But when in a subdirectory of the project that packpath value won't work; if you're doing vi -u ../.config/vimrc data.json then the plugins will not load. …