mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-13 16:32:30 -05:00
unmapped <f1> from help and set the three toggles to f1-f3
This commit is contained in:
parent
72dfdfd7db
commit
6929debb89
1 changed files with 9 additions and 8 deletions
|
@ -23,9 +23,9 @@
|
||||||
" ~ | (N) -> toggle the tagbar sidebar
|
" ~ | (N) -> toggle the tagbar sidebar
|
||||||
" p | (V) -> paste and replace the selection
|
" p | (V) -> paste and replace the selection
|
||||||
" <Shift-p> | (N) -> paste and replace the current word
|
" <Shift-p> | (N) -> paste and replace the current word
|
||||||
" <F2> | (A) -> toggle line numbers
|
" <F1> | (A) -> toggle line numbers
|
||||||
" <F3> | (N) -> toggle line wrapping
|
" <F2> | (N) -> toggle line wrapping
|
||||||
" <F4> | (A) -> toggle row/column highlighting
|
" <F3> | (A) -> toggle row/column highlighting
|
||||||
" <F12> | (A) -> toggle collapsed/folded rows
|
" <F12> | (A) -> toggle collapsed/folded rows
|
||||||
" <Leader><C-f> | (N) -> format document and return to current line
|
" <Leader><C-f> | (N) -> format document and return to current line
|
||||||
" <Leader><C-w> | (N) -> remove whitespace
|
" <Leader><C-w> | (N) -> remove whitespace
|
||||||
|
@ -87,18 +87,19 @@
|
||||||
vnoremap p "_d"0P
|
vnoremap p "_d"0P
|
||||||
nnoremap <S-p> "_diwP
|
nnoremap <S-p> "_diwP
|
||||||
|
|
||||||
"toggle the display of line numbers
|
"unmap F1 from help then map it to toggle the display of line numbers
|
||||||
nnoremap <silent><expr> <F2> ':set number!<CR>'
|
nmap <F1> <nop>
|
||||||
|
nnoremap <silent><expr> <F1> ':set number!<CR>'
|
||||||
|
|
||||||
"toggle line wrapping (and bottom bar if using the gui)
|
"toggle line wrapping (and bottom bar if using the gui)
|
||||||
if !has("gui_running")
|
if !has("gui_running")
|
||||||
nnoremap <silent><expr> <F3> ':set wrap!<CR>'
|
nnoremap <silent><expr> <F2> ':set wrap!<CR>'
|
||||||
else
|
else
|
||||||
nnoremap <silent><expr> <F3> ':set wrap! go'.'-+'[&wrap]."=b\r"
|
nnoremap <silent><expr> <F2> ':set wrap! go'.'-+'[&wrap]."=b\r"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"toggle the cursor line and column
|
"toggle the cursor line and column
|
||||||
nnoremap <silent><expr> <F4> ':set cursorline! cursorcolumn!<CR>'
|
nnoremap <silent><expr> <F3> ':set cursorline! cursorcolumn!<CR>'
|
||||||
|
|
||||||
"toggle folded code at foldpoints
|
"toggle folded code at foldpoints
|
||||||
inoremap <F12> <C-O>za
|
inoremap <F12> <C-O>za
|
||||||
|
|
Loading…
Reference in a new issue