-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
52 lines (43 loc) · 1.05 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
filetype plugin indent on
inoremap jk <Esc>
set backspace=indent,eol,start
set clipboard=unnamed " copy to system clipboard
set hidden
set ignorecase
set nocompatible
set number
set ruler
" Softtabs with 4 spaces
set expandtab
set shiftwidth=4
set shiftround
set tabstop=4
" Swap files
set shortmess+=A " Just open it, don't warn about an existing one
" Make `gf` create new file when it doesn't exist
nnoremap gf :e <cfile><cr>
" Colors and visual styling
"""""""""""""""""""""""""""
syntax on
"color dracula
" Italics
let &t_ZH="\e[3m"
let &t_ZR="\e[23m"
" Leader hotkeys
""""""""""""""""
nnoremap <leader>t :FZF<cr>
nnoremap <leader>v :e ~/.vimrc<cr>
nnoremap <leader>r :!%:p<cr>
" Plugins
"""""""""
set rtp+=/opt/homebrew/fzf
silent! source ~/dotfiles/vim/vimrc.plugins
" Further configuration
"""""""""""""""""""""""
" what does silent! do here?
silent! source ~/dotfiles/vim/vimrc.cocoa
silent! source ~/dotfiles/vim/vimrc.markdown
silent! source ~/dotfiles/vim/vimrc.local
silent! source ~/dotfiles/vim/vimrc.ruby
" does this need to be at end?
set nocompatible