Tag Archives: vim

Vim set file encoding

:set bomb :set fileencoding=utf-8

Posted in Uncategorized | Tagged , | Leave a comment

Vim: set Caps Lock as Ctrl, set Pause as Caps Lock, let Esc be Esc

raymond@ubuntu:~$ cat .Xmodmap remove Lock = Caps_Lock remove Control = Control_L keysym Caps_Lock = Control_L keysym Pause = Caps_Lock add Lock = Caps_Lock add Control = Control_L

Posted in Linux | Tagged , , , | Leave a comment

ctags for php

$ cd /path/to/phpcode $ ctags -f /output/tags \ -h “.php” -R \ –exclude=”\.svn” \ –totals=yes \ –tag-relative=yes \ –PHP-kinds=+cf \ –regex-PHP=’/abstract class ([^ ]*)/\1/c/’ \ –regex-PHP=’/interface ([^ ]*)/\1/c/’ \ –regex-PHP=’/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/’ exuberant ctags with … Continue reading

Posted in Editor, PHP, vim | Tagged , | Leave a comment