-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
62 lines (53 loc) · 1.22 KB
/
vimrc
File metadata and controls
62 lines (53 loc) · 1.22 KB
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
60
61
62
"Basic settings
set ignorecase
set mouse=a
set backspace=2
set ww=b,s,<,>,[,]
set textwidth=160
set bg=dark
set tabstop=2
set shiftwidth=2
set expandtab
set number
set numberwidth=2
set autoindent
set smartindent
syntax on
set t_Co=256
set cul
set hlsearch
set incsearch
hi CursorLine ctermbg=DarkGray guibg=#404040 gui=none cterm=none
set list listchars=tab:»·,trail:·
filetype on
filetype indent on
call plug#begin('~/.vim/plugged')
Plug 'elmcast/elm-vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'joshdick/onedark.vim'
Plug 'rust-lang/rust.vim'
Plug 'elixir-editors/vim-elixir'
call plug#end()
"navigation stuff
nnoremap j gj
nnoremap k gk
"disable auto comment leader insertion
autocmd FileType * setlocal formatoptions-=r formatoptions-=o
"backup dir
set backupdir=~/temp
set dir=~/.vimswap//
"COLORSCHEMES
silent! colo onedark
"colo herald "low contrast
"colo ir_black "high contrast
"enable plugins
filetype plugin on
set runtimepath^=~/.vim/bundle/ctrlp.vim
" ctrlp ignored directories
let g:ctrlp_custom_ignore='node_modules\|elm-stuff\|.git'
let g:ctrlp_use_caching = 0
if executable('rg')
set grepprg=rg\ --vimgrep
endif
" prevent overriding by some 'hercules' filetype
autocmd BufRead,BufNewFile *.rs set filetype=rust