Last active
May 1, 2020 05:30
-
-
Save xdoju/dfd0af424cfafbcdb0859a209d466890 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
se enc=utf-8 | |
se nocp ai si nu et bs=2 | |
se ts=2 sts=2 sw=2 hls showmatch | |
se ruler rulerformat=%17.(%l:%c%) | |
se noswapfile autoread | |
syntax on | |
map k gk | |
map j gj | |
nmap <C-h> <C-w>h | |
nmap <C-j> <C-w>j | |
nmap <C-k> <C-w>k | |
nmap <C-l> <C-w>l | |
nmap <C-a> ggvG | |
function Copy() | |
silent '<,'>y+ | |
echo count(getreg('+'), "\n") 'lines copied!' | |
endfunction | |
function Cut() | |
silent '<,'>d+ | |
echo count(getreg('+'), "\n") 'lines cut!' | |
endfunction | |
xmap <C-c> <ESC>:call Copy()<CR> | |
xmap <C-x> <ESC>:call Cut()<CR> | |
map <F5> <ESC>:w<CR>:!g++ -Wall -Wl,--stack,8388608 --std=c++14 -O2 %:r.cpp -o %:r && %:r < %:r.in > %:r.out<CR> | |
map <F6> <ESC>:w<CR>:!g++ -Wall -Wl,--stack,8388608 --std=c++14 -O2 %:r.cpp -o %:r && %:r < %:r.in<CR> | |
command -nargs=1 PS :cd [DIRECTORY] | vi <args>.cpp | w | vs <args>.in | w | sp <args>.out | w | |
colorscheme evening | |
se gfn=D2Coding:h10: | |
se go= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment