-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
63 lines (57 loc) · 1.96 KB
/
vimrc
File metadata and controls
63 lines (57 loc) · 1.96 KB
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
execute pathogen#infect()
filetype plugin on
let g:ycm_confirm_extra_conf = 0
let g:ycm_server_python_interpreter = '/usr/bin/python3'
set directory=$HOME/.vim/swap/
runtime macros/matchit.vim
filetype plugin indent on
syntax on
set rnu number
autocmd FileType * setlocal shiftwidth=4 expandtab
syntax enable " enable syntax processing
set expandtab " tabs are spaces
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set shiftwidth=4
set showcmd " show command in bottom bar
set nocursorline " highlight current line
filetype indent on " load filetype-specific indent files
set wildmenu " visual autocomplete for command menu
set showmatch " highlight matching [{()}]
set nopaste " always be ready to take CTRL/CMD+V
imap <C-p> <C-o>:set invpaste paste?<CR>
set autoindent
set hidden " keep undo history
nnoremap <leader><space> :nohlsearch<CR>
let python_highlight_all = 1
let @d = 'i import pdb; pdb.set_trace() # noqa E702'
" move vertically by visual line
nnoremap j gj
nnoremap k gk
" toggle gundo
nnoremap <leader>u :GundoToggle<CR>
" Accept Copilot suggestion with Tab (optional)
" imap <silent><script><expr> <Tab> copilot#Accept("\<CR>")
" Accept Copilot suggestion with Ctrl+L
imap <silent><script><expr> <C-l> copilot#Accept("\<CR>")
au! BufNewFile,BufRead,BufWritePre *.feature
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
" remove trailing whitespace
autocmd BufWritePre *.feature %s/\s\+$//e
au! BufNewFile,BufRead,BufWritePre *
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix |
" remove trailing whitespace
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritePost *.py call flake8#Flake8()