|
| 1 | +if &cp | set nocp | endif |
| 2 | +let s:cpo_save=&cpo |
| 3 | +set cpo&vim |
| 4 | +imap <C-R> <Plug>snipMateShow |
| 5 | +inoremap <silent> <Plug>snipMateShow =snipMate#ShowAvailableSnips() |
| 6 | +inoremap <silent> <Plug>snipMateBack =snipMate#BackwardsSnippet() |
| 7 | +inoremap <silent> <Plug>snipMateTrigger =snipMate#TriggerSnippet(1) |
| 8 | +inoremap <silent> <Plug>snipMateNextOrTrigger =snipMate#TriggerSnippet() |
| 9 | +inoremap <C-CR> </ |
| 10 | +inoremap <silent> <S-Tab> :tabnext |
| 11 | +cnoremap <expr> <C-H> has("gui_running") ? "\\:promptrepl\" : "\" |
| 12 | +inoremap <expr> <C-H> has("gui_running") ? "\\:promptrepl\" : "\" |
| 13 | +cnoremap <expr> <C-F> has("gui_running") ? "\\:promptfind\" : "\\/" |
| 14 | +inoremap <expr> <C-F> has("gui_running") ? "\\:promptfind\" : "\\/" |
| 15 | +cnoremap <C-F4> c |
| 16 | +inoremap <C-F4> c |
| 17 | +cnoremap <C-Tab> w |
| 18 | +inoremap <C-Tab> w |
| 19 | +cnoremap <C-A> gggHG |
| 20 | +inoremap <C-A> gggHG |
| 21 | +cnoremap <M-Space> :simalt ~ |
| 22 | +imap <M-Space> <Plug>snipMateNextOrTrigger |
| 23 | +inoremap <C-Y> |
| 24 | +inoremap <C-Z> u |
| 25 | +inoremap <C-S> :updategi |
| 26 | +cmap <S-Insert> + |
| 27 | +cmap <C-V> + |
| 28 | +inoremap <C-U> u |
| 29 | +imap <S-Insert> |
| 30 | +xnoremap ggVG |
| 31 | +snoremap gggHG |
| 32 | +onoremap gggHG |
| 33 | +nnoremap gggHG |
| 34 | +vnoremap "+y |
| 35 | +noremap <expr> has("gui_running") ? ":promptfind\" : "/" |
| 36 | +nnoremap <expr> has("gui_running") ? ":promptrepl\" : "\" |
| 37 | +noremap <silent> p :tabp |
| 38 | +noremap <silent> n :tabn |
| 39 | +noremap <silent> e :tabclose |
| 40 | +noremap <silent> m :tabnew |
| 41 | +noremap |
| 42 | +vnoremap :update |
| 43 | +nnoremap :update |
| 44 | +onoremap :update |
| 45 | +nmap "+gP |
| 46 | +omap "+gP |
| 47 | +vnoremap "+x |
| 48 | +noremap |
| 49 | +noremap u |
| 50 | +nnoremap za |
| 51 | +omap <silent> % <Plug>(MatchitOperationForward) |
| 52 | +xmap <silent> % <Plug>(MatchitVisualForward) |
| 53 | +nmap <silent> % <Plug>(MatchitNormalForward) |
| 54 | +nnoremap <silent> '[ :call signature#mark#Goto("prev", "line", "alpha") |
| 55 | +nnoremap <silent> '] :call signature#mark#Goto("next", "line", "alpha") |
| 56 | +nmap ,tc <Plug>Colorizer |
| 57 | +vnoremap <silent> , :WhichKeyVisual ',' |
| 58 | +nnoremap <silent> , :WhichKey ',' |
| 59 | +noremap <silent> ,he :HEntities 1 |
| 60 | +noremap <silent> ,hu :HEntities 0 |
| 61 | +nmap ,fp :let @*=substitute(expand("%:p"), "/", "\\", "g") |
| 62 | +nmap ,fn :let @*=substitute(expand("%"), "/", "\\", "g") |
| 63 | +nnoremap ,ce :!start explorer %:p:h:8 |
| 64 | +nnoremap ,cc :!start cmd /k cd %:p:h:8 |
| 65 | +nnoremap ,cd :cd %:p:h:pwd |
| 66 | +nnoremap ,v :browse tabe E:\Anthony_GitHub\learn-vim |
| 67 | +nnoremap ,p V`] |
| 68 | +nmap <silent> ,sv :so $MYVIMRC |
| 69 | +nmap <silent> ,tv :tabe $MYVIMRC |
| 70 | +nnoremap ,mt :match errorMsg /[^\t]\zs\t\+/ |
| 71 | +nmap <silent> , :call ToggleHLSearch() |
| 72 | +nmap <silent> ,/ :nohlsearch |
| 73 | +vmap <silent> // y/=escape(@", '\\/.*$^~[]') |
| 74 | +vnoremap < <gv |
| 75 | +vnoremap > >gv |
| 76 | +cnoremap :simalt ~ |
| 77 | +imap <Plug>snipMateNextOrTrigger |
| 78 | +nmap Q gq |
| 79 | +xmap Q gq |
| 80 | +omap Q gq |
| 81 | +nnoremap <silent> [= :call signature#marker#Goto("prev", "any", v:count) |
| 82 | +nnoremap <silent> [- :call signature#marker#Goto("prev", "same", v:count) |
| 83 | +nnoremap <silent> [` :call signature#mark#Goto("prev", "spot", "pos") |
| 84 | +nnoremap <silent> [' :call signature#mark#Goto("prev", "line", "pos") |
| 85 | +omap <silent> [% <Plug>(MatchitOperationMultiBackward) |
| 86 | +xmap <silent> [% <Plug>(MatchitVisualMultiBackward) |
| 87 | +nmap <silent> [% <Plug>(MatchitNormalMultiBackward) |
| 88 | +nnoremap <silent> ]= :call signature#marker#Goto("next", "any", v:count) |
| 89 | +nnoremap <silent> ]- :call signature#marker#Goto("next", "same", v:count) |
| 90 | +nnoremap <silent> ]` :call signature#mark#Goto("next", "spot", "pos") |
| 91 | +nnoremap <silent> ]' :call signature#mark#Goto("next", "line", "pos") |
| 92 | +omap <silent> ]% <Plug>(MatchitOperationMultiForward) |
| 93 | +xmap <silent> ]% <Plug>(MatchitVisualMultiForward) |
| 94 | +nmap <silent> ]% <Plug>(MatchitNormalMultiForward) |
| 95 | +nnoremap <silent> `[ :call signature#mark#Goto("prev", "spot", "alpha") |
| 96 | +nnoremap <silent> `] :call signature#mark#Goto("next", "spot", "alpha") |
| 97 | +xmap a% <Plug>(MatchitVisualTextObject) |
| 98 | +nnoremap <silent> dm :call signature#utils#Remove(v:count) |
| 99 | +omap <silent> g% <Plug>(MatchitOperationBackward) |
| 100 | +xmap <silent> g% <Plug>(MatchitVisualBackward) |
| 101 | +nmap <silent> g% <Plug>(MatchitNormalBackward) |
| 102 | +xnoremap gx <ScriptCmd>vim9.Open(getregion(getpos('v'), getpos('.'), { type: mode() })->join()) |
| 103 | +nnoremap gx <ScriptCmd>vim9.Open(GetWordUnderCursor()) |
| 104 | +noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j') |
| 105 | +noremap <silent> <expr> k (v:count == 0 ? 'gk' : 'k') |
| 106 | +nnoremap <silent> m? :call signature#marker#List(v:count, 0) |
| 107 | +nnoremap <silent> m/ :call signature#mark#List(0, 0) |
| 108 | +nnoremap <silent> m<BS> :call signature#marker#Purge() |
| 109 | +nnoremap <silent> m :call signature#mark#Purge("all") |
| 110 | +nnoremap <silent> m- :call signature#mark#Purge("line") |
| 111 | +nnoremap <silent> m. :call signature#mark#ToggleAtLine() |
| 112 | +nnoremap <silent> m, :call signature#mark#Toggle("next") |
| 113 | +nnoremap <silent> m :call signature#utils#Input() |
| 114 | +nnoremap x "_x |
| 115 | +vnoremap ~ y:call setreg('', TwiddleCase(@"), getregtype(''))gv""Pgvl |
| 116 | +snoremap <silent> <Plug>snipMateBack a=snipMate#BackwardsSnippet() |
| 117 | +snoremap <silent> <Plug>snipMateNextOrTrigger a=snipMate#TriggerSnippet() |
| 118 | +nnoremap <silent> <Plug>Colorizer :ColorToggle |
| 119 | +xmap <silent> <Plug>(MatchitVisualTextObject) <Plug>(MatchitVisualMultiBackward)o<Plug>(MatchitVisualMultiForward) |
| 120 | +onoremap <silent> <Plug>(MatchitOperationMultiForward) :call matchit#MultiMatch("W", "o") |
| 121 | +onoremap <silent> <Plug>(MatchitOperationMultiBackward) :call matchit#MultiMatch("bW", "o") |
| 122 | +xnoremap <silent> <Plug>(MatchitVisualMultiForward) :call matchit#MultiMatch("W", "n")m'gv`` |
| 123 | +xnoremap <silent> <Plug>(MatchitVisualMultiBackward) :call matchit#MultiMatch("bW", "n")m'gv`` |
| 124 | +nnoremap <silent> <Plug>(MatchitNormalMultiForward) :call matchit#MultiMatch("W", "n") |
| 125 | +nnoremap <silent> <Plug>(MatchitNormalMultiBackward) :call matchit#MultiMatch("bW", "n") |
| 126 | +onoremap <silent> <Plug>(MatchitOperationBackward) :call matchit#Match_wrapper('',0,'o') |
| 127 | +onoremap <silent> <Plug>(MatchitOperationForward) :call matchit#Match_wrapper('',1,'o') |
| 128 | +xnoremap <silent> <Plug>(MatchitVisualBackward) :call matchit#Match_wrapper('',0,'v')m'gv`` |
| 129 | +xnoremap <silent> <Plug>(MatchitVisualForward) :call matchit#Match_wrapper('',1,'v'):if col("''") != col("$") | exe ":normal! m'" | endifgv`` |
| 130 | +nnoremap <silent> <Plug>(MatchitNormalBackward) :call matchit#Match_wrapper('',0,'n') |
| 131 | +nnoremap <silent> <Plug>(MatchitNormalForward) :call matchit#Match_wrapper('',1,'n') |
| 132 | +map <F3> :Vex |
| 133 | +xmap <M-Space> <Plug>snipMateVisual |
| 134 | +smap <M-Space> <Plug>snipMateNextOrTrigger |
| 135 | +map <silent> <F9> :HEntities 1 |
| 136 | +tnoremap <S-Del> |
| 137 | +tmap <S-Insert> "+ |
| 138 | +nnoremap <silent> <F8> :let notabs=!notabs|:if notabs|:tabo|:else|:tab ball|:tabn|:endif |
| 139 | +nmap <silent> <F7> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" |
| 140 | +nmap <silent> <F6> :call ToggleCursor() |
| 141 | +noremap <silent> <F1> :execute "tab h " . expand("<cword>") |
| 142 | +noremap <silent> <S-Tab> :tabnext |
| 143 | +nnoremap <C-Del> :tabclose |
| 144 | +nnoremap <C-Insert> :tabnew |
| 145 | +nnoremap <C-F3> :if &go=~#'r'|set go-=r|else|set go+=r|endif |
| 146 | +nnoremap <C-F2> :if &go=~#'T'|set go-=T|else|set go+=T|endif |
| 147 | +nnoremap <C-F1> :if &go=~#'m'|set go-=m|else|set go+=m|endif |
| 148 | +nnoremap <F10> :call JoinSpaceless() |
| 149 | +map <S-F2> :set wrap |
| 150 | +map <F2> :set nowrap |
| 151 | +nnoremap <expr> <C-H> has("gui_running") ? ":promptrepl\" : "\" |
| 152 | +noremap <expr> <C-F> has("gui_running") ? ":promptfind\" : "/" |
| 153 | +onoremap <C-F4> c |
| 154 | +nnoremap <C-F4> c |
| 155 | +vnoremap <C-F4> c |
| 156 | +onoremap <C-Tab> w |
| 157 | +nnoremap <C-Tab> w |
| 158 | +vnoremap <C-Tab> w |
| 159 | +xnoremap <C-A> ggVG |
| 160 | +snoremap <C-A> gggHG |
| 161 | +onoremap <C-A> gggHG |
| 162 | +nnoremap <C-A> gggHG |
| 163 | +nnoremap <M-Space> :simalt ~ |
| 164 | +onoremap <M-Space> :simalt ~ |
| 165 | +noremap <C-Y> |
| 166 | +noremap <C-Z> u |
| 167 | +vnoremap <C-S> :update |
| 168 | +nnoremap <C-S> :update |
| 169 | +onoremap <C-S> :update |
| 170 | +noremap <C-Q> |
| 171 | +vmap <S-Insert> |
| 172 | +nmap <C-V> "+gP |
| 173 | +omap <C-V> "+gP |
| 174 | +vnoremap <C-C> "+y |
| 175 | +vnoremap <BS> d |
| 176 | +vnoremap <C-X> "+x |
| 177 | +vmap <C-Del> "*d |
| 178 | +vnoremap <S-Del> "+x |
| 179 | +vnoremap <C-Insert> "+y |
| 180 | +nmap <S-Insert> "+gP |
| 181 | +omap <S-Insert> "+gP |
| 182 | +cnoremap gggHG |
| 183 | +inoremap gggHG |
| 184 | +cnoremap <expr> has("gui_running") ? "\\:promptfind\" : "\\/" |
| 185 | +inoremap <expr> has("gui_running") ? "\\:promptfind\" : "\\/" |
| 186 | +cnoremap <expr> has("gui_running") ? "\\:promptrepl\" : "\" |
| 187 | +inoremap <expr> has("gui_running") ? "\\:promptrepl\" : "\" |
| 188 | +imap <Plug>snipMateShow |
| 189 | +inoremap :updategi |
| 190 | +inoremap u |
| 191 | +cmap + |
| 192 | +inoremap |
| 193 | +inoremap u |
| 194 | +xmap <Plug>snipMateVisual |
| 195 | +smap <Plug>snipMateNextOrTrigger |
| 196 | +nnoremap :simalt ~ |
| 197 | +onoremap :simalt ~ |
| 198 | +iabbr icode <code class="inset"></code>F<i |
| 199 | +iabbr pcode <p style="text-indent:2em"><code class="inset"></code></p>2F<i |
| 200 | +abbr #e **********************/ |
| 201 | +abbr #b /********************** |
| 202 | +let &cpo=s:cpo_save |
| 203 | +unlet s:cpo_save |
| 204 | +set autoindent |
| 205 | +set autoread |
| 206 | +set background=dark |
| 207 | +set backup |
| 208 | +set backupdir=C:\\Temp |
| 209 | +set backupskip=C:Temp |
| 210 | +set clipboard=unnamed |
| 211 | +set confirm |
| 212 | +set copyindent |
| 213 | +set dictionary=D:\\cygwin64\\usr\\share\\dict\\linux.words |
| 214 | +set display=truncate |
| 215 | +set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 |
| 216 | +set grepprg=grep\ -rnIH\ --exclude-dir=.git |
| 217 | +set guifont=Consolas:h11,Courier_New:h11:cANSI |
| 218 | +set guioptions=egL |
| 219 | +set helplang=en |
| 220 | +set history=1000 |
| 221 | +set hlsearch |
| 222 | +set ignorecase |
| 223 | +set incsearch |
| 224 | +set infercase |
| 225 | +set keymodel=startsel,stopsel |
| 226 | +set langmenu=en_US |
| 227 | +set langnoremap |
| 228 | +set nolangremap |
| 229 | +set laststatus=2 |
| 230 | +set listchars=tab:|.,trail:,nbsp:.,extends:¬ |
| 231 | +set modelines=4 |
| 232 | +set nrformats=bin,hex |
| 233 | +set pastetoggle=<F5> |
| 234 | +set report=0 |
| 235 | +set ruler |
| 236 | +set runtimepath=~/vimfiles,~\\vimfiles\\pack\\minpac\\start\\webapi-vim,~\\vimfiles\\pack\\minpac\\start\\vim-which-key,~\\vimfiles\\pack\\minpac\\start\\vim-snipmate,~\\vimfiles\\pack\\minpac\\start\\vim-signature,~\\vimfiles\\pack\\minpac\\start\\vim-addon-mw-utils,~\\vimfiles\\pack\\minpac\\start\\tlib_vim,~\\vimfiles\\pack\\minpac\\start\\HTML-Editor,~\\vimfiles\\pack\\minpac\\start\\fencview,~\\vimfiles\\pack\\minpac\\start\\colorizer,~\\vimfiles\\pack\\minpac\\opt\\minpac,C:\\Program\ Files\\Vim/vimfiles,C:\\Program\ Files\\Vim\\vim91,C:\\Program\ Files\\Vim\\vim91\\pack\\dist\\opt\\netrw,C:\\Program\ Files\\Vim\\vim91\\pack\\dist\\opt\\matchit,~\\vimfiles\\pack\\minpac\\start\\vim-snipmate\\after,~\\vimfiles\\pack\\minpac\\start\\vim-signature\\after,~/vimfiles/after,C:\\Program\ Files\\Vim/vimfiles/after |
| 237 | +set scrolloff=5 |
| 238 | +set selection=exclusive |
| 239 | +set selectmode=mouse,key |
| 240 | +set shellxquote=\" |
| 241 | +set shortmess=filnxtToO |
| 242 | +set showmatch |
| 243 | +set smartcase |
| 244 | +set smarttab |
| 245 | +set statusline=%2*%n%m%r%h%w%*\ %F\ %1*[FORMAT=%2*%{&ff}:%{&fenc!=''?&fenc:&enc}%1*]\ [TYPE=%2*%Y%1*]\ [COL=%2*%03v%1*]\ [ROW=%2*%03l%1*/%3*%L(%p%%)%1*] |
| 246 | +set noswapfile |
| 247 | +set termencoding=utf-8 |
| 248 | +set thesaurus=~\\vimfiles\\thesaurus\\english.txt |
| 249 | +set timeoutlen=500 |
| 250 | +set ttimeout |
| 251 | +set ttimeoutlen=100 |
| 252 | +set undodir=C:\\Temp |
| 253 | +set undofile |
| 254 | +set viminfo=<100,'100,/50,:100,h,r$TEMP:,s10 |
| 255 | +set visualbell |
| 256 | +set whichwrap=b,s,<,>,[,] |
| 257 | +set wildignore=*.dll,*.exe,*.gif,*.jpg,*.mm |
| 258 | +set wildmode=list:longest,full |
| 259 | +" vim: set ft=vim : |
|
0 commit comments