tag:blogger.com,1999:blog-40341056235005184292024-03-08T12:17:35.077+00:00vimsomnialithhttp://www.blogger.com/profile/17832577452308090165noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4034105623500518429.post-68025574914733332342012-09-16T14:51:00.000+01:002012-09-16T14:51:25.768+01:00''TSelectFiles'' demoWelcome to this demonstration of the tselectfiles plugin. The main <br />
purpose of this short screencast is to show how to use the <br />
tlib#input#List() function and thus the tselectfiles plugin efficiently.<br />
<br />
I first open a file from the VIM source code repository. I will then <br />
call the '':TSelectFilesInSubdirs'' command to retrieve a list of all <br />
files in that repository. The way tselectfiles is configured on my <br />
computer, it will not scan the file tree but retrieve the list directly <br />
from mercury, which is a little bit faster.<br />
<br />
1. Open [[~/.vim/src/vim/README.txt]].<br />
<br />
2. Call the '':TSelectFilesInSubdirs'' command.<br />
<br />
3. Move through the list by pressing <up> and <down> keys or <br />
<pageup> and <pagedown>.<br />
<br />
4. Filter the list: show only those files matching "Make". Since the <br />
file list is rather long, the filter won't be applied as you type <br />
the pattern. 46 files remain in the list. You can now edit the <br />
pattern. Since the list in shorter now, the filter will be <br />
applied as you type the pattern.<br />
<br />
5. Show only those files matching "Make" AND "cyg". Press <space> + <br />
"cyg".<br />
<br />
6. Select a file: either by pressing "Enter" or by "Alt + Number in <br />
list".<br />
<br />
7. Show only files in the ''xxd'' subdirectory.<br />
<br />
8. Open all Makefiles in tabs.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/cETU4hAGonw?feature=player_embedded' frameborder='0'></iframe></div>
<br />lithhttp://www.blogger.com/profile/17832577452308090165noreply@blogger.com0tag:blogger.com,1999:blog-4034105623500518429.post-77761008620830105802010-11-27T19:22:00.000+00:002010-11-27T19:22:11.887+00:00vikitasks & viki demonstration: A personal wiki & task managementWelcome to this small demonstration of the vikitaks and thus the viki vim plugins. viki provides a personal wiki for vim. vikitask can be used to quickly review tasks that are scattered over several files.<br />
<br />
Any viki file that includes task definitions is automatically included in the list of files that are scanned for tasks. You can also pre-define a set of files that should be scanned anyway.<br />
<ol><li>Create a new notes file</li>
<li>Show the contents of two other notes files</li>
<li>Invoke vikitasks<br />
<ol><li>Show current tasks (Please note that the next task is initially selected. The tasks above that line have deadlines in the past): :VikiTasks</li>
<li>Show pending tasks that need attention: :VikiTasksAlarms</li>
<li>Show tasks that are due in this week: :VikiTasks week'</li>
<li>Show all tasks including undated ones: :VikiTasks *'</li>
<li>Show all tasks related to viki: :VikiTasks * :viki</li>
</ol> </li>
</ol><div style="text-align: center;"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/fF7oX9GQSao?hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fF7oX9GQSao?hl=de&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></div>lithhttp://www.blogger.com/profile/17832577452308090165noreply@blogger.com2tag:blogger.com,1999:blog-4034105623500518429.post-32557150932236636012010-11-18T21:10:00.000+00:002010-11-18T21:10:35.741+00:00Selecting items from a list with tlib's tlib#input#List() functiontlib#input#List() lets users select one are many items from a list. In <br />
this demonstration, we select two files from a list of about 500 <br />
filenames.<br />
<br />
We use the :Tragfile command, which is sets the initial filter to <br />
"parts" of the current file's basename. The current document is called <br />
"post_tlib.txt". Since no file matches "post_tlib", the initial list is <br />
empty. We remove that filter to see the whole list by typing <C-BS>.<br />
<br />
1. Find: Filter_cnf.vim (from tlib_vim)<br />
Type: Fi cnf.<CR><br />
Or: Fi<ALT-4><br />
2. Find: vikitasks.vim (from vikitasks_vim)<br />
Type: vikit<CR><br />
Or: task<ALT-2><br />
<br />
Besides the "cnf" filter used in this demonstration, tlib also supports <br />
fuzzy matching (as seen on TV).<br />
<br />
<div style="text-align: center;"><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/fr6mnoDTnu0?hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fr6mnoDTnu0?hl=de&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></div>lithhttp://www.blogger.com/profile/17832577452308090165noreply@blogger.com4tag:blogger.com,1999:blog-4034105623500518429.post-41261080990781925562010-11-13T14:29:00.001+00:002010-11-13T14:30:41.631+00:00The tcomment vim pluginIn this video of the tcomment vim plugin we demonstrate the gc operator and automatic recognition of filetypes.<br />
<br />
In a HTML paragraph, we type gcip (that is gc + ip for "inner paragraph" to comment this paragraph out (and then again to uncomment it). Since this paragraph contains HTML syntax, tcomment recognizes it as HTML and uses the appropriate markup.<br />
<br />
We then use <c-_>b to comment the visually selected paragraph as block.<br />
<br />
We try the same with PHP code.<br />
<br />
<br />
<div style="text-align: center;"><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/Fol6_3Kjy7E?hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Fol6_3Kjy7E?hl=de&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></div>lithhttp://www.blogger.com/profile/17832577452308090165noreply@blogger.com13tag:blogger.com,1999:blog-4034105623500518429.post-89998346915536120492010-11-08T18:09:00.006+00:002010-11-13T14:32:26.626+00:00The tskeleton and stakeholders vim pluginsHere is a simple demonstration of the <a href="https://github.com/tomtom/tskeleton_vim">tskeleton</a> and the <a href="https://github.com/tomtom/stakeholders_vim">stakeholders</a> plugins.<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><br />
This is a demonstration of the tskeleton and the stakeholders plugins. First, we type a template name and press <c-space> to expand the template. This is done by tskeleton. We then type the name of the environment. In this example we insert an environment. The environment name is automatically inserted in the corresponding \verb+\end+ command. This is done by stakeholders.<br />
<br />
First, we type only \verb+\b+ to show demonstrate how to select templates from a list of possible choices.<br />
<br />
Behold.<br />
<br />
<br />
<div style="text-align: center;"><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/iIzZnkdZ42g?hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/iIzZnkdZ42g?hl=de&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></div>lithhttp://www.blogger.com/profile/17832577452308090165noreply@blogger.com3