-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
executable file
·91 lines (75 loc) · 3.37 KB
/
vimrc
File metadata and controls
executable file
·91 lines (75 loc) · 3.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
" bbremer's personal preference .vimrc file.
"
" To start vim without using this .vimrc file, use:
" vim -u NORC
" To start vim without loading any .vimrc or plugins, use:
" vim -u NONE
" Vundle {{{
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" plugins on GitHub repo
Plugin 'dense-analysis/ale'
Plugin 'arcticicestudio/nord-vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" }}}
" Editing behaviour {{{
" tabs/indenting
set expandtab " expand tabs by default (overloadable per file type later)
set shiftround " round to multiple of shiftwidth when indenting with '<' and '>'
set autoindent " new lines inherit indentation of previous lines.
set copyindent " copy the previous indentation on autoindenting
" search
set hlsearch " highlight search terms
set ignorecase " ignore case when searching
set incsearch " show search matches as you type
set backspace=indent,eol,start " allow backspacing over everything in insert mode
" text
set showmatch " set show matching parenthesis
set wrap " wrap lines
set linebreak " wrap entire words
set formatoptions+=1 " When wrapping paragraphs, don't end lines
" with 1-letter words (looks stupid)
syntax enable " Syntax highlighting.
set clipboard=unnamed " normal OS clipboard interaction
" set list " TODO: Map this.
" UI
set showcmd " show cmd being typed
set showmode " always show what mode we're currently editing in
set number " always show line numbers
set ruler " show cursor row and column
set scrolloff=4 " keep 4 lines off the edges of the screen when scrolling
set laststatus=2 " tell VIM to always put a status line in, even
" if there is only one window
set virtualedit=all " allow the cursor to go in to "invalid" places
set mouse=a " enable using the mouse if terminal emulator
" supports it (xterm does)
set noerrorbells " disable beep on errors
set termguicolors " needed for nord
silent! colorscheme nord " change vim theme to nord
" files
set fileformats="unix,dos,mac"
set shortmess+=I " hide the launch screen
set autoread " automatically reload files changed outside of Vim
set noswapfile " disable swap file
" speed
set ttyfast
set timeout timeoutlen=1000 ttimeoutlen=50
set lazyredraw " don't update the display while executing macros
" encoding
set termencoding=utf-8
set encoding=utf-8
" command mapping
inoremap jk <ESC>
" }}}
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif