-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vimrc
73 lines (56 loc) · 1.72 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
" begin vundle config
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()
"Plugin 'morhetz/gruvbox'
Plugin 'gruvbox-community/gruvbox'
Plugin 'junegunn/fzf'
"Plugin 'ntpeters/vim-better-whitespace'
Plugin 'rust-lang/rust.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/nerdtree'
Plugin 'vundlevim/vundle.vim'
Plugin 'fidian/hexmode'
Plugin 'dense-analysis/ale'
call vundle#end()
filetype plugin indent on
syntax on
au BufNewFile,BufRead *.json.jbuilder set ft=ruby
au BufNewFile,BufRead *.atom.builder set ft=ruby
autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4
let g:ale_linters = {'rust': ['analyzer']}
set backspace=indent,eol,start
set termguicolors
set background=dark
let g:gruvbox_guisp_fallback = 'bg'
colorscheme gruvbox
hi Normal guibg=NONE ctermbg=NONE
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set number
set colorcolumn=80,100,120
" Add format option 'w' to add trailing white space, indicating that paragraph
" continues on next line. This is to be used with mutt's 'text_flowed' option.
augroup mail_trailing_whitespace " {
autocmd!
autocmd FileType mail setlocal formatoptions+=w
augroup END " }
" Disable beep
set visualbell t_vb=
set clipboard=unnamed
" The direction keys [h][j][k][l] keys on a qwerty keyboard map to 'dhtn' in
" dvorak, and the [p][c][v][j] keys map to 'hjkl' but the [p] is too far.
"
" When we swap [t]ill to til[l], we get righ[t] and the directions keys are
" now [j][c][v][k].
nnoremap t l
nnoremap l t
nnoremap T L
nnoremap L T
" Disable 'ex mode' key [Q] that is right next to 'ex cmd' key [:] on a dvorak
" keyboard, causing entering it by mistake and having to type 'visual' to
" leave it.
nnoremap Q <Nop>