Skip to content
Snippets Groups Projects
Commit d7fea737 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Configure fast fold, build in release, vim-stay

parent febd46af
No related branches found
No related tags found
No related merge requests found
...@@ -280,3 +280,44 @@ CStr ...@@ -280,3 +280,44 @@ CStr
Preemptions Preemptions
preemptions preemptions
schedulable schedulable
dlc
loopback
can1
SPI
LPA
ATSAME
Xplained
E54
Num
RxFifo0
RxFifo1
TxEvents
SocketCAN
enum
bitrate
dbitrate
NVM
passthrough
SDA
Pa22
datasheet
SCL
Pa23
SAME54
RS232
PA04
PA05
ECC
entrypoint
NVMCTRL
CRC32
DSU
ATSAME54P20A
WIP
Ansible
Robotframework
TestSuite
binutils
EDBG
VCC
RPi
...@@ -448,6 +448,8 @@ let g:syntastic_check_on_wq = 0 ...@@ -448,6 +448,8 @@ let g:syntastic_check_on_wq = 0
"let g:syntastic_rust_checkers = ['cargo'] "let g:syntastic_rust_checkers = ['cargo']
" coc-rust-analyzer handling the checking now " coc-rust-analyzer handling the checking now
let g:syntastic_rust_checkers = [''] let g:syntastic_rust_checkers = ['']
" The same with python, use pylint
let g:syntastic_python_checkers = ['']
" LaTeX Checker " LaTeX Checker
let g:syntastic_tex_checkers = ['lacheck'] let g:syntastic_tex_checkers = ['lacheck']
...@@ -458,7 +460,7 @@ let g:syntastic_quiet_messages = { 'regex': [ ...@@ -458,7 +460,7 @@ let g:syntastic_quiet_messages = { 'regex': [
\ 'double space at', \ 'double space at',
\ ] } \ ] }
" Maintain folds and cursor placement " Maintain folds and cursor placement vim-stay
set viewoptions=cursor,folds,slash,unix set viewoptions=cursor,folds,slash,unix
" Vim folding commands " Vim folding commands
...@@ -482,9 +484,12 @@ set viewoptions=cursor,folds,slash,unix ...@@ -482,9 +484,12 @@ set viewoptions=cursor,folds,slash,unix
" FastFold by Enno settings " FastFold by Enno settings
nmap zuz <Plug>(FastFoldUpdate) nmap zuz <Plug>(FastFoldUpdate)
" Do not update folds on save
let g:fastfold_savehook = 1 let g:fastfold_savehook = 1
let g:fastfold_fold_command_suffixes = ['x','X','a','A','o','O','c','C'] let g:fastfold_fold_command_suffixes = ['x','X','a','A','o','O','c','C']
let g:fastfold_fold_movement_commands = [']z', '[z', 'zj', 'zk'] let g:fastfold_fold_movement_commands = [']z', '[z', 'zj', 'zk']
" Allow fastfold to work with smaller than 200 lines files
let g:fastfold_minlines = 0
let g:markdown_folding = 1 let g:markdown_folding = 1
let g:tex_fold_enabled = 1 let g:tex_fold_enabled = 1
...@@ -499,8 +504,12 @@ let g:r_syntax_folding = 1 ...@@ -499,8 +504,12 @@ let g:r_syntax_folding = 1
let g:rust_fold = 1 let g:rust_fold = 1
let g:php_folding = 1 let g:php_folding = 1
" Fold based on indentation, but open all folds " Fold based on indentation, but open all folds on start
"set foldmethod=indent "set foldmethod=indent
set foldmethod=syntax
set foldnestmax=1
autocmd BufWritePost *.rust normal! zv
" Keep all folds open when a file is opened " Keep all folds open when a file is opened
augroup OpenAllFoldsOnFileOpen augroup OpenAllFoldsOnFileOpen
...@@ -558,7 +567,7 @@ nmap <F9> :RustFmt<CR> ...@@ -558,7 +567,7 @@ nmap <F9> :RustFmt<CR>
"nmap <F10> :RustPlay<CR> "nmap <F10> :RustPlay<CR>
" Run cargo build on keypress " Run cargo build on keypress
nmap <F10> :!cargo build<CR> nmap <F10> :!cargo build --release<CR>
"set hidden "set hidden
"let g:racer_cmd = "$HOME/.cargo/bin/racer" "let g:racer_cmd = "$HOME/.cargo/bin/racer"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment