forked from frodesundby/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
92 lines (69 loc) · 1.54 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
91
92
"colorscheme papercolor
"
set nocompatible
" {{{ Settings
set textwidth=1400
set wrap
set mmp=50000
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'maxjacobson/vim-fzf-coauthorship'
" Initialize plugin system
call plug#end()
nmap <silent> <C-g> :Coauthorship<CR>
" This shows what you are typing as a command.
set showcmd
filetype on
filetype plugin on
filetype plugin indent on
syntax enable
syntax on
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
set smarttab
set background=dark
set nospell
set wildmenu
set wildmode=list:longest,full
" ignore these files when completing names and in Ex
set wildignore=.svn,CVS,.git,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.png,*.xpm,*.gif,*.pdf,*.bak,*.beam
" Backspace
set backspace=2
" Line numbers
set number
" Ignore case
set ignorecase
" but only if it makes sense?
set smartcase
" Define leader
let mapleader=","
" Copy to clipboard
vnoremap <leader>y "+y
nnoremap <leader>Y "+yg_
nnoremap <leader>y "+y
nnoremap <leader>yy "+yy
" Incremental search
set incsearch
" Highlight search
set hlsearch
" Set off the other paren
highlight MatchParen ctermbg=4
" }}}
"{{{ Mappings
" Search mappings: These will make it so that going to the next one in a
" search will center on the line it's found in.
map N Nzz
map n nzz
" }}}
" {{{ Visuals
" Highligh current line
set cursorline
" Always show statusline
set laststatus=2
" }}}
" {{{ Custom file patterns syntax
au BufNewFile,BufRead Jenkinsfile setf groovy
" }}}"