-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
58 lines (50 loc) · 1.22 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
filetype off
execute pathogen#infect()
filetype plugin indent on
set nocompatible " disable the compatible mode with original Vi
color dracula
set t_Co=256
syntax enable " enable syntax processing
set modelines=0
set tabstop=4
set shiftwidth=4
set softtabstop=4
" set expandtab " tabs are spaces
set linebreak " Causes vim to not wrap text in the middle of a word
set pastetoggle=<F9> " Useful so auto-indenting doesn't mess up code when pasting
set mouse=a
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set relativenumber
set undofile
au BufNewFile,BufRead *.s,*.S set filetype=arm " arm = arm6/7
""""""""""""""""" Key Bindings
" Make , be a shortcut to run the last used macro
:map , @@
" Copy to clipboard
vnoremap y "+y
nnoremap Y "+yg_
nnoremap y "+y
nnoremap yy "+yy
" Same for delete
" Source: https://stackoverflow.com/questions/54255/in-vim-is-there-a-way-to-delete-without-putting-text-in-the-register
vnoremap d "+d
nnoremap d "+d
nnoremap D "+D
nnoremap dd "+dd
" Paste from clipboard
nnoremap p "+p
nnoremap P "+P
vnoremap p "+p
vnoremap P "+P