mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-24 15:31:26 -05:00
Added a toggle for the spellcheck list to F8
This commit is contained in:
parent
25667a2b05
commit
716dc8693c
2 changed files with 169 additions and 160 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -58,3 +58,6 @@
|
||||||
[submodule "vim/bundle/ReplaceWithRegister"]
|
[submodule "vim/bundle/ReplaceWithRegister"]
|
||||||
path = vim/bundle/ReplaceWithRegister
|
path = vim/bundle/ReplaceWithRegister
|
||||||
url = https://github.com/vim-scripts/ReplaceWithRegister.git
|
url = https://github.com/vim-scripts/ReplaceWithRegister.git
|
||||||
|
[submodule "vim/bundle/SpellCheck"]
|
||||||
|
path = vim/bundle/SpellCheck
|
||||||
|
url = https://github.com/vim-scripts/SpellCheck.git
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
" <F4> | (A) -> toggle all folds
|
" <F4> | (A) -> toggle all folds
|
||||||
" <F5> | (A) -> toggle spell check
|
" <F5> | (A) -> toggle spell check
|
||||||
" <F6> | (A) -> toggle syntax checking
|
" <F6> | (A) -> toggle syntax checking
|
||||||
|
" <F8> | (A) -> enable spellcheck + toggle list of spelling errors
|
||||||
" <F9> | (A) -> toggle the gundo undo history sidebar
|
" <F9> | (A) -> toggle the gundo undo history sidebar
|
||||||
" <Shift-F9> | (A) -> toggle the tagbar sidebar
|
" <Shift-F9> | (A) -> toggle the tagbar sidebar
|
||||||
" <Ctrl-F9> | (A) -> toggle the location/error list
|
" <Ctrl-F9> | (A) -> toggle the location/error list
|
||||||
|
@ -131,199 +132,204 @@
|
||||||
"
|
"
|
||||||
|
|
||||||
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
|
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
|
||||||
"MOUSE:{
|
"MOUSE:{
|
||||||
"hold shift to enable middle-click paste
|
"hold shift to enable middle-click paste
|
||||||
noremap <S-Insert> <MiddleMouse>
|
noremap <S-Insert> <MiddleMouse>
|
||||||
noremap! <S-Insert> <MiddleMouse>
|
noremap! <S-Insert> <MiddleMouse>
|
||||||
|
|
||||||
"hold ctrl to scroll left/right instead of up/down
|
"hold ctrl to scroll left/right instead of up/down
|
||||||
noremap <C-ScrollWheelUp> 3zl
|
noremap <C-ScrollWheelUp> 3zl
|
||||||
noremap <C-ScrollWheelDown> 3zh
|
noremap <C-ScrollWheelDown> 3zh
|
||||||
inoremap <C-ScrollWheelUp> <C-O>3zl
|
inoremap <C-ScrollWheelUp> <C-O>3zl
|
||||||
inoremap <C-ScrollWheelDown> <C-O>3zh
|
inoremap <C-ScrollWheelDown> <C-O>3zh
|
||||||
"}
|
"}
|
||||||
|
|
||||||
"TABS:{
|
"TABS:{
|
||||||
nnoremap <silent><expr> <C-n> ':tabnext<CR>'
|
nnoremap <silent><expr> <C-n> ':tabnext<CR>'
|
||||||
nnoremap <silent><expr> <C-p> ':tabprev<CR>'
|
nnoremap <silent><expr> <C-p> ':tabprev<CR>'
|
||||||
nnoremap <silent><expr> <C-t> ':tabnew<CR>'
|
nnoremap <silent><expr> <C-t> ':tabnew<CR>'
|
||||||
nnoremap <silent><expr> `<C-t> ':VimFiler -tab -project<CR>'
|
nnoremap <silent><expr> `<C-t> ':VimFiler -tab -project<CR>'
|
||||||
"}
|
"}
|
||||||
|
|
||||||
"TOGGLES:{
|
"TOGGLES:{
|
||||||
"bindings to trigger vimfiler
|
"bindings to trigger vimfiler
|
||||||
nnoremap <silent><expr> `` ':VimFilerExplorer -direction=topleft -winwidth=45<CR>'
|
nnoremap <silent><expr> `` ':VimFilerExplorer -direction=topleft -winwidth=45<CR>'
|
||||||
nnoremap <silent><expr> ~~ ':VimFilerExplorer -direction=botright -winwidth=45<CR>'
|
nnoremap <silent><expr> ~~ ':VimFilerExplorer -direction=botright -winwidth=45<CR>'
|
||||||
|
|
||||||
"toggle folded code at foldpoints
|
"toggle folded code at foldpoints
|
||||||
nnoremap <Space> za
|
nnoremap <Space> za
|
||||||
|
|
||||||
"unmap F1 from help then map it to toggle the display of line numbers
|
"unmap F1 from help then map it to toggle the display of line numbers
|
||||||
nnoremap <silent><expr> <F1> ':set number!<CR>:echo "Line numbers toggled"<CR>'
|
nnoremap <silent><expr> <F1> ':set number!<CR>:echo "Line numbers toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F1> '<Esc>:set number!<CR>v'
|
xnoremap <silent><expr> <F1> '<Esc>:set number!<CR>v'
|
||||||
inoremap <silent><expr> <F1> '<C-O>:set number!<CR>'
|
inoremap <silent><expr> <F1> '<C-O>:set number!<CR>'
|
||||||
|
|
||||||
"toggle the cursor line and column
|
"toggle the cursor line and column
|
||||||
nnoremap <silent><expr> <F2> ':set cursorline! cursorcolumn!<CR>:echo "Cursor crosshair toggled"<CR>'
|
nnoremap <silent><expr> <F2> ':set cursorline! cursorcolumn!<CR>:echo "Cursor crosshair toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F2> '<Esc>:set cursorline! cursorcolumn!<CR>v'
|
xnoremap <silent><expr> <F2> '<Esc>:set cursorline! cursorcolumn!<CR>v'
|
||||||
inoremap <silent><expr> <F2> '<C-O>:set cursorline! cursorcolumn!<CR>'
|
inoremap <silent><expr> <F2> '<C-O>:set cursorline! cursorcolumn!<CR>'
|
||||||
|
|
||||||
"toggle line wrapping (and bottom bar if using the gui)
|
"toggle line wrapping (and bottom bar if using the gui)
|
||||||
nnoremap <silent><expr> <F3> ':echo "Line wrapping toggled"<CR>:set wrap!<CR>'
|
nnoremap <silent><expr> <F3> ':echo "Line wrapping toggled"<CR>:set wrap!<CR>'
|
||||||
xnoremap <silent><expr> <F3> '<Esc>:set wrap!<CR>v'
|
xnoremap <silent><expr> <F3> '<Esc>:set wrap!<CR>v'
|
||||||
inoremap <silent><expr> <F3> '<C-O>:set wrap!<CR>'
|
inoremap <silent><expr> <F3> '<C-O>:set wrap!<CR>'
|
||||||
|
|
||||||
"toggle all folds
|
"toggle all folds
|
||||||
nnoremap <F4> zi:echo "Code Folding Toggled"<CR>
|
nnoremap <F4> zi:echo "Code Folding Toggled"<CR>
|
||||||
xnoremap <F4> <Esc>ziv
|
xnoremap <F4> <Esc>ziv
|
||||||
inoremap <F4> <C-O>zi
|
inoremap <F4> <C-O>zi
|
||||||
|
|
||||||
"toggle spellcheck
|
"toggle spellcheck
|
||||||
nnoremap <silent><expr> <F5> ':set spell!<CR>:echo "Spell checking toggled"<CR>'
|
nnoremap <silent><expr> <F5> ':set spell!<CR>:echo "Spell checking toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F5> '<Esc>:set spell!<CR>v'
|
xnoremap <silent><expr> <F5> '<Esc>:set spell!<CR>v'
|
||||||
inoremap <silent><expr> <F5> '<C-O>:set spell!<CR>'
|
inoremap <silent><expr> <F5> '<C-O>:set spell!<CR>'
|
||||||
|
|
||||||
"toggle syntax checking
|
"toggle syntax checking
|
||||||
nnoremap <silent><expr> <F6> ':SyntasticToggleMode<CR>'
|
nnoremap <silent><expr> <F6> ':SyntasticToggleMode<CR>'
|
||||||
xnoremap <silent><expr> <F6> '<Esc>:SyntasticToggleMode<CR>v'
|
xnoremap <silent><expr> <F6> '<Esc>:SyntasticToggleMode<CR>v'
|
||||||
inoremap <silent><expr> <F6> '<C-O>:SyntasticToggleMode<CR>'
|
inoremap <silent><expr> <F6> '<C-O>:SyntasticToggleMode<CR>'
|
||||||
|
|
||||||
"bindings to trigger the gundo undo history
|
"bindings to trigger spellcheck
|
||||||
nnoremap <silent><expr> <F9> ':GundoToggle<CR>:echo "Undo history sidebar toggled"<CR>'
|
nnoremap <silent><expr> <F8> ':UpdateAndSpellCheck<CR>:call ToggleQuickfixList()<CR>'
|
||||||
xnoremap <silent><expr> <F9> '<Esc>:GundoToggle<CR>v'
|
xnoremap <silent><expr> <F8> '<Esc>:UpdateAndSpellCheck<CR>:call ToggleQuickfixList()<CR>'
|
||||||
inoremap <silent><expr> <F9> '<C-O>:GundoToggle<CR>'
|
inoremap <silent><expr> <F8> '<Esc>:UpdateAndSpellCheck<CR>:call ToggleQuickfixList()<CR>'
|
||||||
|
|
||||||
"bindings to trigger the tagbar list of tags
|
"bindings to trigger the gundo undo history
|
||||||
nnoremap <silent><expr> <S-F9> ':TagbarToggle<CR>:echo "Code tagbar toggled"<CR>'
|
nnoremap <silent><expr> <F9> ':GundoToggle<CR>:echo "Undo history sidebar toggled"<CR>'
|
||||||
xnoremap <silent><expr> <S-F9> '<Esc>:TagbarToggle<CR>v'
|
xnoremap <silent><expr> <F9> '<Esc>:GundoToggle<CR>v'
|
||||||
inoremap <silent><expr> <S-F9> '<C-O>:TagbarToggle<CR>'
|
inoremap <silent><expr> <F9> '<C-O>:GundoToggle<CR>'
|
||||||
|
|
||||||
"bindings to trigger the tagbar list of errors
|
"bindings to trigger the tagbar list of tags
|
||||||
nmap <script> <silent> <C-F9> :call ToggleLocationList()<CR>:echo "Error/Location list toggled"<CR>
|
nnoremap <silent><expr> <S-F9> ':TagbarToggle<CR>:echo "Code tagbar toggled"<CR>'
|
||||||
"}
|
xnoremap <silent><expr> <S-F9> '<Esc>:TagbarToggle<CR>v'
|
||||||
|
inoremap <silent><expr> <S-F9> '<C-O>:TagbarToggle<CR>'
|
||||||
|
|
||||||
"GVIM TOGGLES:{
|
"bindings to trigger the tagbar list of errors
|
||||||
"map toggles for the menu, toolbar and vertical scrollbar
|
nmap <script> <silent> <C-F9> :call ToggleLocationList()<CR>:echo "Error/Location list toggled"<CR>
|
||||||
nnoremap <silent><expr> <C-F1> ":if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>:echo 'Menu bar toggled'<CR>"
|
"}
|
||||||
vnoremap <silent><expr> <C-F1> "<Esc>:if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>v"
|
|
||||||
inoremap <silent><expr> <C-F1> "<C-O>:if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>"
|
|
||||||
|
|
||||||
nnoremap <silent><expr> <C-F2> ":if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>:echo 'Toolbar toggled'<CR>"
|
"GVIM TOGGLES:{
|
||||||
vnoremap <silent><expr> <C-F2> "<Esc>:if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>v"
|
"map toggles for the menu, toolbar and vertical scrollbar
|
||||||
inoremap <silent><expr> <C-F2> "<C-O>:if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>"
|
nnoremap <silent><expr> <C-F1> ":if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>:echo 'Menu bar toggled'<CR>"
|
||||||
|
vnoremap <silent><expr> <C-F1> "<Esc>:if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>v"
|
||||||
|
inoremap <silent><expr> <C-F1> "<C-O>:if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>"
|
||||||
|
|
||||||
nnoremap <silent><expr> <C-F3> ":if &go=~#'r'<Bar>set go-=r<Bar>set go-=L<Bar>set go-=b<Bar>else<Bar>set go+=r<Bar>set go+=L<Bar>set go+=b<Bar>endif<CR>:echo 'Scrollbars toggled'<CR>"
|
nnoremap <silent><expr> <C-F2> ":if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>:echo 'Toolbar toggled'<CR>"
|
||||||
vnoremap <silent><expr> <C-F3> "<Esc>:if &go=~#'r'<Bar>set go-=r<Bar>set go-=L<Bar>set go-=b<Bar>else<Bar>set go+=r<Bar>set go+=L<Bar>set go+=b<Bar>endif<CR>v"
|
vnoremap <silent><expr> <C-F2> "<Esc>:if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>v"
|
||||||
inoremap <silent><expr> <C-F3> "<C-O>:if &go=~#'r'<Bar>set go-=r<Bar>set go-=L<Bar>set go-=b<Bar>else<Bar>set go+=r<Bar>set go+=L<Bar>set go+=b<Bar>endif<CR>"
|
inoremap <silent><expr> <C-F2> "<C-O>:if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>"
|
||||||
"}
|
|
||||||
|
|
||||||
"COMPLETION:{
|
nnoremap <silent><expr> <C-F3> ":if &go=~#'r'<Bar>set go-=r<Bar>set go-=L<Bar>set go-=b<Bar>else<Bar>set go+=r<Bar>set go+=L<Bar>set go+=b<Bar>endif<CR>:echo 'Scrollbars toggled'<CR>"
|
||||||
"emmet switch triggerkey from <Ctrl-Y>
|
vnoremap <silent><expr> <C-F3> "<Esc>:if &go=~#'r'<Bar>set go-=r<Bar>set go-=L<Bar>set go-=b<Bar>else<Bar>set go+=r<Bar>set go+=L<Bar>set go+=b<Bar>endif<CR>v"
|
||||||
let g:user_emmet_leader_key='<Leader>,'
|
inoremap <silent><expr> <C-F3> "<C-O>:if &go=~#'r'<Bar>set go-=r<Bar>set go-=L<Bar>set go-=b<Bar>else<Bar>set go+=r<Bar>set go+=L<Bar>set go+=b<Bar>endif<CR>"
|
||||||
|
"}
|
||||||
|
|
||||||
"press backslash twice on a mispelled word for suggestions
|
"COMPLETION:{
|
||||||
nnoremap \\ hei<C-X><C-S>
|
"emmet switch triggerkey from <Ctrl-Y>
|
||||||
nnoremap \| zg
|
let g:user_emmet_leader_key='<Leader>,'
|
||||||
|
|
||||||
"neocomplcache: scroll through completion list
|
"press backslash twice on a mispelled word for suggestions
|
||||||
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
nnoremap \\ hei<C-X><C-S>
|
||||||
"neocomplcache: complete the common part of the string
|
nnoremap \| zg
|
||||||
inoremap <expr><Leader><Tab> neocomplcache#complete_common_string()
|
|
||||||
"neocomplcache: close popup and delete backward char
|
|
||||||
inoremap <expr><CR> pumvisible() ? neocomplcache#smart_close_popup() : "\<CR>"
|
|
||||||
"neocomplcache : undo completion
|
|
||||||
inoremap <expr><Leader><Backspace> "<Backspace>" . neocomplcache#undo_completion()
|
|
||||||
"}
|
|
||||||
|
|
||||||
"FORMATTING:{
|
"neocomplcache: scroll through completion list
|
||||||
"have backspace delete the selected text
|
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
vnoremap <Backspace> "_x
|
"neocomplcache: complete the common part of the string
|
||||||
nnoremap <Backspace> i<Backspace><Esc>l
|
inoremap <expr><Leader><Tab> neocomplcache#complete_common_string()
|
||||||
|
"neocomplcache: close popup and delete backward char
|
||||||
|
inoremap <expr><CR> pumvisible() ? neocomplcache#smart_close_popup() : "\<CR>"
|
||||||
|
"neocomplcache : undo completion
|
||||||
|
inoremap <expr><Leader><Backspace> "<Backspace>" . neocomplcache#undo_completion()
|
||||||
|
"}
|
||||||
|
|
||||||
"formatting options to apply to the whole document
|
"FORMATTING:{
|
||||||
nnoremap <Leader><C-f> mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
"have backspace delete the selected text
|
||||||
nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
|
vnoremap <Backspace> "_x
|
||||||
nnoremap <silent><expr> <Leader><C-t> ':retab<CR>:noh<CR>:echo "Tabs have been converted to spaces"<CR>'
|
nnoremap <Backspace> i<Backspace><Esc>l
|
||||||
nnoremap <silent><expr> <Leader>/ ':noh<CR>:echo "Search results have been cleared"<CR>'
|
|
||||||
nnoremap <silent><expr> <Leader><Esc> ':noh<CR>:echo "Search results have been cleared"<CR>'
|
|
||||||
|
|
||||||
"tab and untab the currently selected lines
|
"formatting options to apply to the whole document
|
||||||
vnoremap <Tab> >gv
|
nnoremap <Leader><C-f> mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
||||||
nnoremap <Tab> v>gv<Esc>
|
nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
|
||||||
vnoremap <S-Tab> <gv
|
nnoremap <silent><expr> <Leader><C-t> ':retab<CR>:noh<CR>:echo "Tabs have been converted to spaces"<CR>'
|
||||||
nnoremap <S-Tab> v<gv<Esc>
|
nnoremap <silent><expr> <Leader>/ ':noh<CR>:echo "Search results have been cleared"<CR>'
|
||||||
"}
|
nnoremap <silent><expr> <Leader><Esc> ':noh<CR>:echo "Search results have been cleared"<CR>'
|
||||||
|
|
||||||
"MOVEMENT:{
|
"tab and untab the currently selected lines
|
||||||
"additional mappings for easier access
|
vnoremap <Tab> >gv
|
||||||
nnoremap = +
|
nnoremap <Tab> v>gv<Esc>
|
||||||
|
vnoremap <S-Tab> <gv
|
||||||
|
nnoremap <S-Tab> v<gv<Esc>
|
||||||
|
"}
|
||||||
|
|
||||||
"remap keys for speedier movement
|
"MOVEMENT:{
|
||||||
nnoremap <S-Up> 4k
|
"additional mappings for easier access
|
||||||
nnoremap <S-Down> 4j
|
nnoremap = +
|
||||||
nnoremap <S-Right> 6l
|
|
||||||
nnoremap <S-Left> 6h
|
|
||||||
|
|
||||||
"remap keys to scroll to the end in a direction
|
"remap keys for speedier movement
|
||||||
nnoremap <C-Up> gg0
|
nnoremap <S-Up> 4k
|
||||||
nnoremap <C-Down> G$
|
nnoremap <S-Down> 4j
|
||||||
nnoremap <C-Right> $
|
nnoremap <S-Right> 6l
|
||||||
nnoremap <C-Left> ^
|
nnoremap <S-Left> 6h
|
||||||
"}
|
|
||||||
|
|
||||||
"SELECTION:{
|
"remap keys to scroll to the end in a direction
|
||||||
"ctrl-a to select all (and an alt for screen users)
|
nnoremap <C-Up> gg0
|
||||||
nnoremap <C-a> gg0vG$
|
nnoremap <C-Down> G$
|
||||||
xnoremap <C-a> <Esc>gg0vG$
|
nnoremap <C-Right> $
|
||||||
xnoremap <Leader>a <Esc>gg0vG$
|
nnoremap <C-Left> ^
|
||||||
xnoremap <Leader>a gg0vG$
|
"}
|
||||||
|
|
||||||
"map remap keys for speedier text selection
|
"SELECTION:{
|
||||||
xnoremap <S-Up> 4k
|
"ctrl-a to select all (and an alt for screen users)
|
||||||
xnoremap <S-Down> 4j
|
nnoremap <C-a> gg0vG$
|
||||||
xnoremap <S-Right> 6l
|
xnoremap <C-a> <Esc>gg0vG$
|
||||||
xnoremap <S-Left> 6h
|
xnoremap <Leader>a <Esc>gg0vG$
|
||||||
|
xnoremap <Leader>a gg0vG$
|
||||||
|
|
||||||
"remap keys to select all text in one direction
|
"map remap keys for speedier text selection
|
||||||
xnoremap <C-Up> gg0
|
xnoremap <S-Up> 4k
|
||||||
xnoremap <C-Down> G$
|
xnoremap <S-Down> 4j
|
||||||
xnoremap <C-Right> $
|
xnoremap <S-Right> 6l
|
||||||
xnoremap <C-Left> ^
|
xnoremap <S-Left> 6h
|
||||||
"}
|
|
||||||
|
|
||||||
"VIMDIFF:{
|
"remap keys to select all text in one direction
|
||||||
"map shortcuts for vimdiff
|
xnoremap <C-Up> gg0
|
||||||
nnoremap <silent><expr> <Leader>> ':diffu<CR>'
|
xnoremap <C-Down> G$
|
||||||
nnoremap <silent><expr> <Leader>< ':diffu<CR>'
|
xnoremap <C-Right> $
|
||||||
nnoremap >> ]c
|
xnoremap <C-Left> ^
|
||||||
nnoremap << [c
|
"}
|
||||||
nnoremap <> dp
|
|
||||||
nnoremap >< do
|
|
||||||
"}
|
|
||||||
|
|
||||||
"PASTE:{
|
"VIMDIFF:{
|
||||||
"display contents of paste buffers
|
"map shortcuts for vimdiff
|
||||||
nnoremap <silent><expr> <Leader>p ':reg<CR>'
|
nnoremap <silent><expr> <Leader>> ':diffu<CR>'
|
||||||
|
nnoremap <silent><expr> <Leader>< ':diffu<CR>'
|
||||||
|
nnoremap >> ]c
|
||||||
|
nnoremap << [c
|
||||||
|
nnoremap <> dp
|
||||||
|
nnoremap >< do
|
||||||
|
"}
|
||||||
|
|
||||||
"allow y to copy a single character in normal mode
|
"PASTE:{
|
||||||
nnoremap y vy<Esc>
|
"display contents of paste buffers
|
||||||
|
nnoremap <silent><expr> <Leader>p ':reg<CR>'
|
||||||
|
|
||||||
"P puts text it replaces in the buffer and p does not
|
"allow y to copy a single character in normal mode
|
||||||
vnoremap P p
|
nnoremap y vy<Esc>
|
||||||
xmap p <Plug>ReplaceWithRegisterVisual
|
|
||||||
nmap <Leader>p <Plug>ReplaceWithRegisterOperator
|
|
||||||
|
|
||||||
"Alternatives to deletion commands that don't replace the buffer
|
"P puts text it replaces in the buffer and p does not
|
||||||
vnoremap <Leader>x "_x
|
vnoremap P p
|
||||||
nnoremap <Leader>x "_x
|
xmap p <Plug>ReplaceWithRegisterVisual
|
||||||
vnoremap <Leader>X "_X
|
nmap <Leader>p <Plug>ReplaceWithRegisterOperator
|
||||||
nnoremap <Leader>X "_X
|
|
||||||
vnoremap <Leader>D "_D
|
"Alternatives to deletion commands that don't replace the buffer
|
||||||
nnoremap <Leader>D "_D
|
vnoremap <Leader>x "_x
|
||||||
vnoremap <Leader>d "_d
|
nnoremap <Leader>x "_x
|
||||||
nnoremap <Leader>dd "_dd
|
vnoremap <Leader>X "_X
|
||||||
nnoremap <Leader>dw "_dw
|
nnoremap <Leader>X "_X
|
||||||
"}
|
vnoremap <Leader>D "_D
|
||||||
|
nnoremap <Leader>D "_D
|
||||||
|
vnoremap <Leader>d "_d
|
||||||
|
nnoremap <Leader>dd "_dd
|
||||||
|
nnoremap <Leader>dw "_dw
|
||||||
|
"}
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"ALIASES: COMMAND SHORTCUTS {{{
|
"ALIASES: COMMAND SHORTCUTS {{{
|
||||||
|
|
Loading…
Reference in a new issue