Skip to content

Instantly share code, notes, and snippets.

@imyxh
Created May 27, 2018 20:16
Show Gist options
  • Save imyxh/bc9ab3c9b51120489d35f792529fb80d to your computer and use it in GitHub Desktop.
Save imyxh/bc9ab3c9b51120489d35f792529fb80d to your computer and use it in GitHub Desktop.
" load defaults
source /usr/share/vim/vimfiles/archlinux.vim
:filetype plugin on
:syntax on
" Set block cursor on start.
autocmd VimEnter * silent !echo -ne "\e[2 q"
" Set IBeam shape in insert mode, underline shape in replace mode and block shape after exiting insert mode.
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"
" assumes python version is 3.6, if it's changed then edit this and make sure powerline works
set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim
" tab enters four spaces, Ctrl-V<Tab> enters a tab
:set expandtab
:set tabstop=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment