forked from cyclingzealot/bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
63 lines (46 loc) · 1.33 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
" Author [email protected]
" https://github.com/shussain/vimrc/blob/master/_vimrc-simplified
" Simplified vimrc for use when vim is installed but not gvim
" Show line number
set number
set encoding=utf-8
set showmode
set showcmd
" Ignore cases for searching
set ignorecase
set smartcase
" Spelling changes. fix common typos and mistakes I make
abbreviate teh the
abbreviate eg e.g.
" set spell spelllang=en_ca
" No backup thanks to source control but might change this later
set nobackup
" Configs for making Python development easy
"set syntax=on
set smarttab autowrite
set tabstop=4 shiftwidth=4 expandtab
set nowrap
"set the global map leader variable so that:
if ! has("patch547")
:let mapleader = ","
endif
" Make it easy to update/reload _vimrc
:nmap <Leader>s :source $HOME/_vimrc<CR>
:nmap <Leader>v :e $HOME/_vimrc<CR>
" Have the tabbed editing work with internet browser type functionality
" You just use comma instead of CTRL
:nmap <Leader>t <Esc>:tabnew<CR>
:nmap <Leader>w <Esc>:tabclose<CR>
:nmap <Leader><Tab> gt<CR>
" Run ctags
:nmap <Leader>] <Esc>:!ctags -R .<CR>
" Get lines inserted
:nmap <Leader>- <Esc>a-----<Esc>
" Do word wrapping
:nmap <Leader>e <Esc>:set wrap linebreak<CR>
" Remove trailing white spaces
if ! has("patch547")
autocmd BufWritePre *.pl :%s/\s\+$//e
endif
" Set smart indenting
set smartindent