Skip to content

Instantly share code, notes, and snippets.

@clintonhalpin
Created February 17, 2015 13:56
Show Gist options
  • Save clintonhalpin/e9f975f9ca70e70d89bc to your computer and use it in GitHub Desktop.
Save clintonhalpin/e9f975f9ca70e70d89bc to your computer and use it in GitHub Desktop.
0 execute pathogen#infect()
1 syntax on
2 filetype plugin indent on
3
4 set cursorline
5 set expandtab
6 set modelines=0
7 set shiftwidth=4
8 set clipboard=unnamed
9 set synmaxcol=128
10 set ttyscroll=10
11 set encoding=utf-8
12 set tabstop=4
13 set nowrap
14 set number
15 set expandtab
16 set nowritebackup
17 set noswapfile
18 set nobackup
19 set hlsearch
20 set ignorecase
21 set smartcase
22 set paste
23
24 set autoindent
25 set smartindent
26
27 colors hybrid
28
29 " NERDTree
30 " map <C-n> :NERDTreeToggle<CR>
31 " let NERDTreeHighlightCursorline=1
32 " let NERDTreeIgnore = ['tmp', '.yardoc', 'pkg']
33
34 "Tab between buffers
35 noremap <tab> <c-w><c-w>
36
37 " Prefer set paste
38 nmap <leader>p :setlocal paste! paste?<cr>
39
40 function! NumberToggle()
41 if(&relativenumber == 1)
42 set number
43 else
44 set relativenumber
45 endif
46 endfunc
47
48 nnoremap <C-n> :call NumberToggle()<cr>
49
50 au FocusLost * :set number
51 au FocusGained * :set relativenumber
52
53 set relativenumber
54
55
56 set wildignore+=*/node_modules/*
57 set wildignore+=*/bower_components/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment