YaHei Consolas
Asume that we put the font file in /usr/share/fonts/myfonts (with accessary > 444)
Then install this font:
sudo mkfontscalesudo mkfontdirsudo fc-cache -fv
sudo apt-get install zshchsh -s /bin/zsh#on my zshwget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
To make sure our vim have
Themes: solarized
"========"Encodingset guifont=Consolas:h12:cANSIset encoding=utf-8set fileencoding=utf-8set fileencodings=ucs-bom,utf-8,chinese,cp936set termencoding=utf-8"========"Clean workspaceset nobackupset noswapfileset dir=C:/tmp"========"Basic settingsyntax onsyntax enable"========"Make vim looks betterset guifont=YaHei\ Consolas\ Hybrid:h14:b:cDEFAULTset t_Co=256set background=darklet g:solarized_termcolors=256colorscheme solarized"=========="Betterfiletype onfiletype plugin indent on "enable the pluginlet mapleader=";"nmap lb 0nmap le $vnoremap <Leader>y "*ynmap <Leader>p "*pset wildmenuset nocompatibleset backspace=indent,eol,star"=================================set nuset tabstop=4set shiftwidth=4set nowrapset expandtabset autoindentset smartindent "indent when insert a new line"==============="cursorlineset cursorline "high light the current lineset cursorcolumnset ruler "status ruler"================================set ignorecase smartcase "ignore case or there is more than one Bigset nowrapscan "search no loopset incsearch "display when inputset hlsearch "high light the search result"===============================set cmdheight=1set laststatus=2let g:Powerline_colorscheme=‘solarized256‘"set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %l/%L:%c%)\"================================set foldenable "foldset foldmethod=syntaxsetlocal foldlevel=1nnoremap <space> @=((foldclosed(line(‘.‘)) < 0) ? ‘zc‘ : ‘zo‘)<CR>"===============================
"Author-info"Ctags"NerdTree"TListmap <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=‘lihaodemail@foxmail.com‘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=1let NERDTreeWinSize=20autocmd 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窗口是最后一个窗口,则退出vimlet Tlist_Use_Right_Window = 1 "在右侧窗口中显示taglist窗口
We need Babun . Babun makes me work like in linux.
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.
原文:http://www.cnblogs.com/darryo/p/4722441.html