-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc.vim
More file actions
68 lines (58 loc) · 2.36 KB
/
vimrc.vim
File metadata and controls
68 lines (58 loc) · 2.36 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
" vim: foldmethod=marker
"
"---- General ---------------------------------------------------------------{{{
"Cursor settings:
" 1 -> blinking block
" 2 -> solid block
" 3 -> blinking underscore
" 4 -> solid underscore
" 5 -> blinking vertical bar
" 6 -> solid vertical bar
" let &t_SI="\e[5 q" "SI = INSERT mode
" let &t_SR="\e[4 q" "SR = REPLACE mode
" let &t_EI="\e[2 q" "EI = NORMAL mode (ELSE)
" " Always start in Normal Mode
" silent !echo -ne "\e[2 q"
" set conceallevel=3
set autoindent " Autoindent
set cursorline " Highlight current line
set encoding=UTF-8 " Set UTF-8
set hidden " Enable hidden buffers
set showcmd " Show Command being typed
"set spell spelllang=en_us " English Spell Check
" set fileformat=unix " Unix File Format
"---- Format -------------------------------------------------------------------
set formatoptions+=c " Format Options
"---- Highlight and Remove Trailing Space --------------------------------------
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
function! StripTrailingWhiteSpace()
" Don't strip on these filetypes
if &filetype =~ 'tsv'
return
endif
:%s/\s\+$//e
endfunction
autocmd BufWritePre * call StripTrailingWhiteSpace()
" }}}
"---- Plugin Options --------------------------------------------------------{{{
"-------- TagBar -----------------------
let g:tagbar_iconchars = ['►', '▼ ']
"-------- NERDTree ----------
" NERDTree automatically when vim starts up on opening a directory
" autocmd StdinReadPre * let s:std_in=1
" autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
" Close vim if the only window left open is a NERDTree
" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" Folder Characters
" let g:NERDTreeDirArrowExpandable = '' " 📁
" let g:NERDTreeDirArrowCollapsible = '' " 📂
"-------- DevIcons ---------------------
let g:DevIconsEnableFoldersOpenClose = 1
let g:WebDevIconsUnicodeDecorateFolderNodesDefaultSymbol = '' "
let g:DevIconsDefaultFolderOpenSymbol = '' "
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {} " needed
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['html'] = ''
" Fix brackets around icons
" autocmd VimEnter * syntax enable | call webdevicons#refresh()
" }}}