-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideavimrc
88 lines (71 loc) · 2.96 KB
/
ideavimrc
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
75
76
77
78
79
80
81
82
83
84
85
86
87
" color schemes
if (has("termguicolors"))
set termguicolors
endif
syntax enable
" colorscheme evening
"colorscheme dracula
"let g:gruvbox_contrast_dark = 'hard'
"colorscheme gruvbox
" font
"set guifont=ProggyCleanTTCE\ Nerd\ Font\ Mono:h12
"set guifont=Fira\ Code:h10
"custom options
set nocompatible " disable compatibility to old-time vi
set showmatch " show matching
set ignorecase " case insensitive
set mouse=v " middle-click paste with
set hlsearch " highlight search
set smartcase " when searching try to be smart about cases
set incsearch " incremental search
set tabstop=2 " number of columns occupied by a tab
set softtabstop=2 " see multiple spaces as tabstops so <BS> does the right thing
set expandtab " converts tabs to white space
set shiftwidth=2 " width for autoindents
set autoindent " indent a new line the same amount as the line just typed
set number " add line numbers
set wildmode=longest,list " get bash-like tab completions
"set cc=80 " set an 80 column border for good coding style
filetype plugin indent on "allow auto-indenting depending on file type
syntax on " syntax highlighting
set mouse=a " enable mouse click
set clipboard=unnamedplus " using system clipboard
filetype plugin on
set cursorline " highlight current cursorline
set ttyfast " Speed up scrolling in Vim
" set spell " enable spell check (may need to download language package)
set noswapfile " disable creating swap file
" set backupdir=~/.cache/vim " Directory to store backup files.
" set to auto read when a file is changed from the outside
set autoread
" apply the autoread behavior to terminal (why not by default?)
au FocusGained * :checktime
" make Y yank to end of line instead of whole line, for consistency with D and C
map Y y$
" Let the enter button clear highlighting after a search
:nnoremap <silent> <CR> :nohlsearch<CR><CR>
" ctrl-s to save
noremap <silent> <C-S> :update<CR>
vnoremap <silent> <C-S> <C-C>:update<CR>
inoremap <silent> <C-S> <C-O>:update<CR>
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300
" Title should be filename
set title
" Allow confirm exit without saving on :q
set confirm
" Maybe some sanity with brackets. Maybe.
"inoremap (<Tab> ()<Left>
"inoremap {<Tab> {}<Left>
"inoremap {<CR> {<CR><CR>}<Up><Tab>
"inoremap [<Tab> []<Left>
"inoremap <<Tab> <><Left>
"inoremap '<Tab> ''<Left>
"inoremap "<Tab> ""<Left>
"inoremap """<Tab> """"""<Left><Left><Left>
"inoremap """<CR> """<CR><CR>"""<Up><Tab>
set foldmethod=indent " fold based on indent
"set foldlevelstart=20
"nnoremap <space> za " let space toggle folds
" set foldcolumn=2 " This one messes with vscodium formatting