安装zsh 并设置为默认的bash工具
sudo apt install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s /usr/bin/zsh
安装一些看起来舒适的字体
sudo apt install language-pack-zh-hans
sudo apt install xfonts-utils
sudo apt install fontconfig
sudo apt install ttf-dejavu-core
#拷贝字体到 /usr/share/fonts 或 ~/.local/share/fonts 目录下
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
vim编辑器的偏好设置:
添加注释插件
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
Add this to your vimrc:
execute pathogen#infect()
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-commentary.git
Add this to your vimrc:
autocmd FileType apache setlocal commentstring=#\ %s
autocmd FileType python,shell set commentstring=#\ %s
autocmd FileType mako set cms=##\ %s
添加插件管理工具
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vimrc文件的一些配置
execute pathogen#infect()
autocmd FileType apache setlocal commentstring=#\ %s
autocmd FileType python,shell set commentstring=#\ %s
autocmd FileType mako set cms=##\ %s
set nocompatible
set number
set guioptions-=T
set guioptions-=m
set guioptions-=r
set guioptions-=L
set guioptions-=b
set showtabline=0
syntax on
set background=dark
set fileformat=unix
set cindent
set smartindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set showmatch
set scrolloff=5
set laststatus=2
set fenc=utf-8
set mouse=a
set selection=exclusive
set selectmode=mouse,key
set matchtime=5
set ignorecase
set incsearch
set hlsearch
set noexpandtab
set whichwrap+=<,>,h,l
set autoread
set autoindent
set ai!
set showcmd
let g:colors_name="molokai"
let g:molokai_orginal =1
let g:rehash256=1
set cursorline
set cursorcolumn
hi CursorLine cterm=NONE ctermbg=0 guibg=NONE guifg=NONE
hi CursorColumn cterm=NONE ctermbg=0 guibg=NONE guifg=NONE
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'Lokaltog/vim-powerline'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'tomasr/molokai'
Plugin 'tell-k/vim-autopep8'
Plugin 'jiangmiao/auto-pairs'
Plugin 'airblade/vim-gitgutter'
Plugin 'gregsexton/gitv'
Plugin 'tpope/vim-surround'
Plugin 'Yggdroot/indentLine'
call vundle#end()
filetype plugin indent on
set guifont=PowerlineSymbols\ for\ Powerline
set nocompatible
set t_Co=256
let g:Powerline_symbols = 'fancy'
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<Esc>'
let g:autopep8_disable_show_diff=1
let g:indentLine_char ='|'
let g:indentLine_first_char ='.'
let g:indentLine_showFirstIndentLevel= 2
let g:indentLine_color_term =239
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list =1
let g:syntastic_auto_loc_list =1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
let g:syntastic_auto_jump = 1
map <F3> :SyntasticToggleMode<CR>