Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dotfiles
vim
Commits
d7fea737
Commit
d7fea737
authored
Nov 16, 2020
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Configure fast fold, build in release, vim-stay
parent
febd46af
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vim/spell/sv.utf-8.add
+41
-0
41 additions, 0 deletions
.vim/spell/sv.utf-8.add
.vimrc
+12
-3
12 additions, 3 deletions
.vimrc
with
53 additions
and
3 deletions
.vim/spell/sv.utf-8.add
+
41
−
0
View file @
d7fea737
...
@@ -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
This diff is collapsed.
Click to expand it.
.vimrc
+
12
−
3
View file @
d7fea737
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment