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.
2
votes
2
answers
214
views
How can I get path from vim-rooter's function and add it to another path VIM
I have this in my .vimrc
let $ROOTPATH=FindRootDirectory()
nnoremap <leader>ct :!clear<CR>:!$ROOTPATH/app/Console/cake test %:p<CR>
Is there a way I can write this in one line?
Using vim-rooter pl …
4
votes
2
answers
726
views
How to run custom console command and output results to QuickRun without pressing any key on...
Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:
set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/Feed …
1
vote
1
answer
469
views
How can I get path from vim-rooter's function and run it with QuickRun's makeprg?
How can I run vim-rooter's function FindRootDirectory() instead of /vagrant/my_project? I have tried multiple variations like:
set makeprg=FindRootDirectory().'/app/Console/cake test '.expand('%:p')
…
2
votes
1
answer
530
views
How to add some text to selected text and reselect it again in visual mode?
I'm using QuickRun to execute php files or part of php code by selecting it in Visual Mode.
I have this mapping in my .vimrc
nnoremap <leader>r :QuickRun<CR>
vnoremap <leader>r :QuickRun<CR>
inoremap …
1
vote
1
answer
170
views
How to add or remove a string in a line depending on the presence of this string?
I have this two lines in my .vimrc:
nnoremap <leader>d :s/$/ die();<CR>
nnoremap <leader>dd :s/ die();/<CR>
For debugging purposes I usually use die();
Maybe, someone knows, how I can toggle die() …
7
votes
1
answer
6k
views
How to escape single quote in Vim
I have this mapping in my .vimrc
nnoremap <silent><leader>vlc :exe "!open -a vlc '".getline('.')."'"<CR>
It does work great with some files, but I'm getting error message with files that have single …
1
vote
2
answers
245
views
How to add specific string if it is not exists in current file?
I want to add this string "declare(strict_types=1);" after <?php when I save or open a file.
<?php
declare(strict_types=1);
If the file already contains declare(strict_types=1); don't do anything.
…