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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dotfiles
vim
Compare revisions
0cc39e9b164524496ec4d560f0b37c331732316b to fa3f39b0f7150890136d69e95ab063f49e071023
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dotfiles/vim
Select target project
No results found
fa3f39b0f7150890136d69e95ab063f49e071023
Select Git revision
Swap
Target
dotfiles/vim
Select target project
dotfiles/vim
1 result
0cc39e9b164524496ec4d560f0b37c331732316b
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
Go through codebase for spellchecks
· 1b9bae2b
Henrik Tjäder
authored
2 years ago
1b9bae2b
Disable and remove grammarous
· 93fb88d2
Henrik Tjäder
authored
2 years ago
93fb88d2
Remove TagList fully
· e702a48d
Henrik Tjäder
authored
2 years ago
e702a48d
Coc: Add clangd keybinds for symbol and AST
· 29c6f8c2
Henrik Tjäder
authored
2 years ago
29c6f8c2
Add shortcut for changing conceallevel
· fa3f39b0
Henrik Tjäder
authored
2 years ago
fa3f39b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.config/nvim/coc-settings.json
+45
-0
45 additions, 0 deletions
.config/nvim/coc-settings.json
.vimrc
+13
-26
13 additions, 26 deletions
.vimrc
with
58 additions
and
26 deletions
.config/nvim/coc-settings.json
View file @
fa3f39b0
...
...
@@ -139,6 +139,7 @@
"cSpell.userWords"
:
[
"#rument"
,
"--globalkeys"
,
"ACMR"
,
"ACTIVATIONCODE"
,
"ACTL"
,
"ADDRE"
,
...
...
@@ -196,6 +197,12 @@
"CMSIS"
,
"CNAME"
,
"CONEX"
,
"CPHA"
,
"CPOL"
,
"CPPCOMSTR"
,
"CPPDEFFLAGS"
,
"CPPDEFINES"
,
"CPPINCFLAGS"
,
"CRC32"
,
"CStr"
,
"CamelCase"
,
...
...
@@ -257,6 +264,7 @@
"DSYSCTRL"
,
"DSYSTEM"
,
"DUT's"
,
"DUTs"
,
"DVERSION"
,
"DWT"
,
"Damiano"
,
...
...
@@ -293,11 +301,14 @@
"Eposthistoriken"
,
"Epostsök"
,
"Ethernet"
,
"FERNANDOZ"
,
"FFFF"
,
"FFI"
,
"FILTE"
,
"FLASHSIZE"
,
"FLPR"
,
"FRLVL"
,
"FTLVL"
,
"Feriejobb"
,
"Flashmode"
,
"Flashmodes"
,
...
...
@@ -328,8 +339,10 @@
"Grepit"
,
"Grundkurs"
,
"Gränssnitt"
,
"HALTI"
,
"HFCLKSTAT"
,
"HOTP"
,
"HSSPIS"
,
"HW"
,
"Haltium"
,
"HashMap"
,
...
...
@@ -341,7 +354,11 @@
"IMULT"
,
"INDAT"
,
"IPTAT"
,
"IRWXG"
,
"IRWXO"
,
"IRWXU"
,
"ISR"
,
"ISRs"
,
"ITM"
,
"ITMDump"
,
"Ibuild"
,
...
...
@@ -367,6 +384,7 @@
"LPA"
,
"LSEE"
,
"LTU"
,
"LUMOS"
,
"LXML"
,
"Labbhandledare"
,
"Laboratiorievägen"
,
...
...
@@ -381,6 +399,8 @@
"MCUs"
,
"MISO"
,
"MMIO"
,
"MOBO"
,
"MOBO's"
,
"MOSI"
,
"MRAM"
,
"MSRV"
,
...
...
@@ -400,6 +420,7 @@
"NMIENSET"
,
"NMIFLAG"
,
"NONSECURE"
,
"NSSP"
,
"NVIC"
,
"NVM"
,
"NVMCTRL"
,
...
...
@@ -410,12 +431,15 @@
"Nucleo64"
,
"Num"
,
"Nätverkskommunikation"
,
"OBJCOPYCOMSTR"
,
"OBJDUMP"
,
"ONKEY"
,
"OO"
,
"OOM"
,
"OSCCTRL"
,
"OSX"
,
"OUTCLR"
,
"OVERREAD"
,
"Olimex"
,
"OpenOCD"
,
"PA04"
,
...
...
@@ -520,6 +544,7 @@
"SWRS"
,
"SYSCLK"
,
"SYST"
,
"Saleae"
,
"Schedulability"
,
"Segway"
,
"Selectnumber"
,
...
...
@@ -620,6 +645,7 @@
"ahbmask"
,
"ahbs"
,
"aktiveringstid"
,
"analyzer"
,
"analyzing"
,
"anykind"
,
"anymore"
,
...
...
@@ -716,7 +742,10 @@
"coremark"
,
"cosinussatsen"
,
"countsync"
,
"cppdefine"
,
"cpputest"
,
"croutes"
,
"crunner"
,
"cryptoram"
,
"cstep"
,
"ctrla"
,
...
...
@@ -812,6 +841,7 @@
"falign"
,
"fancyhdr"
,
"fastboot"
,
"ffile"
,
"ffunction"
,
"fidx"
,
"fifo"
,
...
...
@@ -829,6 +859,7 @@
"forskningspapper"
,
"freqm"
,
"fstep"
,
"ftdi"
,
"fugit"
,
"fulfill"
,
"fulfills"
,
...
...
@@ -853,6 +884,7 @@
"hashless"
,
"heapless"
,
"hetj"
,
"hfvpath"
,
"hibcfg"
,
"hprintln"
,
"hspi"
,
...
...
@@ -862,7 +894,9 @@
"hårdvaruknappar"
,
"identifikationsnummer"
,
"idrom"
,
"ifdef"
,
"iff"
,
"ihex"
,
"imageinfo"
,
"impl"
,
"implementors"
,
...
...
@@ -913,6 +947,7 @@
"letterpaper"
,
"letterspacing"
,
"lfclk"
,
"lfrc"
,
"lightgray"
,
"liliumsoc"
,
"linkchecker"
,
...
...
@@ -991,6 +1026,7 @@
"openocd"
,
"osculp"
,
"overdriven"
,
"palsrv"
,
"panic1"
,
"parsable"
,
"passersystem"
,
...
...
@@ -1033,6 +1069,7 @@
"problemdiskussion"
,
"problemdiskussionen"
,
"problemuppställning"
,
"proc"
,
"procdly"
,
"programmatically"
,
"programverifikation"
,
...
...
@@ -1040,6 +1077,7 @@
"prototypframtagning"
,
"proutes"
,
"pushd"
,
"pyhfv"
,
"quadcopter"
,
"quadcopterplatform"
,
"raddr"
,
...
...
@@ -1058,6 +1096,7 @@
"repo"
,
"repower"
,
"repr"
,
"reqs"
,
"resched"
,
"resendings"
,
"resetable"
,
...
...
@@ -1086,6 +1125,8 @@
"schedulability"
,
"schedulable"
,
"schemaläggningsmetoder"
,
"scons"
,
"sconscript"
,
"sdslice"
,
"seL4"
,
"seecfg"
,
...
...
@@ -1143,6 +1184,7 @@
"syms"
,
"syncbusy"
,
"sysclk"
,
"syspath"
,
"systemautomation"
,
"systemintegration"
,
"systemutveckling"
,
...
...
@@ -1176,6 +1218,7 @@
"transp"
,
"trsize"
,
"trybuild"
,
"tstr"
,
"tupled"
,
"txbtie"
,
"txobj"
,
...
...
@@ -1194,6 +1237,7 @@
"undersökningsansats"
,
"unhold"
,
"uninit"
,
"uninitialises"
,
"unlisten"
,
"unpark"
,
"unrecord"
,
...
...
@@ -1211,6 +1255,7 @@
"v2"
,
"videostreaming"
,
"virtualenv"
,
"vmem"
,
"vref"
,
"vscode"
,
"wakeups"
,
...
...
This diff is collapsed.
Click to expand it.
.vimrc
View file @
fa3f39b0
...
...
@@ -275,7 +275,7 @@ if exists('g:vscode')
else
" ordinary neovim
" Grammatical checking
Plug
'rhysd/vim-grammarous'
"
Plug 'rhysd/vim-grammarous'
" Rust-lang support
Plug
'rust-lang/rust.vim'
...
...
@@ -507,8 +507,6 @@ set listchars=tab:>.,trail:.,extends:#,nbsp:.
" Do :set paste and revert with one easy button:
set
pastetoggle
=<
leader
>
pt
" Taglist toggle
"nnoremap <silent> <F8> :TlistToggle<CR>
" Tagbar toggle
nmap
<
F8
>
:
TagbarToggle
<
CR
>
nmap
<
leader
>
tb
:
TagbarToggle
<
CR
>
...
...
@@ -946,7 +944,8 @@ nmap <silent> <leader>me <Plug>(coc-command)expandMacro
nmap
<
silent
>
<
leader
>
gh
:
CocCommand clangd
.
switchSourceHeader
<
CR
>
nmap
<
silent
>
<
leader
>
gH
:
CocCommand clangd
.
switchSourceHeader
vsplit
<
CR
>
nmap
<
silent
>
<
leader
>
gsi
:
CocCommand clangd
.
SymbolInfo
<
CR
>
nmap
<
silent
>
<
leader
>
gsi
:
CocCommand clangd
.
symbolInfo
<
CR
>
nmap
<
silent
>
<
leader
>
gast
:
CocCommand clangd
.
ast
<
CR
>
" From coc-completion-help 2022-08-01
inoremap
<
expr
>
<
cr
>
coc#pum#visible
()
? coc#_select_confirm
()
:
"\<CR>"
...
...
@@ -1260,30 +1259,18 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
if
has
(
'conceal'
)
set
conceallevel
=
2
concealcursor
=
niv
endif
"
"
" Grammarous remaps
"
"This above sample, when present in your .vimrc will create five handy additional normal-mode commands namely
"gn (next error), gp (previous error), gr (ignore the error), gf (fix automatically with suggested correction),
"gR (ignore all errors with same rule). These are available only to the current buffer and only when
":GrammarousCheck is active, and will disappear as soon as :GrammarousReset is used.
let
g:grammarous
#hooks
=
{}
function
!
g:grammarous
#hooks
.
on_check
(
errs
)
abort
nmap
<
buffer
>
gn
<
Plug
>(
grammarous
-
move
-
to
-
next
-
error
)
nmap
<
buffer
>
gp
<
Plug
>(
grammarous
-
move
-
to
-
previous
-
error
)
nmap
<
buffer
>
gr
<
Plug
>(
grammarous
-
move
-
to
-
info
-
window
)
r
nmap
<
buffer
>
gas
f
<
Plug
>(
grammarous
-
move
-
to
-
info
-
window
)
f
nmap
<
buffer
>
gR
<
Plug
>(
grammarous
-
move
-
to
-
info
-
window
)
R
endfunction
function
!
g:grammarous
#hooks
.
on_reset
(
errs
)
abort
nunmap
<
buffer
>
gn
nunmap
<
buffer
>
gp
nunmap
<
buffer
>
gr
nunmap
<
buffer
>
gf
nunmap
<
buffer
>
gR
" Allows for toggling conceal level easily
" https://alok.github.io/2018/04/26/using-vim-s-conceal-to-make-languages-more-tolerable/
function
!
ToggleConcealLevel
()
if
&
conceallevel
==
0
setlocal
conceallevel
=
2
else
setlocal
conceallevel
=
0
endif
endfunction
nnoremap
<
silent
>
<
Leader
>
tc
:
call
ToggleConcealLevel
()<
CR
>
" For more convenient vimdiffing
if
&
diff
...
...
This diff is collapsed.
Click to expand it.