-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
69 lines (52 loc) · 1.5 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
set nocompatible
syntax enable
filetype off
call plug#begin()
Plug 'tpope/vim-fugitive'
Plug 'mileszs/ack.vim'
Plug 'https://github.com/terryma/vim-multiple-cursors.git'
Plug 'https://github.com/scrooloose/nerdtree.git'
" Plug 'https://github.com/ludovicchabant/vim-gutentags.git'
Plug 'christoomey/vim-tmux-navigator'
Plug 'rstacruz/sparkup', {'rtp': 'vim/'}
Plug 'vim-ruby/vim-ruby'
" fzf plugins
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Javascript plugins
Plug 'sheerun/vim-polyglot'
Plug 'dense-analysis/ale'
" Code completion
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
filetype plugin indent on
set path+=**
set wildmenu
" Tweaks for browsing
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
let g:NERDTreeDirArrows=0
" Enable vim_ruby to fold Ruby code
let ruby_fold=1
set encoding=utf-8
set number
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab " idents as spaces
set tags+=./tags;
" set tags+=~/go/src/tags
set nowrap
set hlsearch
nnoremap <Leader>r :NERDTreeFind<CR>
nnoremap <Leader>n :NERDTreeToggle<CR>
" Clipboard for Mac OS X
set clipboard+=unnamedplus
set runtimepath^=~/.vim/bundle/ctrlp.vim
nnoremap <C-p> :Files<CR>
nnoremap <Leader>b :Buffers<CR>
nnoremap <Leader>h :History<CR>