-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_vimrc
58 lines (53 loc) · 1.35 KB
/
dot_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
set nocompatible
set number
set cursorline
set cursorcolumn
set ignorecase
set smartcase
set hlsearch
set incsearch
set wildmenu
set wildmode=list:longest
syntax on
filetype on
filetype plugin on
filetype indent on
" MAPPINGS
let mapleader = ","
" ,t to toggle NERDTree on/off
nnoremap <leader>t :NERDTreeToggle<CR>
" Tab for next buffer
nnoremap <Tab> :bn<CR>
" Shift+Tab for next window
nnoremap <S-Tab> <C-w>w
" Shift+j for page down
nnoremap <S-j> <PageDown>
" Shift+k for page up
nnoremap <S-k> <PageUp>
nnoremap <leader>jd :YcmCompleter GoTo<CR>
nnoremap <leader>f :Files <CR>
" VIMSCRIPT
" Turn on spell checking for markdown and git commits
autocmd FileType markdown setlocal spell
autocmd FileType gitcommit setlocal spell
" PLUGINS
call plug#begin()
Plug 'ycm-core/youcompleteme'
Plug 'c9s/perlomni.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'nanotech/jellybeans.vim'
Plug 'cocopon/iceberg.vim'
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
colorscheme jellybeans
" PLUGIN SETTINGS
" List buffers at top of terminal
let g:airline#extensions#tabline#enabled = 1
" Show buffer name only
let g:airline#extensions#tabline#formatter = 'unique_tail'
" Show buffer numbers in the list
let g:airline#extensions#tabline#buffer_nr_show = 1