mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-25 20:51:26 -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
|
||||
" <F2> | (A) -> toggle row/column highlighting
|
||||
" <F3> | (A) -> toggle line wrapping
|
||||
" <F4> | (A) -> toggle spell check
|
||||
" <F5> | (A) -> toggle all folds
|
||||
" <F4> | (A) -> toggle all folds
|
||||
" <F5> | (A) -> toggle spell check
|
||||
" <F6> | (A) -> toggle syntax checking
|
||||
" <F9> | (A) -> toggle the gundo undo history sidebar
|
||||
" <Shift-F9> | (A) -> toggle the tagbar sidebar
|
||||
" <Ctrl-F9> | (A) -> toggle the error list
|
||||
|
@ -149,15 +150,20 @@
|
|||
vnoremap <silent><expr> <F3> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\rv"
|
||||
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
|
||||
nnoremap <F5> zi
|
||||
vnoremap <F5> <Esc>ziv
|
||||
inoremap <F5> <C-O>zi
|
||||
nnoremap <F4> zi
|
||||
vnoremap <F4> <Esc>ziv
|
||||
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
|
||||
nnoremap <silent><expr> <F9> ':GundoToggle<CR>'
|
||||
|
|
|
@ -163,11 +163,10 @@
|
|||
"open automatically if vim was run without any files
|
||||
autocmd VimEnter * if !argc() | VimFiler -project | endif
|
||||
|
||||
"file associations
|
||||
if has('unix')
|
||||
call vimfiler#set_execute_file('mp4','xdg-open')
|
||||
call vimfiler#set_execute_file('mp3','xdg-open')
|
||||
endif
|
||||
"filetype associations (just a sample to show how it can work)
|
||||
"if has('unix')
|
||||
"call vimfiler#set_execute_file('mp4','xdg-open')
|
||||
"endif
|
||||
"}}}
|
||||
|
||||
"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: ENABLE AND CONFIGURE BEHAVIOUR {{{
|
||||
|
|
Loading…
Reference in a new issue