Skip to content
Archive of posts filed under the Vim Tips category.

vi tips with examples for programmers — very useful

First off, sorry for not posting regularly. Will be so for probably another couple of days. In the meantime found a very nice artcle on vim: http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim/Useful_things_for_programmers_to_know Technorati Tags: programming, vim

vim – get the list of all the scripts available.

To get a list of all the scripts in the vim.sf.net project, you can run the following command. This will list all the scripts with the script id. wget -O – \’http://www.vim.org/scripts/script_search_results.php?&show_me=4000&result_ptr=0\’ -o /dev/null | grep width| grep script_id= |sed \’s/.*script_id=//\’|tr -d \”\”\”|tr \”>\” \” \”|sed \’s/< .*//\’ | tr -d \’\\001\’-\’\\011\’\’\\013\’\’\\014\’\’\\016\’-\’\\037\’\’\\200\’-\’\\377\’ |sort -n Related [...]

vim – get mappings from the help tex files available with the scripts.

Here is a simple script that will show all the vim mappings from the tex file (help file that comes with the vim scripts). This will prove to be very useful in usin gthe mappings #!/bin/bash – #=============================================================================== # #          FILE:  get_mappings_from_tex_for_vim.sh # #         USAGE:  ./get_mappings_from_tex_for_vim.sh # #   DESCRIPTION:  Get the mappings from tex file [...]