-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (63 loc) · 2.53 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
64
65
66
67
68
69
70
71
72
73
74
75
set nocompatible " use vim defaults
set ls=2 " allways show status line
set expandtab " tabs are converted to spaces, use only when required
set tabstop=2 " numbers of spaces of tab character
set shiftwidth=2 " numbers of spaces to (auto)indent
set softtabstop=2 " backspace key treat the two spaces like a tab
set scrolloff=3 " keep 3 lines when scrolling
set showcmd " display incomplete commands
set hlsearch " highlight searches
"set incsearch " do incremental searching
set ruler " show the cursor position all the time
set visualbell t_vb= " turn off error beep/flash
set novisualbell " turn off visual bell
set nobackup " do not keep a backup file
set number " show line numbers
"set noignorecase " don't ignore case
set ignorecase " ignore case when searching
set smartcase " ignorecase + smartcase ignore case unless upper case used when searching
set title " show title in console title bar
set ttyfast " smoother changes
"set ttyscroll=0 " turn off scrolling, didn't work well with PuTTY
set modeline " last lines in document sets vim mode
set modelines=3 " number lines checked for modelines
set shortmess=atI " Abbreviate messages
"set nostartofline " don't jump to first character when paging
set whichwrap=b,s,h,l,<,>,[,] " move freely between files
"set viminfo='20,<50,s10,h
"set autoindent " always set autoindenting on
"set smartindent " smart indent
"set cindent " cindent
set noautoindent
set nosmartindent
set nocindent
set encoding=utf-8
set fileencoding=utf-8
"set autowrite " auto saves changes when quitting and swiching buffer
"set sm " show matching braces, somewhat annoying...
"set nowrap " don't wrap lines
"
set clipboard=unnamed
syntax on " syntax highlighing
hi LineNr term=bold ctermfg=DarkGrey " line number color
"NERDTree legacy arrow
let g:NERDTreeDirArrows=0
call pathogen#infect()
filetype plugin indent on " enable file type based indentation
" Zen Coding
let g:user_emmet_expandabbr_key = '<c-e>'
let g:use_emmet_complete_tag = 1
let g:syntastic_ruby_checkers=['rubocop', 'mri']
let g:CommandTTraverseSCM='pwd'
" tagbar
nmap <F8> :TagbarToggle<CR>
" Keymaps
map <C-n> :NERDTreeToggle<CR>
map <C-l> :set nonumber!<CR>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
autocmd BufWritePre * :retab
autocmd FileType gitcommit,markdown setlocal spell
autocmd FileType gitcommit,markdown setlocal spelllang=en_us