Skip to content
Snippets Groups Projects
Commit 9a408df9 authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

Update Editors/Vim.md

parent 95b3c0c8
Branches
Tags
No related merge requests found
# 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment