mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-12-22 08:40:24 -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
|
||||
" p | (V) -> paste and replace the selection
|
||||
" <Shift-p> | (N) -> paste and replace the current word
|
||||
" <F2> | (A) -> toggle line numbers
|
||||
" <F3> | (N) -> toggle line wrapping
|
||||
" <F4> | (A) -> toggle row/column highlighting
|
||||
" <F1> | (A) -> toggle line numbers
|
||||
" <F2> | (N) -> toggle line wrapping
|
||||
" <F3> | (A) -> toggle row/column highlighting
|
||||
" <F12> | (A) -> toggle collapsed/folded rows
|
||||
" <Leader><C-f> | (N) -> format document and return to current line
|
||||
" <Leader><C-w> | (N) -> remove whitespace
|
||||
|
@ -87,18 +87,19 @@
|
|||
vnoremap p "_d"0P
|
||||
nnoremap <S-p> "_diwP
|
||||
|
||||
"toggle the display of line numbers
|
||||
nnoremap <silent><expr> <F2> ':set number!<CR>'
|
||||
"unmap F1 from help then map it to toggle the display of line numbers
|
||||
nmap <F1> <nop>
|
||||
nnoremap <silent><expr> <F1> ':set number!<CR>'
|
||||
|
||||
"toggle line wrapping (and bottom bar if using the gui)
|
||||
if !has("gui_running")
|
||||
nnoremap <silent><expr> <F3> ':set wrap!<CR>'
|
||||
nnoremap <silent><expr> <F2> ':set wrap!<CR>'
|
||||
else
|
||||
nnoremap <silent><expr> <F3> ':set wrap! go'.'-+'[&wrap]."=b\r"
|
||||
nnoremap <silent><expr> <F2> ':set wrap! go'.'-+'[&wrap]."=b\r"
|
||||
endif
|
||||
|
||||
"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
|
||||
inoremap <F12> <C-O>za
|
||||
|
|
Loading…
Reference in a new issue