Font -- YaHei Consolas Hybrid
YaHei Consolas
Asume that we put the font file in /usr/share/fonts/myfonts (with accessary > 444)
Then install this font:
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
Shell -- zsh
sudo apt-get install zsh
chsh -s /bin/zsh
#on my zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
Vim
To make sure our vim have
Themes: solarized
"========
"Encoding
set guifont=Consolas:h12:cANSI
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese,cp936
set termencoding=utf-8
"========
"Clean workspace
set nobackup
set noswapfile
set dir=C:/tmp
"========
"Basic setting
syntax on
syntax enable
"========
"Make vim looks better
set guifont=YaHei\ Consolas\ Hybrid:h14:b:cDEFAULT
set t_Co=256
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
"==========
"Better
filetype on
filetype plugin indent on "enable the plugin
let mapleader=";"
nmap lb 0
nmap le $
vnoremap <Leader>y "*y
nmap <Leader>p "*p
set wildmenu
set nocompatible
set backspace=indent,eol,star
"=================================
set nu
set tabstop=4
set shiftwidth=4
set nowrap
set expandtab
set autoindent
set smartindent "indent when insert a new line
"===============
"cursorline
set cursorline "high light the current line
set cursorcolumn
set ruler "status ruler
"================================
set ignorecase smartcase "ignore case or there is more than one Big
set nowrapscan "search no loop
set incsearch "display when input
set hlsearch "high light the search result
"===============================
set cmdheight=1
set laststatus=2
let g:Powerline_colorscheme='solarized256'
"set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %l/%L:%c%)\
"================================
set foldenable "fold
set foldmethod=syntax
setlocal foldlevel=1
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
"===============================
Vim plugin
"Author-info
"Ctags
"NerdTree
"TList
map <F4> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
"第一个命令里的分号是必不可少的。这个命令让vim首先在当前目录里寻找tags文件,如果没有tags文件,或者没有找到对应的目标,就到父目录 中查找,一直向上递归。因为tags文件中记录的>路径总是相对于tags文件所在的路径,所以要使用第二个设置项来改变vim的当前目录。
set tags=tags;
set autochdir
"========
let g:vimrc_author='DarryO'
let g:vimrc_email='[email protected]'
let g:vimrc_homepage='darryo.github.com'
nmap <F1> :AuthorInfoDetect<cr>
"========
autocmd VimEnter * nmap <F2> :NERDTreeToggle<CR>
autocmd VimEnter * imap <F2> <Esc>:NERDTreeToggle<CR>
let NERDTreeQuitOnOpen=1
let NERDTreeWinSize=20
autocmd VimEnter * nmap <F3> :TlistToggle<CR>
autocmd VimEnter * imap <F3> <Esc>:TlistToggle<CR>
let Tlist_Show_One_File = 1 "不同时显示多个文件的tag,只显示当前文件的
let Tlist_Exit_OnlyWindow = 1 "如果taglist窗口是最后一个窗口,则退出vim
let Tlist_Use_Right_Window = 1 "在右侧窗口中显示taglist窗口
Work on Windows
We need Babun . Babun makes me work like in linux.
Some tool.
Here are some tool for Windows, Linux, Android.
Nutstore. In China, Nutstore is a nice substitute for dropbox. It supports Windows, Linux, iOS, Android...
Wiz. It supports Linux, so I choose Wiz instead of Evernote.