List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
| autocmd filetype cpp nnoremap <F5> :w <bar> !g++ -Wall -Wno-unused-result -std=c++17 -O2 % -o %:r.out && ./%:r.out <CR> | |
| let mapleader = "\<Space>" | |
| :set number | |
| :set relativenumber | |
| :set autoindent | |
| :set tabstop=4 | |
| :set shiftwidth=4 | |
| :set smarttab | |
| :set softtabstop=4 | |
| :set mouse=a |
| #!/usr/bin/env python | |
| """ | |
| 2020 update: | |
| - More iterators, fewer lists | |
| - Python 3 compatible | |
| - Processes files in parallel | |
| (one thread per CPU, but that's not really how it works) | |
| """ |
| { | |
| "cmd": ["start", "cmd", "/c", "echo Compiling... && g++ '${file}' -o ${file_base_name} && cls && ${file_base_name} && echo. && pause"], | |
| "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
| "working_dir": "${file_path}", | |
| "selector": "source.c, source.cpp", | |
| "shell": true, | |
| "variants": | |
| [ | |
| { |