Created
September 19, 2014 07:34
-
-
Save zxkletters/3d6b4166d33447441525 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"键盘命令 | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" keyboard shortcuts | |
let mapleader = ',' | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
map <C-w> <C-w>w | |
:nmap <silent> <F9> <ESC>:Tlist<RETURN> | |
imap <C-v> <Esc>"*pa | |
imap <C-a> <Esc>^ | |
imap <C-e> <Esc>$ | |
vmap <C-c> "+y | |
map! <C-Z> <Esc>zzi | |
map! <C-O> <C-Y>, | |
map <C-A> ggVG$"+y | |
map <F12> gg=G | |
map <leader>l :Align | |
nmap <leader>a :Ag<space> | |
nmap <leader>b :CtrlPBuffer<CR> | |
nmap <leader>d :NERDTreeToggle<CR> | |
nmap <leader>f :NERDTreeFind<CR> | |
nmap <leader>t :CtrlP<CR> | |
nmap <leader>T :CtrlPClearCache<CR>:CtrlP<CR> | |
nmap <leader>] :TagbarToggle<CR> | |
nmap <leader><space> :call whitespace#strip_trailing()<CR> | |
nmap <leader>g :GitGutterToggle<CR> | |
nmap <leader>c <Plug>Kwbd | |
map <silent> <leader>V :source ~/.vimrc<CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR> | |
" 选中状态下 Ctrl+c 复制 | |
"map <C-v> "*pa | |
set mouse=v | |
"set clipboard=unnamed | |
"去空行 | |
nnoremap <F2> :g/^\s*$/d<CR> | |
"比较文件 | |
nnoremap <C-F2> :vert diffsplit | |
"列出当前目录文件 | |
map <F3> :NERDTree<CR> | |
"打开树状文件目录 | |
map <C-F3> \be | |
:autocmd BufRead,BufNewFile *.dot map <F5> :w<CR>:!dot -Tjpg -o %<.jpg % && eog %<.jpg <CR><CR> && exec "redr!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment