-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
60 lines (47 loc) · 1.28 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"
" Cheatsheet of VIM commands/shortcuts
" http://www.worldtimzone.com/res/vi.html
"
" Notes -
" - to re-indent all code in vim enter gg=G in normal mode
"
" Basics "
syntax on
set number "line numbers
set ts=4 "tabs = 4 spaces
set expandtab "expand tabs into spaces
set showmatch "highlight matching brackets
set cursorline "underline cursor line
set mouse=a "allow mause actions
set smarttab
set shiftwidth=4
let python_highlight_all=1
set backspace=indent,eol,start
" Vundle stuff "
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
call vundle#end() " required
filetype plugin indent on " required
" Plugins "
Plugin 'joshdick/onedark.vim'
Plugin 'sheerun/vim-polyglot'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'ervandew/supertab'
" Colors "
if (empty($TMUX))
if (has("nvim"))
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
if (has("termguicolors"))
set termguicolors
endif
endif
colorscheme onedark
" Strip trailing whitespaces from lines when :q is called "
autocmd BufWritePre * %s/\s\+$//e
" Remove background color and cursorline highlighting"
hi Normal guibg=NONE ctermbg=NONE
hi CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE