-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
58 lines (43 loc) · 1.09 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
set nocompatible
set path+=**
set wildmenu
execute pathogen#infect()
set guifont=DejaVu\ Sans\ Mono\ 10
" Line numbers
set number
set numberwidth=6
" tabulators
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set backup " keep a backup file
set backupdir=/tmp,.
set directory=/tmp,.
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" TAGS
" Create 'tags' file
command! MakeTags !ctags -R .
" Now I can
" - Use ^] to jump to tag under cursor
" - Use g^] for ambiguous tags
" - Use ^t to jump back up the tag stack
filetype plugin indent on
syntax enable
set background=dark
colorscheme solarized
" Highlight last searched pattern
set hlsearch
set autoindent " always set autoindenting on
nmap <C-i> gg<CR>=G<CR>
inoremap <C-s> <ESC>:w<CR>a
nnoremap <C-S> :w<CR>