mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-13 16:32:30 -05:00
Syntax can now be toggled on/off, and the filetype association was
commented out to use as an example.
This commit is contained in:
parent
feec545d14
commit
94b65ec376
2 changed files with 20 additions and 15 deletions
|
@ -29,8 +29,9 @@
|
||||||
" <F1> | (A) -> toggle line numbers
|
" <F1> | (A) -> toggle line numbers
|
||||||
" <F2> | (A) -> toggle row/column highlighting
|
" <F2> | (A) -> toggle row/column highlighting
|
||||||
" <F3> | (A) -> toggle line wrapping
|
" <F3> | (A) -> toggle line wrapping
|
||||||
" <F4> | (A) -> toggle spell check
|
" <F4> | (A) -> toggle all folds
|
||||||
" <F5> | (A) -> toggle all folds
|
" <F5> | (A) -> toggle spell check
|
||||||
|
" <F6> | (A) -> toggle syntax checking
|
||||||
" <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 error list
|
" <Ctrl-F9> | (A) -> toggle the error list
|
||||||
|
@ -149,15 +150,20 @@
|
||||||
vnoremap <silent><expr> <F3> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\rv"
|
vnoremap <silent><expr> <F3> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\rv"
|
||||||
inoremap <silent><expr> <F3> '<C-O>:set wrap! go'.'-+'[&wrap]."=b\r"
|
inoremap <silent><expr> <F3> '<C-O>:set wrap! go'.'-+'[&wrap]."=b\r"
|
||||||
|
|
||||||
"toggle spellcheck
|
|
||||||
nnoremap <silent><expr> <F4> ':set spell!<CR>'
|
|
||||||
vnoremap <silent><expr> <F4> '<Esc>:set spell!<CR>v'
|
|
||||||
inoremap <silent><expr> <F4> '<C-O>:set spell!<CR>'
|
|
||||||
|
|
||||||
"toggle all folds
|
"toggle all folds
|
||||||
nnoremap <F5> zi
|
nnoremap <F4> zi
|
||||||
vnoremap <F5> <Esc>ziv
|
vnoremap <F4> <Esc>ziv
|
||||||
inoremap <F5> <C-O>zi
|
inoremap <F4> <C-O>zi
|
||||||
|
|
||||||
|
"toggle spellcheck
|
||||||
|
nnoremap <silent><expr> <F5> ':set spell!<CR>'
|
||||||
|
vnoremap <silent><expr> <F5> '<Esc>:set spell!<CR>v'
|
||||||
|
inoremap <silent><expr> <F5> '<C-O>:set spell!<CR>'
|
||||||
|
|
||||||
|
"toggle syntax checking
|
||||||
|
nnoremap <silent><expr> <F5> ':SyntasticToggleMode<CR>'
|
||||||
|
vnoremap <silent><expr> <F5> '<Esc>:SyntasticToggleMode<CR>v'
|
||||||
|
inoremap <silent><expr> <F5> '<C-O>:SyntasticToggleMode<CR>'
|
||||||
|
|
||||||
"bindings to trigger the gundo undo history
|
"bindings to trigger the gundo undo history
|
||||||
nnoremap <silent><expr> <F9> ':GundoToggle<CR>'
|
nnoremap <silent><expr> <F9> ':GundoToggle<CR>'
|
||||||
|
|
|
@ -163,11 +163,10 @@
|
||||||
"open automatically if vim was run without any files
|
"open automatically if vim was run without any files
|
||||||
autocmd VimEnter * if !argc() | VimFiler -project | endif
|
autocmd VimEnter * if !argc() | VimFiler -project | endif
|
||||||
|
|
||||||
"file associations
|
"filetype associations (just a sample to show how it can work)
|
||||||
if has('unix')
|
"if has('unix')
|
||||||
call vimfiler#set_execute_file('mp4','xdg-open')
|
"call vimfiler#set_execute_file('mp4','xdg-open')
|
||||||
call vimfiler#set_execute_file('mp3','xdg-open')
|
"endif
|
||||||
endif
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: ENABLE AND CONFIGURE BEHAVIOUR {{{
|
"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: ENABLE AND CONFIGURE BEHAVIOUR {{{
|
||||||
|
|
Loading…
Reference in a new issue