Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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
Nounous
Ansible
Commits
c5c7e16d
Commit
c5c7e16d
authored
4 years ago
by
shirenn
🌊
Browse files
Options
Downloads
Patches
Plain Diff
[root-config] Rajoute un fichier de configuration pour vim
parent
a82d7700
No related branches found
Branches containing commit
No related tags found
1 merge request
!203
[root-config] Rajoute un fichier de configuration pour vim
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/root-config/tasks/main.yml
+7
-2
7 additions, 2 deletions
roles/root-config/tasks/main.yml
roles/root-config/templates/vimrc.j2
+42
-0
42 additions, 0 deletions
roles/root-config/templates/vimrc.j2
with
49 additions
and
2 deletions
roles/root-config/tasks/main.yml
+
7
−
2
View file @
c5c7e16d
---
-
name
:
Create or rewrite .nanorc for root
template
:
src
:
nanorc.j2
dest
:
/root/.nanorc
src
:
'
{{
item.src
}}.j2'
dest
:
'
/root/{{
item.dest
}}'
loop
:
-
src
:
nanorc
dest
:
.nanorc
-
src
:
vimrc
dest
:
.vimrc
This diff is collapsed.
Click to expand it.
roles/root-config/templates/vimrc.j2
0 → 100644
+
42
−
0
View file @
c5c7e16d
if has('autocmd')
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
set viminfo=
set autoindent
set backspace=indent,eol,start
set complete-=i
set smarttab
set tabstop=4
set shiftwidth=4
set expandtab
set laststatus=2
set ruler
set showcmd
set wildmenu
set incsearch
set encoding=utf-8
if &listchars ==# 'eol:$'
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
endif
set formatoptions+=j
set autoread
if &tabpagemax < 50
set tabpagemax=50
endif
set whichwrap+=<,>,h,l,[,]
highlight ExtraWhitespace ctermbg=lightgreen guibg=lightgreen
match ExtraWhitespace /\s\+$/
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