This script allows to search for an identifier in the current open file without using an identifier, that is displays the "tags" file for current opened file. Shell script: cat /usr/local/bin/vimlocal.sh echo | /usr/bin/ctags --extra=+fq --if0=yes --file-scope=yes --fields=+afmikKlnsz --c-types=+cdefgmnpstuvx --c++-types=+cdefgmnpstuvx -x -n --filter "$@" | tr -s '[ ]' '@' |sed -e "s,^\([_-~:A-Za-z]\+\)@\([_-~:A-Za-z]\+\)@\([0-9]\+\).*, \3 \1," | sed -e "s,[_-~A-Za-z]\+::,,"|sort -k1 -n |uniq Vim mapping: map :!/usr/local/bin/vimlocals.sh % : Note: 1. ctags options probably don't have to be so many.
Attributes | Values |
---|
rdfs:label
| - Tags generation for current file
|
rdfs:comment
| - This script allows to search for an identifier in the current open file without using an identifier, that is displays the "tags" file for current opened file. Shell script: cat /usr/local/bin/vimlocal.sh echo | /usr/bin/ctags --extra=+fq --if0=yes --file-scope=yes --fields=+afmikKlnsz --c-types=+cdefgmnpstuvx --c++-types=+cdefgmnpstuvx -x -n --filter "$@" | tr -s '[ ]' '@' |sed -e "s,^\([_-~:A-Za-z]\+\)@\([_-~:A-Za-z]\+\)@\([0-9]\+\).*, \3 \1," | sed -e "s,[_-~A-Za-z]\+::,,"|sort -k1 -n |uniq Vim mapping: map :!/usr/local/bin/vimlocals.sh % : Note: 1. ctags options probably don't have to be so many.
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| |
Author
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
abstract
| - This script allows to search for an identifier in the current open file without using an identifier, that is displays the "tags" file for current opened file. Shell script: cat /usr/local/bin/vimlocal.sh echo | /usr/bin/ctags --extra=+fq --if0=yes --file-scope=yes --fields=+afmikKlnsz --c-types=+cdefgmnpstuvx --c++-types=+cdefgmnpstuvx -x -n --filter "$@" | tr -s '[ ]' '@' |sed -e "s,^\([_-~:A-Za-z]\+\)@\([_-~:A-Za-z]\+\)@\([0-9]\+\).*, \3 \1," | sed -e "s,[_-~A-Za-z]\+::,,"|sort -k1 -n |uniq Vim mapping: map :!/usr/local/bin/vimlocals.sh % : Note: 1. ctags options probably don't have to be so many. 2. There are more complex alternatives like excellent taglist.vim which will open and IDE type environment but I prefer simple solutions based on unix command-lines.
|