Update mappings to {i,n,v}noremap
This commit is contained in:
parent
c36396e3db
commit
e420a5b029
@ -114,3 +114,13 @@ function! <SID>CheckboxToggle()
|
||||
endfunction
|
||||
command! CheckboxToggle :call <SID>CheckboxToggle()
|
||||
nnoremap <leader><CR> :CheckboxToggle<CR>
|
||||
|
||||
" Show highlight groups under the cursor
|
||||
function! s:CursorHighlightGroups()
|
||||
let l:hi = synIDattr(synID(line('.'),col('.'),1),'name')
|
||||
let l:trans = synIDattr(synID(line('.'),col('.'),0),'name')
|
||||
let l:lo = synIDattr(synIDtrans(synID(line('.'),col('.'),1)),'name')
|
||||
echo 'hi<'.l:hi.'> trans<'.l:trans.'> lo<'.l:lo.'>'
|
||||
endfunction
|
||||
command! CursorHighlightGroups :call s:CursorHighlightGroups()
|
||||
nnoremap <leader>hi :CursorHighlightGroups<CR>
|
||||
|
@ -60,29 +60,22 @@ nnoremap <leader>to :tabonly<CR>
|
||||
nnoremap <leader>tm :tabmove<Space>
|
||||
|
||||
" Clear search highlights
|
||||
map <leader><Space> :noh<CR>
|
||||
|
||||
" Show highlight group under cursor
|
||||
map <leader>hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") .
|
||||
\ '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
|
||||
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
|
||||
nnoremap <leader><Space> :nohlsearch<CR>
|
||||
|
||||
" System clipboard yank/put
|
||||
map <leader>y "+y
|
||||
map <leader>Y "+Y
|
||||
map <leader>p "+p
|
||||
map <leader>P "+P
|
||||
noremap <leader>y "+y
|
||||
noremap <leader>Y "+Y
|
||||
noremap <leader>p "+p
|
||||
noremap <leader>P "+P
|
||||
|
||||
" Quickly access spelling menu
|
||||
imap <C-s> <C-g>u<C-X>s
|
||||
nmap <C-s> i<C-g>u<C-X>s
|
||||
inoremap <C-s> <C-g>u<C-X>s
|
||||
nnoremap <C-s> i<C-g>u<C-X>s
|
||||
|
||||
" Disable 'Q' from opening Ex mode
|
||||
nmap Q <nop>
|
||||
" Disable 'K' from loading man pages in normal mode
|
||||
nmap K <nop>
|
||||
" Disable 'K' from loading man pages in visual mode
|
||||
vmap K <nop>
|
||||
nnoremap Q <nop>
|
||||
" Disable 'K' from loading man pages
|
||||
noremap K <nop>
|
||||
|
||||
" Split line at the cursor
|
||||
nnoremap [j i<CR><Esc>
|
||||
|
Loading…
x
Reference in New Issue
Block a user