Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Computer Resources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Computer Resources
Commits
9a408df9
Commit
9a408df9
authored
4 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
Update Editors/Vim.md
parent
95b3c0c8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Editors/Vim.md
+47
-0
47 additions, 0 deletions
Editors/Vim.md
with
47 additions
and
0 deletions
Editors/Vim.md
0 → 100644
+
47
−
0
View file @
9a408df9
# Vim
Is a great editor in the console
As a Gui version there is also
`gvim`
# Configs
```
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
```
# Powerline
Need to install powerline with pip
Config:
```
" Allow Powerline style
set rtp+=.local/lib/python3.7/site-packages/powerline/bindings/vim/
" These lines setup the environment to show graphics and colors correctly.
set laststatus=2
set t_Co=256
```
# YAML
Maybe use this config:
```
" Allow YAML tab styling
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
let g:indentLine_char_list = ['|', '¦', '?', '?']
```
# Wired backspace?
in vim [backspace] or backwards delete leaves a wired symbol
`^?`
and does not delete anything?
Add this to your
`~/.vimrc`
:
```
" Allow backspace
noremap! <C-?> <C-h>
```
The source of this error relates to stty and maybe VNC.
[
on stackoverflow
](
https://stackoverflow.com/questions/9701366/vim-backspace-leaves
)
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