Random VIMs
Random VIMs
set nocp rnu si undofile showcmd notimeout ttimeout
set ts=4 sw=4 sts=4 tm=0
set mouse=a
let mapleader=' '
inoremap <C-L> {<CR>}<ESC>O
nnoremap <Leader>w :w<CR>
nnoremap <Leader>c :w<CR>:!g++ % -o %:r -O2 -std=c++14 -Wall -Wextra<CR>
nnoremap <Leader>r :!./%:r<CR>
nmap <Leader>e :w<CR>:!g++ % -o %:r -O2 -std=c++14 -Wall -Wextra && ./%:r<CR>
nnoremap j gj
nnoremap k gk
autocmd FileType cpp syntax match cppNamespace /\<\w\+\ze::/
autocmd FileType cpp highlight link cppNamespace Keyword
本文来自博客园,作者:CuteNess,转载请注明原文链接:https://www.cnblogs.com/CuteNess/p/19154054

浙公网安备 33010602011771号