mapping: syntax sync fromstart

This commit is contained in:
ManjaroOne666 2018-11-19 13:38:12 +00:00
parent 9ff72cae32
commit 886037f076
1 changed files with 11 additions and 9 deletions

20
vimrc
View File

@ -984,7 +984,7 @@ set foldtext=MyFoldText()
" #mappings {{{
let g:mapleader = ' '
" miscallaneous {{{
" miscallaneous {{{
nnoremap 0 ^
nnoremap : :setlocal norelativenumber<CR>:
nnoremap <silent> <space>rc :so $MYVIMRC<CR>
@ -1009,12 +1009,14 @@ nnoremap <space>td :grep! -R '// *TODO' .<CR>:botright cwindow<CR>:echo len(getq
nnoremap <space>dd :DD<CR>
" write and delete current buffer
nnoremap <space>bx :w\|bd<cr>
" sync highlighting from start
nnoremap <silent><space>ss :syntax sync fromstart<CR>
"}}}
" terminal{{{
" terminal{{{
tnoremap <Esc> <C-\><C-n>
"}}}
" git mappings {{{
" git mappings {{{
nnoremap <space>gs :Gstatus<CR>
nnoremap <space>gd :Gdiff<CR>
nnoremap <space>gD :!clear; echo 'git diff'; git diff<CR>
@ -1029,13 +1031,13 @@ nnoremap <space>gp :!clear; echo 'git push'; git push<CR>
nnoremap <space>gl :Glog<CR>
"}}}
" netrw {{{
" netrw {{{
nnoremap <space>ex :Ex<CR>
nnoremap <space>ee :e .<CR>
nnoremap <space>eq :Rex<CR>
"}}}
" better window/tab/buffer navigation/management {{{
" better window/tab/buffer navigation/management {{{
nnoremap <Esc>j :resize -5<CR>
nnoremap <Esc>k :resize +5<CR>
nnoremap <Esc>l :vertical resize +5<CR>
@ -1044,7 +1046,7 @@ nnoremap <PageUp> :bprevious<CR>
nnoremap <PageDown> :bnext<CR>
"}}}
"location list and quickfix mappings {{{
" location list and quickfix mappings {{{
nnoremap <space>lo :botright lwindow<CR>
nnoremap <up> :lprev<CR>zv
nnoremap <down> :lnext<CR>zv
@ -1062,14 +1064,14 @@ nnoremap <space>qp :colder<CR>
nnoremap <space>qn :cnewer<CR>
"}}}
" insert mode mappings {{{
" insert mode mappings {{{
inoremap jkrg <c-o>:reg<cr>
inoremap :w<cr> :w<cr>
inoremap [:w<cr> :w<cr>
inoremap {:w<cr> :w<cr>
"}}}
" brace/quotes completion {{{
" brace/quotes completion {{{
inoremap {{ {}<left>
inoremap {<CR> {<CR>}<C-o>O
inoremap {; {<CR>};<C-o>O
@ -1094,7 +1096,7 @@ inoremap '; '';<Left><Left>
"}}}
"}}}
" working_with_underscores{{{
" working_with_underscores{{{
nnoremap <space>w f_l
nnoremap <space>b hT_
nnoremap <space>e lt_