-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
88 lines (66 loc) · 2.29 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
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
88
" gui colors if running iTerm
"if $TERM_PROGRAM =~ "iTerm"
" set termguicolors
" set t_8f=[38;2;%lu;%lu;%lum
" set t_8b=[48;2;%lu;%lu;%lum
"endif
" Change mapleader to ","
let mapleader=","
set guifont=CamingoCode\ Nerd\ Font:h13
" General settings {{{
filetype plugin indent on
syntax on "Turn on syntax highlighting
set shortmess=atI "Disable welcome screen
set clipboard=unnamed "macOS pasteboard using pbcopy/pbpaste
set laststatus=2 "Required for VIM Airline
set number "Line numbers are good
set backspace=indent,eol,start "Allow backspace in insert mode
set history=1000 "Store lots of :cmdline history
set showcmd "Show incomplete cmds down the bottom
set showmode "Show current mode down the bottom
set visualbell "No sounds
set autoread "Reload files changed outside vim
set hidden "Hides buffers instead of closing
set nobackup noswapfile "No backup or swap files
set nocompatible ignorecase smartcase
set nocindent noautoindent nosmartindent indentexpr= "disable autoindents
set tabstop=4 shiftwidth=4 expandtab "setup default tab/shift/expand
set nowrap "Don't wrap lines
set list
set hlsearch "Highlight search terms
set incsearch "Show search matches as you type
set listchars=tab:▸\ ,trail:·,extends:#,nbsp:·
" Set Color Scheme
set background=dark
" Enable true color
set termguicolors
"colorscheme solarized
colorscheme material-monokai
" Use italic font for code comments
highlight Comment cterm=italic gui=italic
" Change line number background color
highlight LineNr ctermbg=8
" }}}
" Shortcuts and remappings {{{
"wrap lines"
nmap <silent> <leader>w :set nowrap!<CR>
"remap x to delete but not update default register"
noremap x "_x
" }}}
" neovim Specific
if !has('nvim')
set ttymouse=xterm2
endif
" VS Code neovim
if exists('g:vscode')
" VSCode extension
else
" ordinary neovim
endif
let NERDTreeShowHidden=1
" Increase max file limit for Command-T
let g:CommandTMaxFiles=400000
" Settings for VIM Airline
let g:airline_powerline_fonts = 1
let g:airline#extensions#tmuxline#enabled = 0
let g:airline_theme='materialmonokai'