mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-12-20 13:47:50 +08:00
l show better time; vim return to the last position
This commit is contained in:
parent
bf247d367b
commit
30f82eddf9
9
.vimrc2
9
.vimrc2
@ -31,3 +31,12 @@ au InsertEnter * hi User3 ctermfg=15 ctermbg=5
|
|||||||
au InsertLeave * hi User3 ctermfg=15 ctermbg=2
|
au InsertLeave * hi User3 ctermfg=15 ctermbg=2
|
||||||
set statusline=%3*\ %{mode()}\ %*[%n][%F](%{\"\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\"+\":\"\").\"\"},%{&ff},%Y)%2*%r%1*%m%*%<%=\'0x%B\'\ [Line:%l/%L,Col:%c][%p%%]
|
set statusline=%3*\ %{mode()}\ %*[%n][%F](%{\"\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\"+\":\"\").\"\"},%{&ff},%Y)%2*%r%1*%m%*%<%=\'0x%B\'\ [Line:%l/%L,Col:%c][%p%%]
|
||||||
|
|
||||||
|
" When editing a file, always jump to the last known cursor position.
|
||||||
|
" Don't do it when the position is invalid, when inside an event handler
|
||||||
|
" (happens when dropping a file on gvim) and for a commit message (it's
|
||||||
|
" likely a different one than last time).
|
||||||
|
" Taken from /usr/share/vim/vim81/defaults.vim
|
||||||
|
autocmd BufReadPost *
|
||||||
|
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
|
||||||
|
\ | exe "normal! g`\""
|
||||||
|
\ | endif
|
||||||
|
|||||||
1
.zshrc2
1
.zshrc2
@ -95,6 +95,7 @@ alias "se"='sudo -sE'
|
|||||||
alias "pbd"='ping baidu.com'
|
alias "pbd"='ping baidu.com'
|
||||||
alias "p114"='ping 114.114.114.114'
|
alias "p114"='ping 114.114.114.114'
|
||||||
alias "p666"='ping6 2001:da8::666'
|
alias "p666"='ping6 2001:da8::666'
|
||||||
|
alias l='ls -lah --time-style="+%y-%m-%d %H:%M"'
|
||||||
|
|
||||||
# key bindings
|
# key bindings
|
||||||
bindkey "^b" beginning-of-line
|
bindkey "^b" beginning-of-line
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user