Monday, December 27, 2010

What Makeup Does Costco Sell

VIM: Change encoding of files with VIM VIM

Once the file is open with VIM and assuming that the file is encoded with iso-8859-1 (latin1) must be entered in command mode the next line.
  • : set fence = utf-8
If the file is encoded in utf-8 and want to go to iso-8859-1 you must write the next line.
  • : set fence = iso-8859-1
This command will only allow you to change the encoding of the file is open, however it may be necessary to edit the encoding of multiple files to which you can run the following command linux console.
  • find-name '*. php'-exec vim {} '+ set fence = utf-8' '+ x' \\;
find-name '*. php' allows you to find one or more files into the directory and the directories contained within it that match the search parameter.
-exec allows to execute a command on files that are found. {}
vim '+ set fence = utf-8' to change the encoding of the files that match your search.

Tuesday, December 14, 2010

Watch Ikusa Otome Suvia Ova 1eng Sub

: Vim hints

In the previous publication we review some useful commands for working with VIM text editor. In the current publication will add new commands for working with VIM.
  • d $: To delete the content that exists from the current position of course to the end line.
  • d0: Delete the content that exists from the beginning of the line to the current position of the courses.
  • D: Deletes the entire line where the courses, like "dd".
  • yy: Copy the entire contents of the line where the cursor, like "Y".
  • and $: Copy the content that exists from the current position to end of line.
  • y0: Copy the content that exists from the beginning of the line to the current position of the courses.
  • P: Paste what you copied to the options to delete or copy from the current cursor position onwards.
  • O: Enter text to the beginning of the line before the line that the cursor.
also added some commands executed with ":" to VIM:
  • : v / string / d: Allows you to search all file lines do not contain the string (search phrase) and kill them.
  • : sort u: Sorts all lines written to a file and deletes duplicate lines.
  • : set number: Allows you to add the number of lines of the edited file with VIM.
  • : set nonumber: You can delete the number of lines of the edited file with VIM.