mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 23:06:38 -05:00
Added tcommand to provide a searchable list of commands via `
This commit is contained in:
parent
58d0fc0022
commit
954632c7b7
6 changed files with 27 additions and 11 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -91,3 +91,9 @@
|
|||
[submodule "vim/bundle/goyo.vim"]
|
||||
path = vim/bundle/goyo.vim
|
||||
url = https://github.com/prurigro/goyo.vim.git
|
||||
[submodule "vim/bundle/tcommand_vim"]
|
||||
path = vim/bundle/tcommand_vim
|
||||
url = https://github.com/tomtom/tcommand_vim.git
|
||||
[submodule "vim/bundle/tlib_vim"]
|
||||
path = vim/bundle/tlib_vim
|
||||
url = git://github.com/tomtom/tlib_vim.git
|
||||
|
|
|
@ -98,12 +98,14 @@ A theme, config and collection of plugins for Vim.
|
|||
|
||||
| Binding | Mode | Action |
|
||||
|:-----------------------|:----:|-------------------------------------------------:|
|
||||
| \` | NORM | Popup a command list dialog |
|
||||
| | | |
|
||||
| \<F1\> | ALL | Toggle line wrapping |
|
||||
| \<F2\> | ALL | Toggle highlighting of spelling mistakes |
|
||||
| \<F3\> | ALL | Toggle source code syntax checking |
|
||||
| \<F4\> | ALL | Toggle external-paste mode |
|
||||
| | | |
|
||||
| \` | NORM | Toggle gutter (left bar with line numbers etc.) |
|
||||
| ~ | NORM | Toggle gutter (left bar with line numbers etc.) |
|
||||
| \<Backslash\>\<F1\> | NORM | Toggle the **vim** reference manual |
|
||||
| \<Backslash\>\<Space\> | NORM | Toggle the **goyo** distraction-free UI |
|
||||
| ?\<Space\> | NORM | Toggle the **spellcheck** bottom bar of mistakes |
|
||||
|
|
1
vim/bundle/tcommand_vim
Submodule
1
vim/bundle/tcommand_vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit e5444b47ea15b477e962ac5744a0c0b1827571ef
|
1
vim/bundle/tlib_vim
Submodule
1
vim/bundle/tlib_vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit b82f8804c4987b2534a5411d492d15d6010e98d2
|
|
@ -73,9 +73,10 @@
|
|||
" <Alt-d> | (N) -> create a new tab with a double pane vimfiler
|
||||
"
|
||||
" (toggles and features)
|
||||
" ` | (N) -> popup a command reference
|
||||
" <Leader><F1> | (N) -> toggle the vim reference manual
|
||||
" <Leader>? | (N) -> toggle the vim reference manual
|
||||
" ` | (A) -> toggle the gutter(line numbers, folds and signify)
|
||||
" ~ | (A) -> toggle the gutter(line numbers, folds and signify)
|
||||
"
|
||||
" <Space> | (N) -> toggle selected fold
|
||||
" <Leader><Space> | (N) -> open all folds
|
||||
|
@ -121,9 +122,6 @@
|
|||
" <Backspace> | (I) -> (neocomp) close the popup and <Backspace>
|
||||
" <Ctrl-u> | (I) -> (neocomp) undo the most recent completion
|
||||
"
|
||||
" (search)
|
||||
" <Leader>/ | (N) -> remove search highlighting
|
||||
"
|
||||
" (formatting)
|
||||
" <Backspace> | (V) -> deletes currently selected text
|
||||
" <Leader>J | (N) -> split the line into lines of <=79 chars
|
||||
|
@ -183,6 +181,8 @@
|
|||
" <Ctrl-Right> | (V) -> select one word right
|
||||
" <Ctrl-Left> | (V) -> select one word left
|
||||
"
|
||||
" <Leader>/ | (N) -> remove search highlighting
|
||||
"
|
||||
" (copy/paste and undo/redo)
|
||||
" <Leader>p | (N) -> view the paste buffers and register contents
|
||||
" y | (N) -> copies the character at the cursor
|
||||
|
@ -380,12 +380,15 @@
|
|||
"}
|
||||
|
||||
"TOGGLES AND FEATURES:{
|
||||
"toggle the command reference box
|
||||
nnoremap <silent><expr> ` ':TCommand<CR>'
|
||||
|
||||
"toggle the vim reference manual
|
||||
nnoremap <silent><expr> <Leader><F1> ':h index.txt<CR>'
|
||||
nnoremap <silent><expr> <Leader>? ':h index.txt<CR>'
|
||||
|
||||
"toggle the display of the left gutter
|
||||
nnoremap <silent><expr> ` ':if (&number)<Bar>set nonumber<Bar>if (&foldenable)<Bar>set nofoldenable<Bar>endif<Bar>if exists("b:sy")<Bar>if (b:sy.active)<Bar>SignifyToggle<Bar>endif<Bar>endif<Bar>else<Bar>set number<Bar>if !(&foldenable)<Bar>set foldenable<Bar>endif<Bar>if exists("b:sy")<Bar>if !(b:sy.active)<Bar>SignifyToggle<Bar>endif<Bar>endif<Bar>endif<CR>:echo "gutter visibility toggled"<CR>'
|
||||
nnoremap <silent><expr> ~ ':if (&number)<Bar>set nonumber<Bar>if (&foldenable)<Bar>set nofoldenable<Bar>endif<Bar>if exists("b:sy")<Bar>if (b:sy.active)<Bar>SignifyToggle<Bar>endif<Bar>endif<Bar>else<Bar>set number<Bar>if !(&foldenable)<Bar>set foldenable<Bar>endif<Bar>if exists("b:sy")<Bar>if !(b:sy.active)<Bar>SignifyToggle<Bar>endif<Bar>endif<Bar>endif<CR>:echo "gutter visibility toggled"<CR>'
|
||||
|
||||
"toggle folded code at foldpoints
|
||||
nnoremap <Space> za
|
||||
|
@ -504,10 +507,6 @@
|
|||
inoremap <expr><C-u> neocomplcache#undo_completion()
|
||||
"}
|
||||
|
||||
"FORMATTING:{
|
||||
nnoremap <silent><expr> <Leader>/ ':noh<CR>:echo "Search results have been cleared"<CR>'
|
||||
"}
|
||||
|
||||
"FORMATTING:{
|
||||
"have backspace delete the selected text
|
||||
vnoremap <Backspace> "_x
|
||||
|
@ -587,6 +586,9 @@
|
|||
xnoremap <S-Down> G$
|
||||
xnoremap <S-Right> $
|
||||
xnoremap <S-Left> ^
|
||||
|
||||
"clear search results
|
||||
nnoremap <silent><expr> <Leader>/ ':noh<CR>:echo "Search results have been cleared"<CR>'
|
||||
"}
|
||||
|
||||
"COPY PASTE AND UNDO REDO:{
|
||||
|
@ -692,7 +694,7 @@
|
|||
|
||||
"DISABLED MAPPINGS FOR FILETYPES: {{{
|
||||
"remove incompatible toggles from specific file types
|
||||
autocmd Filetype qf,gundo,vimfiler,tagbar,extradite,help noremap <buffer> ` <Nop>
|
||||
autocmd Filetype qf,gundo,vimfiler,tagbar,extradite,help noremap <buffer> ~ <Nop>
|
||||
autocmd Filetype qf,vimfiler,extradite,help noremap <buffer> <C-F2> <Nop>
|
||||
autocmd Filetype qf,vimfiler,extradite,help noremap <buffer> <A-F2> <Nop>
|
||||
autocmd Filetype qf,gundo,vimfiler,extradite,help noremap <buffer> <C-F3> <Nop>
|
||||
|
|
|
@ -176,6 +176,10 @@
|
|||
let g:tagbar_width=35
|
||||
"}}}
|
||||
|
||||
"TCOMMAND: {{{
|
||||
let g:tcommand#include_history=0
|
||||
"}}}
|
||||
|
||||
"VIM FILER: {{{
|
||||
"autostart filer when vim opens to an empty buffer (default: 1)
|
||||
if !exists("g:autostartfiler")|let g:autostartfiler=1|endif
|
||||
|
|
Loading…
Reference in a new issue