除了airline本體還要下airline主題
和打過powerline補丁的字體java
經常使用設置:git
set laststatus=2 " 老是顯示狀態欄 set noshowmode set t_Co=256 " 顯示顏色 "let g:airline_theme="badwolf" let g:airline_theme="gruvbox" "let g:airline_theme="one" if !exists('g:airline_symbols') let g:airline_symbols = {} endif let g:airline_powerline_fonts = 1 " 使用powerline打過補丁的字體 let g:airline#extensions#tabline#enabled = 1 " 開啓tabline "let g:airline#extensions#tabline#left_sep = ' ' " tabline中當前buffer兩端的分隔字符 "let g:airline#extensions#tabline#left_alt_sep = '|' " tabline中未激活buffer兩端的分隔字符 "let g:airline#extensions#tabline#buffer_nr_show = 1 " tabline中buffer顯示編號 let g:airline#extensions#tabline#formatter = 'unique_tail' " 顯示標籤的樣式爲只顯示文件名
經常使用設置:github
let g:NERDSpaceDelims = 1 " Add spaces after comment delimiters by default let g:NERDCompactSexyComs = 1 " Use compact syntax for prettified multi-line comments let g:NERDDefaultAlign = 'left' " Align line-wise comment delimiters flush left instead of following code indentation " let g:NERDAltDelims_java = 1 " Set a language to use its alternate delimiters by default " let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } " Add your own custom formats or override the defaults let g:NERDCommentEmptyLines = 1 " Allow commenting and inverting empty lines (useful when commenting a region) let g:NERDTrimTrailingWhitespace = 1 " Enable trimming of trailing whitespace when uncommenting let g:NERDToggleCheckAllLines = 1 " Enable NERDCommenterToggle to check all selected lines is commented or not
Basic Usage:vim
Basic Usage:ide
mx - Toggle mark 'x' and display it in the leftmost column
dmx - Remove mark 'x' where x is a-zA-Z
m- Delete all marks from the current buffer 字體m/ - Open location list and display marks from current buffer
m[0-9] - Toggle the corresponding marker !@#$%^&*()
m? - Open location list and display markers from current buffer
m- Remove all markers spa
Basic Usage:code
Run :CtrlP or :CtrlP [starting-directory] to invoke CtrlP in find file mode.
Run :CtrlPBuffer or :CtrlPMRU to invoke CtrlP in find buffer or find MRU file mode.
F5 :刷新緩存orm
Basic Usage:
vv - Grep for the word under the cursor, match all occurences,
like |gstar|
vV - Grep for the word under the cursor, match whole word, like
|star|
va - Like vv, but add to existing list
vA - Like vV, but add to existing list
vr - Perform a global search on the word under the cursor
and prompt for a pattern with which to replace it.