-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (42 loc) · 1.13 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
" enable mouse support "
set mouse=a
" enable syntax "
syntax on
" enable line numbers "
set number
" highlight current line "
set cursorline
:highlight Cursorline cterm=bold ctermbg=black
" enable highlight search pattern "
set hlsearch
" enable smartcase search sensitivity "
set ignorecase
set smartcase
" Indentation using spaces "
" tabstop: width of tab character
" softtabstop: fine tunes the amount of whitespace to be added
" shiftwidth: determines the amount of whitespace to add in normal mode
" expandtab: when on use space instead of tab
" textwidth: text wrap width
" autoindent: autoindent in new line
set tabstop =4
set softtabstop =4
set shiftwidth =4
set textwidth =79
set expandtab
set autoindent
" show the matching part of pairs [] {} and () "
set showmatch
" remove trailing whitespace from Python and Fortran files "
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd BufWritePre *.f90 :%s/\s\+$//e
autocmd BufWritePre *.f95 :%s/\s\+$//e
autocmd BufWritePre *.for :%s/\s\+$//e
" enable color themes "
if !has('gui_running')
set t_Co=256
endif
" enable true colors support "
set termguicolors
colorscheme default
imap jj <Esc>