terminal及vim高亮

在~/.bash_profile中修改:

  1 ## terminal hignlight:
  2 export CLICOLOR=1
  3 export LSCOLORS=gxfxaxdxcxegedabagacad
  4 #export LSCOLORS=exfxcxdxcxegedabagacad
  5 #https://www.cnblogs.com/Oven5217/p/11113689.html
  6 ## alias:
  7 alias ll='ls -l'

在~/.vimrc中修改:

  1 set number
  2 set cursorline
  3 set incsearch
  4 set hlsearch
  5 syntax enable
  6 syntax on
  7 filetype on
  8 set backspace=2
  9 set shiftwidth=4
 10 set softtabstop=4
 11 set tabstop=4
 12 set expandtab
 13 set autoindent
 14 set cindent
 15 set smartindent
 16 set nofoldenable
 17 colorscheme monokai "slate"
 18
 19 call plug#begin('~/.vim/plugged')
 20 Plug 'Yggdroot/indentLine'
 21 Plug 'mhinz/vim-startify'
 22 Plug 'vim-airline/vim-airline'
 23 Plug 'vim-airline/vim-airline-themes'
 24 Plug 'tomasr/molokai'
 25 Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
 26
 27
 28 Plug 'ycm-core/YouCompleteMe', { 'do': './install.py --clang-completer'}
 29 Plug 'SirVer/ultisnips'
 30 Plug 'honza/vim-snippets'
 31 call plug#end()
 32
 33 "縮進指示線"
 34 let g:indentLine_char='┆'
 35
 36 let g:ycm_path_to_python_interpreter='/root/anaconda3/bin/python'
 37 let g:ycm_global_ycm_extra_conf='/root/.vim/plugged/YouCompleteMe/third_party/ycmd/examples/.ycm_extra_conf.py'
#mac默認修改colorscheme的路徑
/usr/share/vim/vim80/colors/
#vim插件安裝路徑
~/.vim/plugged/
默認安裝真路徑
/usr/local/Cellar
默認安裝路徑軟鏈接
/usr/local/opt
# vim python-mode
Submodule 'submodules/astroid' (https://github.com/PyCQA/astroid) registered for path 'submodules/astroid'
Submodule 'submodules/autopep8' (https://github.com/hhatto/autopep8) registered for path 'submodules/autopep8'
Submodule 'submodules/mccabe' (https://github.com/PyCQA/mccabe) registered for path 'submodules/mccabe'
Submodule 'submodules/pycodestyle' (https://github.com/PyCQA/pycodestyle) registered for path 'submodules/pycodestyle'
Submodule 'submodules/pydocstyle' (https://github.com/PyCQA/pydocstyle) registered for path 'submodules/pydocstyle'
Submodule 'submodules/pyflakes' (https://github.com/PyCQA/pyflakes) registered for path 'submodules/pyflakes'
Submodule 'submodules/pylama' (https://github.com/klen/pylama) registered for path 'submodules/pylama'
Submodule 'submodules/pylint' (https://github.com/PyCQA/pylint) registered for path 'submodules/pylint'
Submodule 'submodules/rope' (https://github.com/python-rope/rope) registered for path 'submodules/rope'
Submodule 'submodules/snowball_py' (https://github.com/diraol/snowball_py) registered for path 'submodules/snowball_py'

Cloning into '/Users/xxx_user/.vim/plugged/python-mode/submodules/astroid'...
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章