Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
Речь пойдет о настройке Vim для использования в качестве IDE.
let g:indexer_lookForProjectDir = 0[myProject]
~/workspace/myproject**/*[global]
projects_dir=~/workspace/[myProject]
~/workspace/myproject**/*
[myProject2]
~/workspace/my_second_project**/*
[global]
projects_dir=~/workspace/[PROJECTS_PARENT filter="*.c *.h *.cpp"]
~/workspacetorkvemada@inquisitia-nout ~/workspace/qt/qt4-x11-4.7.0~beta1+git20100522/src $ vim network/kernel/qnetworkproxy.cpp
Невозможно запустить оболочку /bin/bash
Обнаружена ошибка при обработке function <SNR>23_IndexerInit..<SNR>23_ParseProjectSettingsFile..<SNR>23_ApplyProjectSettings..<SNR>23_UpdateTags:
строка 53:
E484: Невозможно открыть файл /tmp/vR03spm/0
Press ENTER or type command to continuelet g:indexer_indexerListFilename = $HOME."/.vim/indexer_files"
let g:indexer_enableWhenProjectDirFound = 1
let g:indexer_tagsDirname = $HOME."/.vim/tags"
let g:indexer_ctagsCommandLineOptions="-R --c++-kinds=+p --c-kinds=+p --fields=+iaS --extra=+q --languages=c++,c"au FileType c,cpp nmap <F10> <esc>:!ctags -R --c++-kinds=+p --c-kinds=+p --fields=+iaS --extra=+q --languages=c++,c .<cr> ) всё нормально. $ du -bsh ~/.vim/tags/tags
37K /home/torkvemada/.vim/tags/tags явно не отвечает действительности :)let g:indexer_ctagsDontSpecifyFilesIfPossible = 1
kuzma@kuzma-desktop:~/workspace/beehonest/trunk/application$ vim Bootstrap.php
Cannot execute shell /bin/bash
Error detected while processing function <SNR>8_IndexerInit..<SNR>8_ParseProjectSettingsFile..<SNR>8_ApplyProjectSettings..<SNR>8_UpdateTags:
line 55:
E484: Can't open file /tmp/vzrkw1I/0
Press ENTER or type command to continue
Press any key to continue...
kuzma@kuzma-desktop:~$ cat ~/.vimrc
let g:indexer_tagsDirname = $HOME."/.vim/tags"
let g:indexer_ctagsCommandLineOptions="-h '.php' --exclude='\.svn' --totals=yes --tag-relative=yes --PHP-kinds=+cf --regex-PHP='/abstract class ([^ ]*)/\1/c/' --regex-PHP='/interface ([^ ]*)/\1/c/' --regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'"
let g:indexer_ctagsDontSpecifyFilesIfPossible = 1
Press any key to continue...
* Filelist: project file: /home/kuzma/.vimprojects
* Projects indexed: beehonest
* Files indexed: there's 2658 files. Type :IndexerFiles to list
* Files not found: there's 0 non-existing files.
<skip>
* Tags file: /home/kuzma/.vim/tags/beehonest
* Project root: not found (Project root is a directory which contains ".vimprj" directory)
[PROJECTS_PARENT]
~/workspace* Filelist: indexer file: /home/kuzma/.indexer_files
* Projects indexed: beehonest
* Paths: .,/home/kuzma/workspace/beehonest
* Tags file: /home/kuzma/.vim/tags/beehonest
* Project root: not found (Project root is a directory which contains ".vimprj" directory)
let g:indexer_ctagsDontSpecifyFilesIfPossible = 1
let g:indexer_ctagsDontSpecifyFilesIfPossible = 0
kuzma@kuzma-desktop:~/workspace/beehonest/trunk/docroot$ vim index.php
Cannot execute shell /bin/bash
Error detected while processing function <SNR>8_IndexerInit..<SNR>8_ParseProjectSettingsFile..<SNR>8_ApplyProjectSettings..<SNR>8_UpdateTags:
line 55:
E484: Can't open file /tmp/vZeN6mo/0
Press ENTER or type command to continue
Press any key to continue...
[SDL]
/usr/include/SDL**/*.h[MyGame include=SDL, box2d]
~/Dev/MyGame**/*.{c,h}algorithm-list.cpp, bgfg-segm.cpp, main.cpp, viewer.cpp.Ctrl+]. /home/victor/.vimprojects_tags/hist./home/victor/development/hist/.vimprj и поместить туда следующий код:set tags+=/path/to/my/first_lib/tagsset tags+=/path/to/my/second_lib/tags.vimprj вы можете прочитать в доке к плагину vimprj. .vimprj , а не .vimproj, так ведь? :set tags? --c++-kinds=+p --fields=+iaS --extra=+q — все это у вас тоже есть, насколько вижу.
Автоматическая индексация файлов проекта