• My Env


    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:

    1. sudo mkfontscale
    2. sudo mkfontdir
    3. sudo fc-cache -fv

    Shell -- zsh

    1. sudo apt-get install zsh
    2. chsh -s /bin/zsh
    3. #on my zsh
    4. wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

    Vim

    To make sure our vim have
    Themes: solarized

    1. "========
    2. "Encoding
    3. set guifont=Consolas:h12:cANSI
    4. set encoding=utf-8
    5. set fileencoding=utf-8
    6. set fileencodings=ucs-bom,utf-8,chinese,cp936
    7. set termencoding=utf-8
    8. "========
    9. "Clean workspace
    10. set nobackup
    11. set noswapfile
    12. set dir=C:/tmp
    13. "========
    14. "Basic setting
    15. syntax on
    16. syntax enable
    17. "========
    18. "Make vim looks better
    19. set guifont=YaHei Consolas Hybrid:h14:b:cDEFAULT
    20. set t_Co=256
    21. set background=dark
    22. let g:solarized_termcolors=256
    23. colorscheme solarized
    24. "==========
    25. "Better
    26. filetype on
    27. filetype plugin indent on "enable the plugin
    28. let mapleader=";"
    29. nmap lb 0
    30. nmap le $
    31. vnoremap <Leader>y "*y
    32. nmap <Leader>p "*p
    33. set wildmenu
    34. set nocompatible
    35. set backspace=indent,eol,star
    36. "=================================
    37. set nu
    38. set tabstop=4
    39. set shiftwidth=4
    40. set nowrap
    41. set expandtab
    42. set autoindent
    43. set smartindent "indent when insert a new line
    44. "===============
    45. "cursorline
    46. set cursorline "high light the current line
    47. set cursorcolumn
    48. set ruler "status ruler
    49. "================================
    50. set ignorecase smartcase "ignore case or there is more than one Big
    51. set nowrapscan "search no loop
    52. set incsearch "display when input
    53. set hlsearch "high light the search result
    54. "===============================
    55. set cmdheight=1
    56. set laststatus=2
    57. let g:Powerline_colorscheme='solarized256'
    58. "set statusline= %<%F[%1*%M%*%n%R%H]%= %y %0(%{&fileformat} %{&encoding} %l/%L:%c%)
    59. "================================
    60. set foldenable "fold
    61. set foldmethod=syntax
    62. setlocal foldlevel=1
    63. nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
    64. "===============================

    Vim plugin

    1. "Author-info
    2. "Ctags
    3. "NerdTree
    4. "TList
    5. map <F4> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
    6. "第一个命令里的分号是必不可少的。这个命令让vim首先在当前目录里寻找tags文件,如果没有tags文件,或者没有找到对应的目标,就到父目录 中查找,一直向上递归。因为tags文件中记录的>路径总是相对于tags文件所在的路径,所以要使用第二个设置项来改变vim的当前目录。
    7. set tags=tags;
    8. set autochdir
    9. "========
    10. let g:vimrc_author='DarryO'
    11. let g:vimrc_email='lihaodemail@foxmail.com'
    12. let g:vimrc_homepage='darryo.github.com'
    13. nmap <F1> :AuthorInfoDetect<cr>
    14. "========
    15. autocmd VimEnter * nmap <F2> :NERDTreeToggle<CR>
    16. autocmd VimEnter * imap <F2> <Esc>:NERDTreeToggle<CR>
    17. let NERDTreeQuitOnOpen=1
    18. let NERDTreeWinSize=20
    19. autocmd VimEnter * nmap <F3> :TlistToggle<CR>
    20. autocmd VimEnter * imap <F3> <Esc>:TlistToggle<CR>
    21. let Tlist_Show_One_File = 1 "不同时显示多个文件的tag,只显示当前文件的
    22. let Tlist_Exit_OnlyWindow = 1 "如果taglist窗口是最后一个窗口,则退出vim
    23. 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.





    附件列表

    • 相关阅读:
      往excel中插入分组柱状图
      往excel中插入柱状图b
      向excel中插入柱状图a
      对excel进行数据筛选及过滤
      对excel进行排序及多重排序
      函数填充,计算列
      ChinaCock界面控件介绍-TCCImageViewerForm
      Allocation-Free Collections
      Delphi 10.3实现Android App的动态权限申请
      DeployMan,发布文件的利器
    • 原文地址:https://www.cnblogs.com/darryo/p/4722441.html
    Copyright © 2020-2023  润新知