-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
54 lines (42 loc) · 1.19 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
set nocompatible
set encoding=utf-8
set fileencoding=utf-8
"attempt to intelligently autoindent based on file type
filetype indent plugin on
highlight clear
"enable syntax highlighting
syntax on
"command line completion
set wildmenu
set showcmd
"allow backspacing over autoindent, line break, start of insert
set backspace=indent,eol,start
"if file based indent fails, this keeps the indentation of the previous line
set autoindent
"always display satus line
set laststatus=2
"asks to save if command needs a saved file
set confirm
"enables the use of mouse
set mouse=a
"displays line numbers
set number
"tab settings
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
"stops auto commenting new lines
"autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
"searching
set incsearch "searches as characters are typed
set hlsearch "highlights search results
nnoremap <leader><space> :nohlsearch<CR>
"remaps \space to turning off old search result highlight
set visualbell "blinks instead of beeping
"visually shows tabs and newlines
set listchars=tab:▸\ ,eol:¬
if has('nvim')
"neovim specific config here
let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0
endif