Index

dotfiles / 92cc08b

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
227 Nov 2019 19:1692cc08bStop NERDTree from being open by defaultJosh Stockin101N

Blob @ dotfiles / vimrc

text/plain1399 bytesdownload raw
1" Formatting configuration
2filetype plugin indent on
3set spelllang=en_us
4set encoding=utf-8
5
6" Keyboard mapping
7let mapleader=" "
8set clipboard=unnamedplus
9
10inoremap jk <ESC>
11noremap <leader>w ^
12noremap <leader>e $
13noremap <leader>f <c-w>
14noremap <leader>1 1gt
15noremap <leader>2 2gt
16noremap <leader>3 3gt
17noremap <leader>4 4gt
18noremap <leader>5 5gt
19noremap <leader>6 6gt
20noremap <leader>7 7gt
21noremap <leader>8 8gt
22noremap <leader>9 9gt
23
24map <leader>n :NERDTreeToggle<CR>
25
26" Vim style configuration
27syntax on
28
29set showcmd
30set showmatch
31
32set number
33set numberwidth=6
34highlight LineNr term=bold ctermfg=grey
35
36set tabstop=4
37set shiftwidth=4
38set smarttab
39
40highlight VertSplit ctermbg=NONE ctermfg=NONE term=NONE cterm=NONE gui=NONE
41
42
43" Enable Plug plugins
44call plug#begin('~/.vim/plugged')
45
46Plug 'vim-airline/vim-airline'
47Plug 'vim-airline/vim-airline-themes'
48Plug 'tpope/vim-fugitive'
49Plug 'scrooloose/nerdtree'
50Plug 'ryanoasis/vim-devicons'
51Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
52Plug 'vim-syntastic/syntastic'
53Plug 'bling/vim-bufferline'
54
55call plug#end()
56
57
58" Automatically install any Plug plugins
59autocmd VimEnter *
60 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
61 \| PlugInstall --sync | q
62 \| qa!
63 \| endif
64
65
66" Plugin configuration
67
68" Airline
69set laststatus=2
70let g:airline_powerline_fonts=1
71autocmd VimEnter * AirlineTheme deus
72
73" NERDTree
74let NERDTreeShowHidden=1
75