Hot answers tagged

2

set complete=.,w,b,u,t,i the 'i' flag makes vim autocompletion search the including files. Also, you can use 'gf' command at the including file to verify vim can actually find the file. However, 'i' flag may slows down vim autocompletion significantly depending on the including file size and I avoid to use it.


2

Can simply use exec and . to build the command: let PathToPluginsFolder = ~/.vim/plugins command! PS silent! exec ':w | PlugSnapshot! ' . PathToPluginsFolder . '/plugins.lock'


2

For example, if your ninja output directory is '$SRC/out' :set makeprg=ninja\ -C\ $SRC/out Note: the space should escape by backslash


1

You can use the :find command to locate a file by name and open it for editing. :find will search for the file in the directories listed in 'path', which by default includes the current directory. You can add more directories to 'path' that you want to look up, and you can use wildcards, including ** to traverse multiple subdirectories. In particular, to ...


Only top voted, non community-wiki answers of a minimum length are eligible