mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 03:34:10 -05:00
Spelling mistakes, mistakes that exist in another locale and incorrect
case are now all different colors, and those along with a few other colours have been tweaked to better matches the theme, and the non-colour term theme should more closely match too. The F1-F3+F12 toggles now work in all three editor modes, and F4 has been added to toggle spellcheck, which also works in all three modes (depending on the filetype, sometimes it will start on and others off). You can now place your cursor on an misspelled word in normal mode and hit \\ (backslash twice) to create a drop down menu with suggestions.
This commit is contained in:
parent
89a19086c7
commit
a80b043da6
2 changed files with 27 additions and 10 deletions
|
@ -280,7 +280,7 @@ call s:X("MatchParen","000000","87d7ff","bold",s:termBlack,"Blue")
|
|||
call s:X("CursorColumn","","303030","","",s:termBlack)
|
||||
call s:X("CursorLine","","303030","","",s:termBlack)
|
||||
call s:X("CursorLineNr","87d7ff","","bold","Blue",s:termBlack)
|
||||
call s:X("LineNr","ffaf00","","","Red",s:termBlack)
|
||||
call s:X("LineNr","ffaf00","","","Yellow",s:termBlack)
|
||||
|
||||
call s:X("TabLine","","000000","","",s:termBlack)
|
||||
call s:X("TabLineFill","","000000","","",s:termBlack)
|
||||
|
@ -290,7 +290,7 @@ call s:X("Visual","","000000","standout","",s:termBlack)
|
|||
call s:X("Cursor","000000","87d7ff","underline",s:termBlack,"Blue")
|
||||
|
||||
call s:X("Comment","626262","","","Grey","")
|
||||
call s:X("Todo","5f0000","808080","","Red",s:termBlack)
|
||||
call s:X("Todo","ffaf00","808080","","Red",s:termBlack)
|
||||
|
||||
call s:X("StatusLine","000000","d75f5f","bold",s:termBlack,"Red")
|
||||
call s:X("StatusLineNC","ffffff","626262","","White","Grey")
|
||||
|
@ -319,7 +319,7 @@ call s:X("NonText","ffff00","","","Yellow","")
|
|||
call s:X("SpecialKey","000000","","",s:termBlack,"")
|
||||
call s:X("Search","ffffff","d75f5f","bold","White","Red")
|
||||
call s:X("IncSearch","87d7ff","626262","standout","Blue","Grey")
|
||||
call s:X("Directory","ffff00","","","Yellow","")
|
||||
call s:X("Directory","ffaf00","","","Yellow","")
|
||||
call s:X("Question","d75f5f","","","Red","")
|
||||
call s:X("ExtraWhitespace","262626","","standout",s:termBlack,"")
|
||||
call s:X("ErrorMsg","d75f5f","000000","standout","Red",s:termBlack)
|
||||
|
@ -327,9 +327,9 @@ hi! link Error ErrorMsg
|
|||
hi! link MoreMsg Special
|
||||
|
||||
"spell checking
|
||||
call s:X("SpellBad","ff0000","","undercurl","Red","")
|
||||
call s:X("SpellCap","ffd787","","undercurl","","")
|
||||
call s:X("SpellLocal","ffd787","","undercurl","","")
|
||||
call s:X("SpellBad","d75f5f","","undercurl","","Red")
|
||||
call s:X("SpellCap","87d7ff","","undercurl","","Blue")
|
||||
call s:X("SpellLocal","ffd787","","undercurl","","Yellow")
|
||||
"call s:X("SpellRare","","","","","")
|
||||
|
||||
"diff
|
||||
|
|
|
@ -18,14 +18,16 @@
|
|||
" <Ctrl-n> | (A) -> go to the next open tab
|
||||
" <Ctrl-p> | (A) -> go to the previous open tab
|
||||
" <Tab> | (V) -> indent a block in visual mode
|
||||
" <Shift-Tab> | (V) -> unindent a block in visual mod
|
||||
" <Shift-Tab> | (V) -> unindent a block in visual mode
|
||||
" \\ | (N) -> show spelling suggestions popup for selection
|
||||
" ` | (N) -> toggle the nerdtree sidebar
|
||||
" ~ | (N) -> toggle the tagbar sidebar
|
||||
" p | (V) -> paste and replace the selection
|
||||
" <Shift-p> | (N) -> paste and replace the current word
|
||||
" <F1> | (A) -> toggle line numbers
|
||||
" <F2> | (N) -> toggle line wrapping
|
||||
" <F2> | (A) -> toggle line wrapping
|
||||
" <F3> | (A) -> toggle row/column highlighting
|
||||
" <F4> | (A) -> toggle spellcheck
|
||||
" <F12> | (A) -> toggle collapsed/folded rows
|
||||
" <Leader><C-f> | (N) -> format document and return to current line
|
||||
" <Leader><C-w> | (N) -> remove whitespace
|
||||
|
@ -78,6 +80,9 @@
|
|||
vnoremap <Tab> >gv
|
||||
vnoremap <S-Tab> <gv
|
||||
|
||||
"press backslash twice on a mispelled word for suggestions
|
||||
nnoremap \\ ea<C-X><C-S>
|
||||
|
||||
"move to the next and previous tabs
|
||||
nnoremap <silent><expr> <C-t> ':tabnew<CR>'
|
||||
nnoremap <silent><expr> <C-n> ':tabnext<CR>'
|
||||
|
@ -88,24 +93,36 @@
|
|||
nnoremap <S-p> "_diwP
|
||||
|
||||
"unmap F1 from help then map it to toggle the display of line numbers
|
||||
nmap <F1> <nop>
|
||||
nnoremap <silent><expr> <F1> ':set number!<CR>'
|
||||
inoremap <silent><expr> <F1> '<Esc>:set number!<CR>a'
|
||||
vnoremap <silent><expr> <F1> '<Esc>:set number!<CR>v'
|
||||
|
||||
"toggle line wrapping (and bottom bar if using the gui)
|
||||
if !has("gui_running")
|
||||
nnoremap <silent><expr> <F2> ':set wrap!<CR>'
|
||||
inoremap <silent><expr> <F2> '<Esc>:set wrap!<CR>'
|
||||
vnoremap <silent><expr> <F2> '<Esc>:set wrap!<CR>'
|
||||
else
|
||||
nnoremap <silent><expr> <F2> ':set wrap! go'.'-+'[&wrap]."=b\r"
|
||||
inoremap <silent><expr> <F2> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\ra"
|
||||
vnoremap <silent><expr> <F2> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\rv"
|
||||
endif
|
||||
|
||||
"toggle the cursor line and column
|
||||
nnoremap <silent><expr> <F3> ':set cursorline! cursorcolumn!<CR>'
|
||||
inoremap <silent><expr> <F3> '<Esc>:set cursorline! cursorcolumn!<CR>a'
|
||||
vnoremap <silent><expr> <F3> '<Esc>:set cursorline! cursorcolumn!<CR>v'
|
||||
|
||||
"toggle spellcheck
|
||||
nnoremap <silent><expr> <F4> ':set spell!<CR>'
|
||||
inoremap <silent><expr> <F4> '<Esc>:set spell!<CR>a'
|
||||
vnoremap <silent><expr> <F4> '<Esc>:set spell!<CR>a'
|
||||
|
||||
"toggle folded code at foldpoints
|
||||
inoremap <F12> <C-O>za
|
||||
nnoremap <F12> za
|
||||
onoremap <F12> <C-C>za
|
||||
vnoremap <F12> zf
|
||||
vnoremap <F12> <Esc>zav
|
||||
|
||||
"format the document
|
||||
nnoremap <Leader><C-f> mzgg=G`z<CR>
|
||||
|
|
Loading…
Reference in a new issue