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
j" Vim with all enhancements source $VIMRUNTIME/vimrc_example.vim " Remap a few keys for Windows behavior source $VIMRUNTIME/mswin.vim " Use the internal diff if available. " Otherwise use the special 'diffexpr' for Windows. if &diffopt !~# 'internal' set diffexpr=MyDiff() endif function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg1 = substitute(arg1, '!', '\!', 'g') let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg2 = substitute(arg2, '!', '\!', 'g') let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif let arg3 = substitute(arg3, '!', '\!', 'g') if $VIMRUNTIME =~ ' ' if &sh =~ '\
' . arg3 if exists('l:shxq_sav') let &shellxquote=l:shxq_sav endif endfunction set number set relativenumber set guifont=Hack_Nerd_Font_Mono:h12 set autoindent set smartindent set cindent set tabstop=4 set shiftwidth=4 set clipboard=unnamed set encoding=utf-8 set noswapfile set nobackup set noundofile set cursorline 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 func! Run() exec "w" exec "!g++ -O2 -std=gnu++20 -Wall -Wextra -Wfatal-errors -o %<.exe %" endfunc func! St() exec ":!%<.exe" endfunc map
:bnext
map
:w
map
:Explore
map
:call Run()
map
:!%< < map
:CocRestart
map
:bd
map
:IndentLinesToggle
inoremap
#include
#include
#include
#include
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
using namespace std;
const int INF = 0x3f3f3f3f;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
return 0;
i}
i call plug#begin('~/vimfiles/plugged') Plug 'tomasiser/vim-code-dark' Plug 'vim-airline/vim-airline' Plug 'morhetz/gruvbox' Plug 'Yggdroot/indentLine' Plug 'preservim/tagbar' Plug 'vim-airline/vim-airline-themes' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'christoomey/vim-tmux-navigator' Plug 'tomasiser/vim-code-dark' Plug 'letorbi/vim-colors-modern-borland' Plug 'jacoborus/tender.vim' Plug 'sainnhe/gruvbox-material' Plug 'joshdick/onedark.vim' Plug 'altercation/vim-colors-solarized' Plug 'crusoexia/vim-monokai' call plug#end() set background=dark colorscheme onedark set laststatus=2 "永远显示状态栏 let g:airline_powerline_fonts = 1 " 支持 powerline 字体 let g:airline#extensions#tabline#enabled = 1 augroup VIMRC au! au BufWritePost .vimrc so % augroup END set hidden set updatetime=100 inoremap
pumvisible() ? coc#_select_confirm() \: "\
u\
\
=coc#on_enter()\
" "----缩进指示线 indentLine 配置 ---------- let g:indentLine_enabled = 1 let g:indentLine_char='┆' set guifont=Hack\ Nerd\ Font\ Mono\ Italic:h12
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)