Rmd no strip whitespace, compile on F5 insert mode

This commit is contained in:
Tobias Manske 2018-05-04 17:18:36 +02:00
parent 3bf2cc7dd7
commit d71444fb85
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
2 changed files with 3 additions and 19 deletions

View File

@ -40,4 +40,5 @@ nmap <F10> :SCCompileRun<cr>
nmap <C-c> g~iw nmap <C-c> g~iw
" Rmarkdown " Rmarkdown
autocmd Filetype rmd map <F5> :!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter> autocmd Filetype rmd nmap <F5> :w\|:!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>
autocmd Filetype rmd imap <F5> <ESC><ESC>:w\|:!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>

View File

@ -67,14 +67,6 @@ let g:NERDDefaultAlign = "left"
let g:NERDCommentEmptyLines = 1 let g:NERDCommentEmptyLines = 1
let g:NERDTrimTrailingWhitespace = 1 let g:NERDTrimTrailingWhitespace = 1
" NerdTree
" let g:NERDTreeShowHidden = 1
" " let NERDTreeMinimalUI = 1
" let NERDTreeCascadeSingleChildDir = 1
" let NERDTreeCascadeOpenSingleChildDir = 1
" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" let g:nerdtree_tabs_open_on_console_startup = 1
" PythonSyntax " PythonSyntax
let python_highlight_all = 1 let python_highlight_all = 1
@ -84,15 +76,6 @@ let g:SimpylFold_docstring_preview = 1
" Supertab " Supertab
let g:SuperTabDefaultCompletionType = "<c-space>" let g:SuperTabDefaultCompletionType = "<c-space>"
" Syntastic
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" let g:syntastic_mode_map={"mode":"active", "active_filetypes": [], "passive_filetypes": ['tex']}
" let g:syntastic_python_checkers=['flake8']
" let g:syntastic_python_flake8_args='--ignore=E501,E225'
" Ale " Ale
let g:ale_linters = {"python": ["flake8"]} let g:ale_linters = {"python": ["flake8"]}
@ -101,7 +84,7 @@ let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>" let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" Whitespace " Whitespace
autocmd BufEnter * EnableStripWhitespaceOnSave autocmd BufEnter *[^(.rmd)] EnableStripWhitespaceOnSave
" Yankstack " Yankstack
let g:yankstack_map_keys = 0 let g:yankstack_map_keys = 0