-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.vimrc
52 lines (40 loc) · 1.33 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
syntax on
if has('gui_running')
set background=dark
colorscheme solarized
" set guifont=SourceCodeProForPowerline-Regular:h13
set guifont=VictorMono-Bold:h13
else
colorscheme delek
endif
set autoindent " Copy indent from last line when starting new line
set expandtab " Expand tabs to spaces
set shiftwidth=2 " Number of auto-indent spaces
set smartindent " Enable smart-indent
set smarttab " Enable smart-tabs
set softtabstop=2
set incsearch " Highlight dynamically as pattern is typed
set ruler " Show the cursor position
set number " Show line numbers
highlight LineNr term=bold cterm=NONE ctermfg=White ctermbg=DarkGrey gui=NONE guifg=DarkGrey guibg=NONE
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-rails'
Plug 'vim-ruby/vim-ruby'
Plug 'wincent/command-t'
Plug 'powerline/powerline-fonts'
Plug 'tpope/vim-repeat'
call plug#end()
" Enable spell check for git commit messages !!!!!
" - https://www.adamalbrecht.com/blog/2019/10/21/spell-check-in-vim-for-markdown-and-git-commit-messages/
autocmd FileType gitcommit setlocal spell
autocmd FileType markdown setlocal spell
" autocmd VimEnter * NERDTree
" autocmd VimEnter * wincmd p
"
let mapleader = ","
nnoremap <leader><Tab> <C-w>w
nnoremap <leader>nt :NERDTreeToggle<CR>