-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
71 lines (53 loc) · 1.95 KB
/
Copy pathvimrc
File metadata and controls
71 lines (53 loc) · 1.95 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"see http://nvie.com/posts/how-i-boosted-my-vim/
"This must be first, because it changes other options as side effect
set nocompatible
"Install in ~/.vim/autoload (~\vimfiles\autoload on Windows). Or copy and paste:
"mkdir -p ~/.vim/autoload ~/.vim/bundle
"curl 'www.vim.org/scripts/download_script.php?src_id=16224' \
" ~/.vim/autoload/pathogen.vim
" Use pathogen to easily modify the runtime path to include all
" plugins under the ~/.vim/bundle directory
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
"Change the mapleader from \ to ,
let mapleader=","
" Quickly edit/reload the vimrc file
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
set hidden
set nowrap "don't wrap lines
set hlsearch "highligh search
set incsearch "show search as you type
set smartindent
set autoindent
set copyindent
set tabstop=4
set shiftwidth=4
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set expandtab
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
set nobackup
set noswapfile
set background=dark
set listchars=tab:>-,trail:-
set list
set number
syntax on
set pastetoggle=<F2> "enable paste mode - i.e. disable autoindent
nmap <F4> :tabnew<CR>
nmap <F5> :tabprev<CR>
nmap <F6> :tabnext<CR>
nmap <F1> :q<CR>
nnoremap <F8> :setl noai nocin nosi inde=<CR>