Vim

From Thom Group Wiki
Revision as of 15:46, 23 September 2016 by Ajwt3 (talk | contribs) (Created page with " I include the following in my ~/.exrc file <code> function Log() :sp ~/Log :$ :silent r!date +\%n\%F.\%X\%t\%c :silent r!pwd endfunction map...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I include the following in my ~/.exrc file

  function Log()
     :sp ~/Log
     :$
     :silent r!date +\%n\%F.\%X\%t\%c
     :silent r!pwd
  endfunction
  map ;; :call Log()<CR>

This will cause the ~/Log file to be opened when ;; is pressed and can help you keep a logbook of commands

--ajwt3 (talk) 16:46, 23 September 2016 (BST)