Skip to content

Instantly share code, notes, and snippets.

@kindy
Last active December 22, 2015 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kindy/6432667 to your computer and use it in GitHub Desktop.
Save kindy/6432667 to your computer and use it in GitHub Desktop.
" <buffer-number> <file-name> <modify> <file-type> <encoding> <line><col> <byte-of-file> <char-under-cursor> <pos-of-file>
" #17 ~/.vimrc [+][vim] [utf-8] 2336,1 @59791 0x6E Bot
set statusline=%<#%n\ %f\ %h%m%r%y%=%k[%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",bom\":\"\")}]\ %-16.(%l,%c%V%)\ @%o\ 0x%B\ %P
" use :grep to search
set grepprg=ack\ --nocolor\ --nogroup
set grepformat=%f:%l:%m
" use <C-j> and <C-k> to navigate in search result
nm <c-j> :cn<CR>
nm <c-k> :cp<CR>
" max current window
nm <C-w><C-m> :res<CR>:vertical res<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment