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 |
gVim is the GUI version of Vim (opposed to Vim running in a terminal emulator). It behaves exactly the same, but has additional graphical features.
1
vote
How to open current directory in File Explorer by vim?
If you are using gvim, you can simply type :browse e in command mode
you will have a mini-file explorer opened with current directory …
0
votes
0
answers
42
views
How can I make this comment script work for certain filetypes?
I got this code from voyeg3r's gist
@d-ben-knoble helped me add a feature I wanted in this QA.
Now I want this code to support commenting out certain filetypes like conf, mail, tex and so on.
My edit …
0
votes
0
answers
61
views
should i use getcwd(-1) or getcwd(-1, -1) in neovim?
related to this vi.stackexchange post How do you go back to your to global current directory after inheriting an lcd
what should i use in my neovim? @mass @elliottcable
0
votes
2
answers
65
views
How can I change this comment plugin to work at the start of the line?
I got this from voyeg3r's gist
He and @dave-kennedy made it 3 years ago.
I am here because I couldn't contact them
Can someone help me add a feature such that
this vimscript code puts comment out sign …
0
votes
0
answers
19
views
how can i define g:errorMessageString as a List?
related to this thread Multiple error messages in vim message history
How can i define g:errorMessageString as a List?
Can anyone help me fix this?
i am using this code in my vimrc
but i don't know …
0
votes
1
answer
68
views
smart single or multiple character deletion of x
I want vim to ignore whitespace copy
Default cut x will work same but
When i cut one whitespace character or a visual block of whitespaces with x, vim register won't copy
like this thread, Vim Clev …
0
votes
0
answers
59
views
how to mkview *.cpp file if and only if a fold is made within the file?
My init.vim code
cd ~/Documents/cp
set backupdir=~/Documents/cp/vimtmp//
set directory=~/Documents/cp/vimtmp//
set undodir=~/Documents/cp/vimtmp//
set viewdir=~/Documents/cp/vimtmp//
augroup remember …
0
votes
1
answer
238
views
Why vim creates an extra last line when importing a template?
My init.vim code:
autocmd BufNewFile *.cpp 0r C:\Users\User\Desktop\cp\Template.cpp
When i create a .cpp file, Template.cpp code is imported in that cpp file.
upto this point, everything is fine.
bu …
2
votes
2
answers
216
views
Choose template option for newfiles in Vim?
I have different templates in this directory ~/Documents/Library/
like: Template.cpp, normal.cpp, advanced.cpp
Normally I use this:
autocmd BufNewFile *.cpp 0r ~/Documents/Library/Template.cpp
I wan …
0
votes
1
answer
60
views
How can vim tell me which buffer is changed on disk among multiple buffers?
I am using this code in my vimrc
if a file is changed outside vim, it shows File changed on disk. Buffer reloaded.
set autoread
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' …
3
votes
1
answer
405
views
How to tabdo all the visible buffers without changing view of the current tab?
My init.vim code:
cd ~/Documents/cp
nnoremap <leader>lcd :tabdo lcd %:p:h<cr>
suppose, i have 4 tabs opened in nvim
via using nvim -p A.cpp B.cpp C.cpp D.cpp
A.cpp
B.cpp
C.cpp
D.cpp
When I need to …