-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
82 lines (63 loc) · 1.25 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
74
75
76
77
78
79
80
81
82
" .vimrc 090223
call plug#begin()
Plug 'rust-lang/rust.vim'
Plug 'voldikss/vim-floaterm'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'embark-theme/vim', { 'as': 'embark', 'branch': 'main' }
call plug#end()
let g:floaterm_keymap_toggle = '<F12>'
" Turn on syntax highlighting
syntax on
" For plugins to load correctly
filetype plugin indent on
" Pick a leader key
let mapleader = " "
" enable all Python syntax highlighting features
let python_highlight_all = 1
" Security
set modelines=0
set undofile
" Show line numbers
set number
" Show file stats
set ruler
" Encoding
set encoding=utf-8
" Whitespace
set wrap
set textwidth=79
set formatoptions=tcqrn1
set tabstop=4
set shiftwidth=4
set softtabstop=2
set expandtab
set noshiftround
set autoindent
set cursorline
" Cursor motion
set scrolloff=3
set backspace=indent,eol,start
set matchpairs+=<:> " use % to jump between pairs
runtime! macros/matchit.vim
" Allow hidden buffers
set hidden
" Rendering
set ttyfast
" Status bar
set laststatus=2
" Last line
set showmode
set showcmd
set showmatch
" Searching with highlight
nnoremap / /\v
vnoremap / /\v
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
" noh - no highlight
map <esc> :noh <CR>
" Color scheme (terminal)
colorscheme embark