Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Zell
Software
Zell
Commits
2f7b44e8
Unverified
Commit
2f7b44e8
authored
Sep 20, 2023
by
Jayesh Badwaik
Browse files
Options
Downloads
Patches
Plain Diff
- dev: change nvimrc for jayeshbadwaik
parent
74706cc8
No related branches found
No related tags found
No related merge requests found
Pipeline
#161938
passed
Oct 27, 2023
Stage: .pre
Stage: Test
Stage: Deploy
Stage: .post
Changes
1
Pipelines
11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/share/devconfig/jayeshbadwaik/nvimrc.local
+17
-13
17 additions, 13 deletions
dev/share/devconfig/jayeshbadwaik/nvimrc.local
with
17 additions
and
13 deletions
dev/share/devconfig/jayeshbadwaik/nvimrc.local
+
17
−
13
View file @
2f7b44e8
...
@@ -26,16 +26,16 @@ map <F9> :YcmCompleter FixIt<CR>
...
@@ -26,16 +26,16 @@ map <F9> :YcmCompleter FixIt<CR>
function! s:insert_gates()
function! s:insert_gates()
set formatoptions-=cro
set formatoptions-=cro
let gatename_0 = substitute(substitute(toupper(@%), "\\.", "_", "g"), "/", "_", "g")
let gatename_0 = substitute(substitute(toupper(@%), "\\.", "_", "g"), "/", "_", "g")
let gatename_1 = substitute(gatename_0,
"
SRC_CPP_INCLUDE_", "", "g")
let gatename_1 = substitute(gatename_0,
"^
SRC_CPP_INCLUDE_", "", "g")
let gatename_2 = substitute(gatename_1,
"
TEST_CPP_INCLUDE_", "", "g")
let gatename_2 = substitute(gatename_1,
"^
TEST_
COMMON_
CPP_INCLUDE_", "", "g")
let gatename_3 = substitute(gatename_2,
"
BENCH_CPP_INCLUDE_", "", "g")
let gatename_3 = substitute(gatename_2,
"^
BENCH_
COMMON_
CPP_INCLUDE_", "", "g")
let gatename_4 = substitute(gatename_3,
"
SRC_CUDA_INCLUDE_", "", "g")
let gatename_4 = substitute(gatename_3,
"^
SRC_CUDA_INCLUDE_", "", "g")
let gatename_5 = substitute(gatename_4,
"
TEST_CUDA_INCLUDE_", "", "g")
let gatename_5 = substitute(gatename_4,
"^
TEST_
COMMON_
CUDA_INCLUDE_", "", "g")
let gatename_6 = substitute(gatename_5,
"
BENCH_CUDA_INCLUDE_", "", "g")
let gatename_6 = substitute(gatename_5,
"^
BENCH_
COMMON_
CUDA_INCLUDE_", "", "g")
let gatename_7 = substitute(gatename_6,
"
SRC_HIP_INCLUDE_", "", "g")
let gatename_7 = substitute(gatename_6,
"^
SRC_HIP_INCLUDE_", "", "g")
let gatename_8 = substitute(gatename_7,
"
TEST_HIP_INCLUDE_", "", "g")
let gatename_8 = substitute(gatename_7,
"^
TEST_
COMMON_
HIP_INCLUDE_", "", "g")
let gatename_9 = substitute(gatename_8,
"
BENCH_HIP_INCLUDE_", "", "g")
let gatename_9 = substitute(gatename_8,
"^
BENCH_
COMMON_
HIP_INCLUDE_", "", "g")
let gatename_10 = substitute(gatename_9, "LAB
S
_E
TERNAL
_CPP_INCLUDE_", "", "g")
let gatename_10 = substitute(gatename_9, "
^
LAB_E
XEC23_SRC
_CPP_INCLUDE_", "", "g")
let gatename = gatename_10
let gatename = gatename_10
execute "normal! o#ifndef " . gatename
execute "normal! o#ifndef " . gatename
execute "normal! o#define " . gatename
execute "normal! o#define " . gatename
...
@@ -133,4 +133,8 @@ augroup filetypedetect
...
@@ -133,4 +133,8 @@ augroup filetypedetect
au BufRead,BufNewFile *.cuhpp set filetype=cuda
au BufRead,BufNewFile *.cuhpp set filetype=cuda
au BufRead,BufNewFile *.cuh set filetype=cuda
au BufRead,BufNewFile *.cuh set filetype=cuda
augroup END
augroup END
let g:formatters_cuda = ['clangformat']
" REUSE-IgnoreEnd
" REUSE-IgnoreEnd
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