Explorar o código

add date and time to vim statusbar

Weiyi Lou %!s(int64=13) %!d(string=hai) anos
pai
achega
b20e9f215b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      vim/vimrc

+ 2 - 0
vim/vimrc

@@ -84,6 +84,8 @@ endif
 
 set number "show line numbers
 set ruler "show row,col count in status line
+set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
+nnoremap <silent> <expr> $ ScreenMovement("$")
 set laststatus=2 "always show a status line
 
 if version >= 730