skip to main | skip to sidebar

A Developer's Notes

Wednesday, August 1, 2007

Some Useful VIM Commands

- Go to current directory:

:cd %:p:h

- Covert DOS line feeds to Unix line feeds, or vice versa:

:set fileformat=unix
:w

or

:set fileformat=dos
:w
No comments:
Labels: VIM
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2012 (1)
    • ►  November (1)
  • ►  2010 (2)
    • ►  October (1)
    • ►  July (1)
  • ►  2009 (6)
    • ►  November (2)
    • ►  October (1)
    • ►  May (1)
    • ►  February (2)
  • ►  2008 (4)
    • ►  August (1)
    • ►  July (3)
  • ▼  2007 (5)
    • ►  October (1)
    • ▼  August (1)
      • Some Useful VIM Commands
    • ►  July (3)

My Favorites

  • TechCrunch
  • Thinkpad Support Community
  • CCHere - Chinese Culture Here

About Me

My photo
View my complete profile