![]() Let $VIMSRC = expand('~/.build/vim/vim-hg/src', ':p')Ĭnoreabbrev csa ((getcmdtype() = ':' & getcmdpos() csf ((getcmdtype() = ':' & getcmdpos() csfs ((getcmdtype() = ':' & getcmdpos() csfg ((getcmdtype() = ':' & getcmdpos() csfd ((getcmdtype() = ':' & getcmdpos() csfc ((getcmdtype() = ':' & getcmdpos() csft ((getcmdtype() = ':' & getcmdpos() csfe ((getcmdtype() = ':' & getcmdpos() csff ((getcmdtype() = ':' & getcmdpos() csfi ((getcmdtype() = ':' & getcmdpos() csh ((getcmdtype() = ':' & getcmdpos() css ((getcmdtype() = ':' & getcmdpos() <= 6)?Ĭommand -nargs=0 -bar Cscope cs add $VIMSRC/cscope. Write the grep command to to search the /etc/services file for the word telnet and make sure you ignore case and then pipe the output to the more command. As an aside, all PowerShell Cmdlets are case-insensitive, unlike Linux tools which are generally always case-sensitive but also older tools like findstr which are case sensitive too, but findstr can be used in PowerShell, and works in situations where sls does not, for. " define $VIMSRC as the src directory in our Vim source clone That is probably not necessary but it looks "cleaner" to me than doing ![]() The :cnoreabbrev commands are just typing shortcuts, but the :CscopeĬommand defined at the end makes sure that I run cscope to use itsĭatabase in the same src directory where I ran it (manually, and afterĪ cd command) to create its database. ![]() Of them, maybe with a directory argument instead of hardcoding It wasn't working for me because I didn't realize the "pre-path" parameter ("/usr/local/vim" in the example) is obligatoryįWIW, I have the following lines in my vimrc I use cscope almostĮxclusively to look at the Vim source, where case matters, so my useĬase is not identical to yours, but maybe you could use some variation Fork 535 Star 8. The ls command does not work for memory mem was made up for this. The glob expressions (as in 'ls ') are interpreted by the shell itself. This command uses the -i flag, which means it will ignore the case of the text. Here is (old, small) post about the differences. ![]() Glob expressions are not full regular expressions, which is what grep uses to specify strings to look for. If anyone is still paying attention, it does work just as stated in the help. The expression you tried, like those that work on the shell command line in Linux for instance, is called a 'glob'. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |