Skip to main content

New answers tagged

1 vote
Accepted

vimscript function suggest in command-line mode?

I believe it is the wildmenu. Simply add the following lines to you vimrc file: set wildmenu set wildmode=full After typing :call if you hit Tab you see in the line before the command line the list ...
Vivian De Smedt's user avatar
1 vote

Enable cursor blink in all modes for terminal Vim

I found this page to configure the cursor in the console/terminal vim: https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes The page addresses both cursor shape and blinking. eg: For ...
dex's user avatar
  • 13
0 votes

How does VIM write .viminfo files

How does Vim handle writing .viminfo files? Vim is open source. If you really wonder you are strongly advised to dig the code yourself. Does it simply append to an existing file, or does it delete ...
Matt's user avatar
  • 21k
0 votes

How can I make highlighting commands in .vimrc take effect immediately with Vim 7.4?

So, I know this is late to the game, but I have the same issue and I have figured out that the root cause is that color names aren't loaded yet when the vim script file is run. For example, if I add: ...
Forseti's user avatar
3 votes
Accepted

Better to edit $VIMRUNTIME/filetype.vim or add a script in $HOME/vimfiles/ftdetect?

For sure not to edit $VIMRUNTIME/filetype.vim since it is part of the distribution. The alternatives you have are: ~/vimfiles/ftdetect/*.vim or ~/vimfiles/filetype.vim I would first use ~/vimfiles/...
Vivian De Smedt's user avatar
0 votes

Mouse navigation not working in Vim

If you are on macOS, go to the View menu inside the Terminal application, and select "Allow Mouse Reporting". You must also have set mouse=a in your $MYVIMRC file. This worked for me!
mljrg's user avatar
  • 111
3 votes

search('map <F\d>.','W') fails to find pattern in my .vimrc

Both / and search() search forward, starting from the current line. / honors :help 'wrapscan', which is probably enabled in your case, while search('pattern', 'W') explicitly tells Vim to not wrap ...
romainl's user avatar
  • 41.4k
0 votes

search('map <F\d>.','W') fails to find pattern in my .vimrc

To have comparable result I'll do: :echo search('map <F\d>.') Unless you have: set nowrapscan In which case to have comparable result you should indeed do: :echo search('map <F\d>.', 'W')...
Vivian De Smedt's user avatar

Top 50 recent answers are included