-
Notifications
You must be signed in to change notification settings - Fork 9
/
.vimrc
56 lines (46 loc) · 1.26 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
" Automatic install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'vim-scripts/closetag.vim'
Plug 'kien/ctrlp.vim'
Plug 'msanders/snipmate.vim'
Plug 'Lokaltog/vim-easymotion'
Plug 'tpope/vim-surround'
Plug 'davidhalter/jedi-vim'
Plug 'nvie/vim-flake8'
Plug 'hotoo/pangu.vim'
Plug 'mileszs/ack.vim'
Plug 'dense-analysis/ale'
call plug#end()
" Global settings
set nu
set ai
set tabstop=4
set shiftwidth=4
set ic
set incsearch
set cursorline
set showcmd
set hlsearch
set history=1000
set wildmode=longest,list,full
set wildignorecase
set backspace=2
syntax on
" map Ctrl-L to be nohl, clear search highlight
nnoremap <c-l> :nohl<cr>
" close tag
let g:closetag_html_style=1
source ~/.vim/plugged/closetag.vim/plugin/closetag.vim
" disabling default ftplugins
let b:did_ftplugin = 1
autocmd BufWritePre * :%s/\s\+$//e
autocmd FileType gitcommit setlocal spell
" let g:jedi#completions_command = "<leader><Tab>"