Archive for the 'Vim' Category
Tuesday, June 27th, 2006
Vim has released some time ago its 7th version. The first surprise was the compilation: It took only 5 minutes to compile it from the source, I was expecting some hours though!
Vim 7 contains many additional features, the most important are
Spell checking (Finally!) for many languages with highlighting.
More user-friendly completion using a menu to […]
Posted in General, OpenSource Softwares, Vim | 2 Comments »
Saturday, March 18th, 2006
I have released a 0.1 version of a pseudo WordPress plugin which displays events that occured in the same day / month along the history.
Pseudo, becuase it’s doesn’t have plugins features; I can even say it’s independent from WordPress. It consists of 2 MySQL tables: the main (wp_todayevents) and the backup one (wp_todayevents_archive) and […]
Posted in General, PHP, WordPress, History, Vim | 7 Comments »
Thursday, January 19th, 2006
WordPress contains a nice WYSIWYG HTML editor, but it doesn’t fit with XHTML specifications.
I found out a cool method to generate valid XHTML code on WordPress; all what you need is Nvu and Vim.
First, use Nvu to edit your HTML text, and set you markup output to XHTML transitional:
Tools - Preferences - Advanced - […]
Posted in General, WordPress, Vim, W3C, XHTML, Nvu | 1 Comment »
Wednesday, December 7th, 2005
After dumping some MySQL tables, whose the structure is the follwing:
CREATE TABLE `mydata` (
`id` tinyint(10) NOT NULL auto_increment,
`content` varchar(20) NOT NULL default ‘’,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
INSERT INTO `mydata` VALUES (’1′, ‘First entry’);
etc.
After dumping the tables, you want to drop the original tables from the database in order to replace the content; however, […]
Posted in General, Vim, Databases, MySQL | No Comments »
Monday, October 31st, 2005
Here are some interesting Vim macros you can put on your ~/.vimrc :
To make get an insensitive and “smart” search:
set ignorecase
set smartcase
C file template will be generated when you press F7 button:
map <F7> i#include <stdio.h><CR>int main(int argc, char *argv[])<CR>{<CR><CR>return 0;<CR>}<ESC>
Perl heder, when you press F8:
map <F8> i#!/usr/bin/perl -w<CR><Left><Del>use strict;<CR>use warnings;<CR>use POSIX<ESC;>
Python header, press […]
Posted in General, Perl, C, UNIX, Vim | No Comments »
Friday, September 23rd, 2005
A friend of mine, Hussemus (Homo codigus C plus plus) asked me how to integrate gcc into Vim to compile and run applications, like in Borland’s C++.
I made a search at Vim Website (search query: gcc) and found this interesting tip. You have to add these lines in your ~/.vimrc file:
map <F5> :call CompileRunGcc()<CR>
map […]
Posted in Programming, C, UNIX, Vim | No Comments »