Mercurial > ec-dotfiles
view rc/shellinit-posix @ 746:6b7f6f09b8d1 default tip
[vimrc] fix php syntax highlight
Example file: https://github.com/ppy/osu-web/blob/e23658f45ac2e85d78bd339947e0d1cee57629c6/app/Libraries/BBCodeFromDB.php
(around the end)
| author | nanaya <me@nanaya.net> |
|---|---|
| date | Wed, 29 Oct 2025 12:28:45 +0900 |
| parents | 002d6aa2d76e |
| children |
line wrap: on
line source
#!/bin/sh _os="$(uname)" export LANG="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" # The en_US.UTF-8 causes weird sorting. # (not really, but I prefer C based sort.) export LC_COLLATE=C export LC_MESSAGES=C if command -v vim > /dev/null 2>&1; then alias vi=vim export EDITOR=vim fi if command -v less > /dev/null 2>&1; then export PAGER=less export LESS=-FMRXginsz-2 fi # Must be set after setting $EDITOR. set -o emacs unset _os
