From: Xinqi Bao Date: Fri, 8 Jan 2021 06:38:59 +0000 (+0800) Subject: vimrc: fixed background color glitch, bashrc: alias ll X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/commitdiff_plain/ac28254900b930f3ceb311bca5dfb78c9e222899?ds=sidebyside vimrc: fixed background color glitch, bashrc: alias ll --- diff --git a/.bashrc b/.bashrc index d837918..e32561d 100644 --- a/.bashrc +++ b/.bashrc @@ -6,6 +6,7 @@ [[ $- != *i* ]] && return alias ls='ls --color=auto' +alias ll='ls --color=auto -lhrt' export PS1="[\[\e[36;1m\]\u@\h \[\e[32;1m\]\w\[\e[m\]]\[\e[33m\](\$(git branch 2>/dev/null | grep '^*' | colrm 1 2))\n\[\e[m\]~~~>\$ " diff --git a/.vimrc b/.vimrc index ae97daa..20f122f 100644 --- a/.vimrc +++ b/.vimrc @@ -2,7 +2,13 @@ syntax enable "colorscheme wombat256mod set background=dark +"In order to display chinese in GBK +let &termencoding=&encoding +set fileencodings=utf-8,gbk + set t_Co=256 "terminal color +set t_ut="" +"set term=xterm-256color set encoding=utf-8 "required for ycm set noerrorbells set tabstop=4 softtabstop=4 @@ -42,6 +48,8 @@ set path=.,lib;,include;,includes; set path+=/lib/modules/5.4.46-1-lts/build/include set path+=/lib/modules/5.4.46-1-lts/build/arch/x86/include set path+=/usr/include,/usr/include/c++/* +set path+=/usr/local/include +set path+=~/lib " Writes to the unnamed register also writes to the * and + registers. This @@ -89,6 +97,7 @@ let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclu let g:ctrlp_use_caching = 0 let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py' +let g:ycm_confirm_extra_conf = 0 let g:ycm_enable_diagnostic_signs = 0 let g:ycm_always_populate_location_list = 1 "let g:ycm_show_diagnostics_ui = 0 @@ -106,7 +115,7 @@ nnoremap l nnoremap " viwa"bi"lel nnoremap ' viwa'bi'lel nnoremap u :UndotreeShow -nnoremap v :NERDTreeToggle +nnoremap n :NERDTreeToggle nnoremap + :resize +5 nnoremap - :resize -5 nnoremap v+ :vertical resize +5