-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (60 loc) · 2.92 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
execute pathogen#infect()
syntax enable " enable syntax highlighting
filetype plugin indent on " set filetype option
let mapleader = "\<Space>"
inoremap jk <esc>
" Colors {{{
colorscheme solarized
set background=dark
" }}}
" Spaces & Tabs {{{
set tabstop=4 " number of visual spaces per tab
set softtabstop=4 " number of spaces in tab when editing
set shiftwidth=4 " number of spaces in tab when indenting with '>' or '<'
set expandtab " tabs are spaces
set autoindent " copy indentation from previous line
" }}}
" UI Layout {{{
set number " show line numbers
set showcmd " show command in bottom bar
set cursorline " highlight cursorline
set wildmenu " turn on visual autocomplete for command menu
" }}}
" Search {{{
set incsearch " search as characters are entered
set ignorecase " ignore case in search
set hlsearch " highlight search results
" tap space-\ to turn off search highlight
nnoremap <silent> <leader>\ :nohlsearch<CR>
" }}}
" Folding {{{
set foldenable " enable folding
set foldmethod=indent " fold based on indent level
set foldlevelstart=99 " start with all folds open by default
" }}}
" AutoGroups {{{
augroup configgroup
autocmd!
autocmd FileType python setlocal colorcolumn=72,79 " add docstring and line length rulers
augroup END
" }}}
" Lightline {{{
set laststatus=2 " always display the status line
set noshowmode " hide redundant -- INSERT -- status
let g:lightline = {'colorscheme': 'wombat'}
" }}}
" NERDCommenter {{{
let g:NERDSpaceDelims = 1 " add spaces after comment delimiters by default
let g:NERDDefaultAlign = 'left' " align line-wise comment delimiters flush left
let g:NERDTrimTrailingWhitespace = 1 " trim trailing whitespace when uncommenting lines
" }}}
" NERDTree {{{
" toggle NERDTree
noremap \ :NERDTreeToggle<CR>
" open NERDTree at the current file
noremap \| :NERDTreeFind<CR>
let g:NERDTreeNodeDelimiter = "\u00a0" " workaround from https://github.com/scrooloose/nerdtree/issues/928
let NERDTreeIgnore = ['^\.pyc$','^\.swp$']
" }}}
set modelines=1 " only use fold settings for this file
" vim:foldmethod=marker:foldlevel=0