VIM编辑器相关

vim配置
以下是个人习惯用的一个python的vim配置。

1
2
3
4
5
6
7
set paste
set encoding=utf8
set ts=4
set expandtab
set number
set showmode
set t_Co=256

行内快速移动

  1. 以字符为准(适合行内移动)

利用f命令搜索某字符方式 ,
f表示向后移动到某字符:
比如fa表示向后移动到字符a处
Fa表示向前移动到字符a处:
2) 以word为“单位”(适合小范围移动)
同理,利用w,b,配合数字。
2w表示向后移动2个word;
2b表示向前移动2个word;
2e表示向后移动2个word,但是会移动到word字符之后。
如果想忽略标点符号的word,就用大写

bash_profile

for env

1
2
3
4
5
6
7
8
#enables colorin the terminal bash shell export
export CLICOLOR=1
#setsup thecolor scheme for list export
export LSCOLORS=ExFxCxDxBxegedabagacad
#sets up theprompt color (currently a green similar to linux terminal)
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$
#enables colorfor iTerm
#export TERM=xterm-color

for python

1
alias python=python3