-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
90 lines (66 loc) · 1.61 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
83
84
85
86
87
88
89
90
filetype off
set nocompatible
" vundle stuff
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" Generic:
Plugin 'godlygeek/tabular'
Plugin 'kien/ctrlp.vim'
Plugin 'Yggdroot/indentLine'
" SyntaxColorings:
Plugin 'plasticboy/vim-markdown'
Plugin 'jvirtanen/vim-octave'
Plugin 'klen/python-mode'
" Rust:
Plugin 'phildawes/racer'
Plugin 'wting/rust.vim'
" Tmux:
Plugin 'christoomey/vim-tmux-navigator'
" Old:
" Plugin 'bling/vim-airline'
" Bundle 'chilicuil/vim-sml-coursera'
" Plugin 'vim-scripts/scilab.vim'
call vundle#end()
filetype plugin indent on
" folding lines
set foldmethod=indent
set foldlevel=99
" colors
syntax on
set background=dark
colorscheme desert
" Set the command window height to 2 lines, to avoid
" many cases of having to press <Enter> to continue
set cmdheight=2
" Enable use of the mouse for all mode s
set mouse=a
" Display line numbers on the left
set number
set shiftwidth=2
set softtabstop=2
set expandtab
set backspace=indent,eol,start
" Use visual bell instead of beeping when doing something wrong
set visualbell
" Use case insensitive search, except when using capital letters
set ignorecase
set smartcase
" Better command-line completion
set wildmenu
" This shows what you are typing as a command. I love this!
set showcmd
" Highlight things that we find with the search
set hlsearch
" Since I use linux, I want this
let g:clipbrdDefaultReg = 'y'
" : <-> ;
nnoremap <silent> ; :
nnoremap <silent> : ;
" @ <-> "
nnoremap <silent> " @
nnoremap <silent> @ "
"custom copy'n'paste
vmap ,y :w! ~/.vbuf<CR>
nnoremap ,y :.w! ~/.vbuf<CR>
nnoremap ,p :r ~/.vbuf<CR>