About: Add your note files to Vim help   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

One solution is to vim-helpify your note files, and add a link to them from the ~/.vim/doc/ directory. Here is an extract from a notes file showing the process: " vim: filetype=help foldmethod=marker foldmarker=<<<,>>> modifiable noreadonly You need the noreadonly and modifiable keywords in the vim modeline above. Help files are by default regarded as readonly and nomodifiable files by vim. Notes about sed *sed* *sfsed* <<< Swapping word's in stream (I know, you don't need the cat) cat Myfile.h|sed 's/foo/fyy/g' Notes about vim *vim* *sfvim* <<< Stuff I have learned about vim. Create a help link like this |add-local-help| Regenerate help tags: |helptags| A realy big section closed with a tag <<< --- lots of stuf --- Closing tag >>> Telephonelist *sfphone* <<< mom: 555-676767-333 dad: 55

AttributesValues
rdfs:label
  • Add your note files to Vim help
rdfs:comment
  • One solution is to vim-helpify your note files, and add a link to them from the ~/.vim/doc/ directory. Here is an extract from a notes file showing the process: " vim: filetype=help foldmethod=marker foldmarker=<<<,>>> modifiable noreadonly You need the noreadonly and modifiable keywords in the vim modeline above. Help files are by default regarded as readonly and nomodifiable files by vim. Notes about sed *sed* *sfsed* <<< Swapping word's in stream (I know, you don't need the cat) cat Myfile.h|sed 's/foo/fyy/g' Notes about vim *vim* *sfvim* <<< Stuff I have learned about vim. Create a help link like this |add-local-help| Regenerate help tags: |helptags| A realy big section closed with a tag <<< --- lots of stuf --- Closing tag >>> Telephonelist *sfphone* <<< mom: 555-676767-333 dad: 55
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 822(xsd:integer)
Author
  • Staale Flock
Complexity
  • intermediate
Created
  • 2004-11-17(xsd:date)
ID
  • 823(xsd:integer)
NEXT
  • 824(xsd:integer)
Rating
  • 59(xsd:integer)
abstract
  • One solution is to vim-helpify your note files, and add a link to them from the ~/.vim/doc/ directory. Here is an extract from a notes file showing the process: " vim: filetype=help foldmethod=marker foldmarker=<<<,>>> modifiable noreadonly You need the noreadonly and modifiable keywords in the vim modeline above. Help files are by default regarded as readonly and nomodifiable files by vim. Notes about sed *sed* *sfsed* <<< Swapping word's in stream (I know, you don't need the cat) cat Myfile.h|sed 's/foo/fyy/g' Notes about vim *vim* *sfvim* <<< Stuff I have learned about vim. Create a help link like this |add-local-help| Regenerate help tags: |helptags| A realy big section closed with a tag <<< --- lots of stuf --- Closing tag >>> Telephonelist *sfphone* <<< mom: 555-676767-333 dad: 555-767676-222 sis: 555-121212-999 As you can see from my sample I tend to prepend my keywords with sf so I can get a handy list with later. I have tried to index files placed in an arbitrary place. Sadly enough the helptags command does not seem to like this, so my solution has been to make a soft link from the ~/.vim/doc/ directory to my file. You can do this from vim: :!ln -s ~/.vim/doc/mynotes.txt ~/Documents/mynotesfile.myext To have vim create the tags :helptags ~/.vim/doc Now when I need that important phone numer it's only one :h command away :h sfp You could also create your own helptags function adding tags containing a more specifig file position. A realy simple function would be. function! AddMyHelpTags() exe 'echo -e "sfsed ~/Documents/mynotesfile.mytext /\*sfsed\*" >> ~/.vim/doc/tags' exe 'echo -e "sfphone ~/Documents/mynotesfile.mytext /\*sfphone\*" >> ~/.vim/doc/tags' exe 'sort ~/.vim/doc/tags > /tmp/foo.vim.tags' exe 'mv -f /tmp/foo.vim.tags ~/.vim/doc/tags' endfunction I do not use such a AddMyHelpTags function myself. But I have tested the principle (The sample function it self is not tested, only the commands). This is just a sample to get you going. Remember that you probably would have to run this AddMyHelpTags function each time :helptags has been called, so as-is it is not very convenient.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software