Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add epoch2date

  • Loading branch information...
commit 04034d3b0e67f12aa3608bf7fee91a22b9c134e5 1 parent ce6a512
@utopiazh authored
Showing with 27 additions and 3 deletions.
  1. +11 −0 epoch2date
  2. +16 −3 vimrc/.vimrc
View
11 epoch2date
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+epoch=$1
+
+# get the first ten characters as epoch in seconds
+epoch2s=$(echo $epoch |cut -c1-10)
+
+date_cmd="date -d @$epoch2s"
+date=$($date_cmd)
+
+echo "$epoch --> $date"
View
19 vimrc/.vimrc
@@ -14,6 +14,8 @@ set sw=4 "shifwidth
set ts=4 "tabstop
set et "expandtab
+"set so=50
+
set wrap "set nowrap
"set tw=0
set tw=78 "textwidth
@@ -27,12 +29,12 @@ set hlsearch
set ruler
"set cursorline "show underscore line at cursor
-set number "show line number
+"set number "show line number
set autoread "autoreload when file is changed
set fileencoding=utf-8
-"colorschem delek
+colorschem desert
let java_highlight_all=1
let java_highlight_functions="style"
@@ -56,4 +58,15 @@ set showcmd
set showmode
" for EasyMotion
-let g:EasyMotion_leader_key = '<leader>'
+"let g:EasyMotion_leader_key = '<leader>'
+"
+let g:EclimDisabled = 1
+
+
+if has("autocmd")
+ autocmd Filetype java setlocal omnifunc=javacomplete#Complete
+ autocmd Filetype java setlocal completefunc=javacomplete#Complete
+endif
+
+inoremap <buffer> <C-X><C-U> <C-X><C-U><C-P>
+nmap ZZ :qa<CR>
Please sign in to comment.
Something went wrong with that request. Please try again.