-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
53 lines (43 loc) · 1.44 KB
/
vimrc
File metadata and controls
53 lines (43 loc) · 1.44 KB
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
" use pathogen for more convenient plugin directory layout
runtime bundle/pathogen/autoload/pathogen.vim
execute pathogen#infect()
set nocompatible " disable vi compatibility (fixes tab completion of file names on windows)
" appearance
colorscheme inkpot
syntax on " enable syntax highlighting
set number " show line numbers
" indentation
set autoindent
set smartindent
filetype plugin indent on " load file type plugins + indentation
" indent with spaces, not tabs
set expandtab
set shiftwidth=2
set softtabstop=2
" searching
set hlsearch " highlight search matches
set incsearch " incremental search
set ignorecase " case insensetive searches ...
set smartcase " ... unless there is at least one capital letter
" Hide/unhide prefix with long file names
" :call ConcealPath()
au BufReadPost quickfix :call ConcealPath()
function ConcealPath()
syntax match ConcealedPath /\v^\/[^|]*\// conceal cchar=&
setlocal conceallevel=2
setlocal concealcursor=nvic
setlocal nowrap
endfunction
function UnconcealPath()
setlocal conceallevel=0
setlocal wrap
endfunction
" indentation in python
" make
" cscope
" autocomplete
" highlight
" location of backup files
" plugins to check out
" - nerdcommenter
" - the nerd tree