Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
lua require ('setting') set number set relativenumber set showcmd set clipboard=unnamed set mouse=a set nobackup set noswapfile set noexpandtab set noundofile set autoindent set tabstop=4 set softtabstop=4 set shiftwidth=4 set smartindent set syntax call plug#begin() Plug 'morhetz/gruvbox' Plug 'neoclide/coc.nvim', {'branch': 'release'} call plug#end() exec"PlugInstall" exec"CocRestart" "font set guifont=Hack\ Nerd\ Font\ Mono:h9 "colorscheme colorscheme gruvbox "compile func! Run() exec "w" exec "!g++ -O2 -std=gnu++14 -Wall -Wextra -Wfatal-errors -o %<.exe %" endfunc "auto-pairs :inoremap " ""
i :inoremap ' ''
i inoremap { {}
inoremap {
{
}
O inoremap {{ { inoremap {} {} :inoremap ( ()
i :inoremap )
=ClosePair(')')
:inoremap [ []
i :inoremap ]
=ClosePair(']')
function! ClosePair(char) if getline('.')[col('.') - 1] == a:char return "\
" else return a:char endif endfunction "Keymaps map
:NvimTreeToggle
map
:bp
map
:w
map
:CocRestart
map
:bd
map
:call Run()
map
:!%<.exe
"template inoremap
#include
#include
#include
#include
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
i
return 0;
}
"Coc inoremap
pumvisible() ? coc#_select_confirm() \: "\
u\
\
=coc#on_enter()\
" set hidden set updatetime=100
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)