Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Sebastian Semmler
dotfiles
Commits
c9580660
Commit
c9580660
authored
6 years ago
by
Sebastian Semmler
Browse files
Options
Downloads
Patches
Plain Diff
vimrc cleanup
parent
0124a5c5
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
.vimrc
+10
-22
10 additions, 22 deletions
.vimrc
with
10 additions
and
22 deletions
.vimrc
+
10
−
22
View file @
c9580660
...
...
@@ -10,9 +10,9 @@ syntax enable " enable syntax processing
color smyck " Colorscheme see https
:
//
github
.
com
/hukl/
Smyck
-
Color
-
Scheme
" }}}
" Spaces & Tabs {{{
set
tabstop
=
2
"
2
space
tab
set
softtabstop
=
2
"
2
space
tab
set
shiftwidth
=
2
set
tabstop
=
4
"
4
space
tab
set
softtabstop
=
4
"
4
space
tab
set
shiftwidth
=
4
set
expandtab
" use spaces
for
tabs
set
modelines
=
1
filetype
indent
on
...
...
@@ -22,14 +22,14 @@ set nowrap
set
list
listchars
=
tab
:
»·
,
trail
:
·
" }}}
" UI Layout {{{
set
number
" show
line
numbers
"set relativenumber " show relative line numbers
set
ruler
" column
and
line
numbers
set
cursorline
"
highlight
current
line
set
wildmenu
"
display
all
matching
files
when
tab
-
completion
set
showmatch
" higlight matching parenthesis
set
number
" show
line
numbers
"set relativenumber
" show relative line numbers
set
ruler
" column
and
line
numbers
set
cursorline
"
highlight
current
line
set
wildmenu
"
display
all
matching
files
when
tab
-
completion
set
showmatch
" higlight matching parenthesis
:
au
BufWinEnter
*
let
w
:
m2
=
matchadd
(
'ColumnMargin'
,
'\%>80v.\+'
,
-1
)
" Highlight characters behind the
80
chars margin
set
scrolloff
=
2
" minimum
lines
above/below
cursor
set
scrolloff
=
2
" minimum
lines
above/below
cursor
" }}}
" Status Bar {{{
set
laststatus
=
2
" always show status bar
...
...
@@ -54,8 +54,6 @@ set foldlevelstart=10 " start with fold level of 10
set
foldnestmax
=
10
"
max
10
depth
set
foldmethod
=
indent
"
fold
based
on
indent
level
" }}}
" Line Shortcuts {{{
" }}}
" Leader Shortcuts {{{
let
mapleader
=
" "
nnoremap
<
Leader
>
n
:
NERDTreeToggle
<
CR
>
...
...
@@ -103,8 +101,6 @@ augroup END
" Close window if last remaining window is NerdTree
autocmd bufenter *
if
(
winnr
(
"$"
)
==
1
&&
exists
(
"b:NERDTree"
)
&&
b:NERDTree
.
isTabTree
())
|
q
|
endif
" }}}
" Tmux {{{
" }}}
" Misc {{{
set
ttyfast
" faster
redraw
set
backspace
=
indent
,
eol
,
start
...
...
@@ -118,10 +114,6 @@ set noswapfile
set
nobackup
set
nowritebackup
" }}}
" MacVim {{{
set
guioptions
-=
r
set
guioptions
-=
L
" }}}
" Custom Funktions {{{
" Strip trailing whitespaces on each save
fun
!
<
SID
>
StripTrailingWhitespaces
()
...
...
@@ -133,8 +125,4 @@ endfun
autocmd
BufWritePre
*
:
call
<
SID
>
StripTrailingWhitespaces
()
let
g:ackprg
=
'ag --nogroup --nocolor --column'
" }}}
" neovim {{{
let
g:python2_host_prog
=
'/usr/local/bin/python'
let
g:python3_host_prog
=
'/usr/local/bin/python3'
" }}}
" vim:foldmethod=marker:foldlevel=0
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