-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc_mac
65 lines (60 loc) · 1.46 KB
/
.vimrc_mac
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
execute pathogen#infect()
set ai " auto indenting
set history=1000 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
set hlsearch " highlight the last searched term
filetype plugin on " use the file type plugins
filetype indent on
set smartindent
set nocompatible
set tabstop=2
set shiftwidth=2
set softtabstop=2
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set backspace=indent,eol,start
set laststatus=2
set relativenumber
set undofile
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
set wrap
set textwidth=79
set formatoptions=qrn1
let g:closetag_html_style=1
source ~/.vim/scripts/closetag.vim
set guifont=Monaco:h14
if has("gui_running")
set lines=60 columns=120
endif
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:vim_markdown_folding_disabled=1
let t_Co=256
colorscheme nova
"Map jk to ESC
inoremap jk <ESC>
"Map leader to space
nnoremap <SPACE> <Nop>
let mapleader = " "
"Run current buffer with node (and save it before)
nnoremap <leader>rn :w<CR> :!node %<CR>
set clipboard=unnamed
"The following line makes webpack watch-mode more reliable
:set backupcopy=yes
let g:ctrlp_working_path_mode = 'r'
let g:ctrlp_custom_ignore = '\v([\/]\.(git|hg|svn))|(node_modules)$'