-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
41 lines (36 loc) · 1.09 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
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'rafi/awesome-vim-colorschemes'
Plug 'mbbill/undotree'
Plug 'PProvost/vim-ps1'
Plug 'ConradIrwin/vim-bracketed-paste'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-commentary'
Plug 'hhsnopek/vim-firewatch'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'junegunn/fzf', {'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
colorscheme firewatch
" airline
let g:lightline = {
\ 'colorscheme': 'bubblegum',
\ }
let g:airline_theme='bubblegum'
let g:airline_powerline_fonts = 1
" for html/rb files, 2 spaces
autocmd Filetype python3 setlocal ts=2 sw=2 expandtab
autocmd Filetype python setlocal ts=2 sw=2 expandtab
" Custom mapping
cnoreabbrev nt NERDTreeToggle
:nnoremap <leader>w <c-w>
:nnoremap <leader>t :NERDTreeToggle<cr>
:nnoremap <leader>g :Goyo<cr>
nnoremap <buffer> <F9> :exec '!python' shellescape(@%, 1)<cr>
nmap <leader>gd <Plug>(coc-definition)
nmap <leader>gr <Plug>(coc-references)
nnoremap <C-p> :GFiles<CR>
set tabstop=4
set shiftwidth=4