-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
74 lines (60 loc) · 1.78 KB
/
.vimrc
File metadata and controls
74 lines (60 loc) · 1.78 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
63
64
65
66
67
68
69
70
71
72
73
74
set nocompatible " be iMproved, required
set backspace=indent,eol,start
filetype off " required
call plug#begin()
" The default plugin directory will be as follows:
" - Vim (Linux/macOS): '~/.vim/plugged'
" - Vim (Windows): '~/vimfiles/plugged'
" - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
" You can specify a custom plugin directory by passing it as the argument
" - e.g. `call plug#begin('~/.vim/plugged')`
" - Avoid using standard Vim directory names like 'plugin'
" Make sure you use single quotes
" Syntax highlighting
Plug 'sheerun/vim-polyglot'
" Lint
Plug 'dense-analysis/ale'
" Completion
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Initialize plugin system
call plug#end()
filetype plugin indent on
" The rest of your config follows here
let g:ale_sign_error = '😡'
let g:ale_sign_warning = '😟'
inoremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
set number
" set nowrap
syntax on
" set textwidth=0
" set wrapmargin=0
" set relativenumber
" colorscheme desert
" set guifont=Terminus:h8
" set smartcase
" set ignorecase
" filetype plugin on
" filetype indent on
" filetype on
" nnoremap <silent> <F10> :TlistToggle<CR>
" let Tlist_GainFocus_On_ToggleOpen=1
autocmd BufWritePre *.c :%s/\s\+$//e
autocmd BufWritePre *.cpp :%s/\s\+$//e
autocmd BufWritePre *.h :%s/\s\+$//e
autocmd BufWritePre *.hpp :%s/\s\+$//e
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd BufWritePre *.go :%s/\s\+$//e
autocmd BufWritePre *.rtclass :%s/\s\+$//e
autocmd BufWritePre *.rtlogpkg :%s/\s\+$//e
autocmd BufWritePre *.sml :%s/\s\+$//e
set noswapfile
" Always show statusline
set laststatus=2
so ~/.vim/coc.vim