Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envrcd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
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
isgphys
envrcd
Commits
41d79f29
Commit
41d79f29
authored
5 years ago
by
Sven Mäder
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup vimrc default by Claude
parent
23b3d8e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
profile/default/.vimrc
+13
-11
13 additions, 11 deletions
profile/default/.vimrc
with
13 additions
and
11 deletions
profile/default/.vimrc
+
13
−
11
View file @
41d79f29
...
...
@@ -9,7 +9,6 @@ syntax on "enable syntax highlighting
set
nocompatible
"use
vim
defaults instead of
100
%
vi
compatibility
set
encoding
=
utf8 "default
file
encoding
set
ttyfast
"fast
terminal
"set mouse=i "enable mouse in insert mode
set
mouse
=
"disable
mouse
mode
filetype
plugin
on
"enable
filetype
plugins
filetype
indent
on
"automatic indentation according
to
filetype
...
...
@@ -42,8 +41,8 @@ set display=lastline "show beginning of broken line at bottom of window inste
set
wildmenu
"show matches
for
command
-
line
completion
set
wildmode
=
longest
:
full
,
full "
define
how
tab
completion proceeds
on
partial
match
set
wildignore
+=
*
.
o
,
*
.
pdf "Let
tab
completion ignore certain
file
types
"set listchars=eol:¬,tab:>-,trail:~,space:· "define replacement for invisible characters (set invlist)
set
fillchars
=
fold
:-
set
t_Co
=
256
"use
256
colors
" temporary workaround for jessie's old vim version
if
v
:
version
>
704
||
v
:
version
==
704
&&
has
(
'patch710'
)
...
...
@@ -54,7 +53,7 @@ endif
au
FileType
*
setl
fo
-=
c
fo
-=
r
fo
-=
o
"}}}
" ---
keyboard mapping
s ---{{{
" ---
function
s ---{{{
" --- map key to toggle opt ---
function
MapToggle
(
key
,
opt
)
let
cmd
=
':set '
.
a:opt
.
'! \| set '
.
a:opt
.
"?\<CR>"
...
...
@@ -72,6 +71,13 @@ function ToggleMouse()
endif
endfunc
" --- Clean trailing spaces ---
function
!
CleanSpaces
()
%s
/\s\+$/
/
e
endfunction
"}}}
" --- keyboard mappings ---{{{
" --- F key toggles ---
" toggle paste mode (normal/insert)
MapToggle
<
F2
>
paste
...
...
@@ -97,19 +103,18 @@ map <space> za
map
<
Leader
>
s
:
set
invspell
<
CR
>
" remap \n to toggle display of line numbers
map
<
Leader
>
n
:
set
invnu
<
CR
>
" remap \h to stop hlsearch until next search
map
<
Leader
>
h
:
noh
<
CR
>
"}}}
" --- colorscheme ---{{{
" use pablo color scheme
colorscheme
pablo
" load jellybeans if available
:
silent
!
colorscheme
jellybeans
" make comments more readable with lighter grey
highlight
Comment ctermfg
=
Grey
set
t_Co
=
256
"use
256
colors
" --- jellybeans ---
:
silent
!
colorscheme
jellybeans
" --- background ---
" use no background in terminal instead of grey
highlight
Normal ctermbg
=
none
...
...
@@ -119,11 +124,8 @@ highlight SpecialKey ctermbg=none
" --- highlights ---
" tweak todo to be brighter
highlight
Todo guifg
=
Cyan guibg
=
Black
gui
=
none ctermbg
=
36
cterm
=
none ctermfg
=
9
" red color for custom todo text
highlight
RedTodo guifg
=
Red guibg
=
Black
gui
=
none ctermfg
=
9
ctermbg
=
0
cterm
=
none
" highlight superfluous whitespace in orange
highlight
ExtraWhiteSpace guifg
=
White guibg
=
#DF5F00
gui
=
bold
ctermfg
=
255
ctermbg
=
166
cterm
=
bold
"highlight ExtraWhitespace ctermbg=red guibg=red
"}}}
" --- whitespace ---{{{
...
...
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