idbrii
  • Member for 6 years, 8 months
  • Last seen this week
  • Burnaby, Canada
How can I install 64-bit Vim on Windows?
8 votes

I was just looking this information up and I only found one x64 version not mentioned by Christian. Here's a summary of the interfaces each version supports today to give you an idea of how well they ...

View answer
autocompletion in command line/search
4 votes

Use Ctrlf from cmdline or open cmdline by prefixing your command with q (e.g., q/) to open the cmdline window, which is a buffer for entering Ex commands. From here, you should be able to use your ...

View answer
case-sensitive * with ignorecase on
2 votes

Here's a version of garyjohn/Vitor's solution that is a closer match to *'s behaviour in a few ways. Making it an expr map fixes two things: 'hlsearch' -- turns on highlight immediately instead of ...

View answer
Enable cursorline only in preview window?
Accepted answer
2 votes

:h BufWinEnter is the event: :autocmd! BufWinEnter * if &previewwindow | setlocal cursorline | endif I guess the discrepancy is because WinEnter is triggered before 'previewwindow' is set. ...

View answer
How to delete part of a line that does not match a pattern?
2 votes

You could build up a list of the matches, delete everything, and then paste the match list: let old_c = @c let @c="" exec a:firstline .','. a:lastline .'sub//\=setreg("C", submatch(0), "l")/g' exec ...

View answer
Quit a window by its win_getid() identifier?
1 votes

Recent vim includes win_execute() which works across tabpages. call win_execute(og, 'close') Beware of changes fired by autocmds from the vimhelp: The window will temporarily be made the current ...

View answer
Sort quickfix entries by most relevant files?
1 votes

I came up with this solution and added it to my vim-fixquick plugin: function! s:cmp(left, right) abort if a:left == a:right return 0 elseif a:left < a:right return -1 ...

View answer
How to setup vim to use clangd on a Visual C++ project (msbuild, cl.exe)
0 votes

clangd wants a compile_commands.json file. I found the Sourcetrail Extension for Visual Studio will generate compile_commands.json: As a Clang based tool Sourcetrail supports the JSON Compilation ...

View answer
uneven quickfix window output from Ack/Ag
0 votes

As garyjohn pointed out: It turns out that executing :cd is one of the events that causes Vim to resolve its buffer names. So you can use that in a simple command: command! Copen cd / | copen You ...

View answer
How to show quickfix without jumping to quickfix window?
0 votes

cwindow does your open/close behaviour but jumps to the quickfix if opening. wincmd p jumps to the previous window (and should maintain the cursor position). A simple method: cclose | copen | wincmd p ...

View answer
Run :terminal so it starts in terminal-normal mode?
Accepted answer
0 votes

Use feedkeys: function! project#run_after_compile(return_code) abort if a:return_code == 0 terminal ++norestore C:\bin\run_game.bat " Replace C-W if you have set 'termwinkey'. ...

View answer
Is it possible to use normal mode type editing in denite?
Accepted answer
0 votes

Use C-o to jump to normal mode. This mode works in two ways: you can navigate the candidates buffer and you can issue some normal mode commands to modify your query. You won't have a cursor when it's ...

View answer