forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvimrc
More file actions
61 lines (49 loc) · 1.12 KB
/
vimrc
File metadata and controls
61 lines (49 loc) · 1.12 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
set nocompatible " not vi compatible
"--------------
" Load pathogen
"--------------
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
call pathogen#helptags()
"TAB settings.
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" More Common Settings.
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
syntax on
"set relativenumber
set number
set norelativenumber
" Make pasting done without any indentation break."
set pastetoggle=<F3>
" Make Vim to handle long lines nicely.
set wrap
set textwidth=80
set formatoptions=qrn1
set colorcolumn=80
"toggle NERDTree with CTRL-n
map <C-n> :NERDTreeToggle<CR>
"add blank line at end of file on save
"solarized colorscheme
syntax enable
set background=dark
colorscheme solarized
"map Tagbar to F8
nmap <F8> :TagbarToggle<CR>
"remove trailing whitespace on save
autocmd BufWritePre *.css,*.scss,*.html,*.js,*.php :%s/\s\+$//e
"remap split navigation ctrl-h,j,k,l
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>