-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
30 lines (28 loc) · 1.04 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
set ai " auto indenting
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
set hlsearch " highlight the last searched term
filetype plugin on " use the file type plugins
set expandtab " use spaces instead of tabs (can also be set et)
set tabstop=2 " can also be ts=2
set shiftwidth=2 " can also be sw=2
set textwidth=76
set autoindent
set smartindent
set smarttab " make <tab> and <backspace> much smarter
set showmatch " show matching brackets
set title " let VIM change the title
set titlestring=vim:\ %F " format the title
let &titleold=getcwd()
set incsearch
" shift key still on? map it so vim doesn't complain
nmap :W :w
nmap :Q :q
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif